close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

JSON nested repeat region - how to do it?

Thread began 1/21/2017 7:01 pm by Janet | Last modified 1/23/2017 5:06 pm by Janet | 3089 views | 11 replies

Janet

Just to update with an answer and a follow up question...

I finally found out how to turn the JSON into a repeat region in the php... this is my code:

<?php
$someJSON = $DETAILS->getColumnVal("IMAGE");

$someArray = json_decode($someJSON, true);

foreach ($someArray as $key => $value) {
echo "<a href=\"input/\" " . $value["name"].
"<div class=\"col-md-4\" style=\"margin-bottom: 5px\"><img src=\"input/" . $value["name"]."\" class=\"img-responsive\"></a> </div>";
}

?>

and it works perfectly for the first row (web example sent privately)

But it won;t repeat the whole row - in fact, on every page I have added the json_decode the repeat region doesn't work.

Everything seems to be fine as far as I can see, I am not sure what I have done wrong. Can you advise? I have sent the pages as an attachment.

Thanks for a great product!

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...