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 osga - June 19, 2017

Well the <?php echo $selectedCategory['Content']; ?> didnt work, (which really looked like it would) I tried the debug and got the following results which clearly showed the content we are looking to implement, but it's still not showing up.

Offshore Report : The Insider : Hartley Henderson

Notice: Undefined index: Content in /usr/www/virtual/osga/www.osga.com/online_gaming.php on line 177

Array
(
    [num] => 53
    [createdDate] => 0000-00-00 00:00:00
    [createdByUserNum] => 1
    [updatedDate] => 2017-06-19 11:21:52
    [updatedByUserNum] => 87
    [globalOrder] => 22
    [siblingOrder] => 1
    [lineage] => :22:49:53:
    [depth] => 2
    [parentNum] => 49
    [breadcrumb] => Offshore Report : The Insider : Hartley Henderson
    [name] => Hartley Henderson
    [content] => <p>HARTLEY HENDERSON has been involved with the online gambling world for more than fifteen years. His insights helped Intertops become the first sportsbook online to list odds for reality TV betting when they opened lines for Survivor in 2000. Hartley worked extensively for WWTS in the heyday of that storied sportsbook in the mid-2000s and finally landed at Major Wager writing his popular frontline column for five years. His contacts throughout the online gaming industry are unparalleled and his column often offers exclusive interviews and opinions from gambling leaders around the world. Hartley was voted our top writer in 2012 and again in 2013. His weekly insights are not to be missed here at OSGA.</p>
    [image] => http://www.osga.com/images/writers_header_hartley.jpg
    [type] => regular
    [locked] => 0
    [filename] => hartley
    [needsPublish] => 1
    [needsPublishForArticleLists] => 1
    [hideOnSearchForm] => 0
    [createdTime] => 1286299163
    [lastUpdatedTime] =>
    [_filename] => Offshore-Report-The-Insider-Hartley-Henderson
    [_link] => test2012_cms_cat_detail.php?Offshore-Report-The-Insider-Hartley-Henderson-53
    [_tableName] => category
    [_isSelected] => 1
    [_isAncestorSelected] =>
    [_isDescendantSelected] =>
    [_isSelectedBranch] => 1
    [_isBreadcrumb] => 1
    [_hasParent] => 1
    [_hasChild] => 0
    [_isFirstChild] => 1
    [_isLastChild] => 1
    [_hasSiblings] => 0
    [_isSiblingSelected] => 0
    [_isParentSelected] => 0
    [_isChildSelected] => 0
    [_listItemStart] =>
        <ul>
          <li>
    [_listItemEnd] => </li>
        </ul>
      </li>
    </ul>
  </li>
)
Offshore Report : The Insider : Hartley Henderson
Cereus Poker repayments get delayed as remittances are low
Jun 15, 2017
A look at why Absolute Poker and Ultimate Bet players are being forced to wait a bit longer to be repaid.
Read More . . .

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