Employing Content Field

4 posts by 2 authors in: Forums > CMS Builder
Last Post: June 19, 2017   (RSS)

By osga - June 13, 2017

We would like to add content from the Content field, on the "modify Category" page.

We placed the proper code "<?php echo $record['Content']; ?>"

But its not showing up on the page. (http://www.osga.com/online_gaming.php?categoryNum=53) You can see where the error shows up at the top.

I'm including the page's code. Im sure im just missing a "trigger" at the top php code on the page, but the "Get Code" in CMS Builder didnt seem to include it

Attachments:

cms-content.html 9K

By Dave - June 17, 2017

Hi osga, 

Try this.  Replace this: 

<?php echo $record['Content']; ?>

With this: 

<?php echo $selectedCategory['Content']; ?>

And if that doesn't work you can use this debug code to show all the values available in $selectedCategory:

<?php showme($selectedCategory); ?>

Hope that helps!  Let me know if that works for you.

Dave Edis - Senior Developer
interactivetools.com

By Dave - June 19, 2017

Hi osga, 

What about with a lowercase c? 

<?php echo $selectedCategory['content']; ?>

Let me know if that works for you.

Dave Edis - Senior Developer
interactivetools.com