Category Menus - How to highlight active button

13 posts by 4 authors in: Forums > CMS Builder
Last Post: February 28, 2011   (RSS)

By aev - February 28, 2011

you're welcome!

Here's another tip when working with CMSBuilder's fields and settings. Add this to your pages:

<?php if (array_key_exists('debug', $_GET)) {
<div style="text-align: left;margin-left: 150px; max-width: 950px; padding-top: 300px; padding-bottom: 100px;">
<hr>selectedRecord<hr>
<pre style="white-space: pre-wrap; font-family: Monaco, 'Courier New', Courier, monospace"><?php print_r(@$selectedRecord) ?></pre>
<br><br><hr>categoryRecords<hr><br>
<pre style="white-space: pre-wrap; font-family: Monaco, 'Courier New', Courier, monospace"><?php print_r(@$categoryRecords) ?></pre>
<br><br><hr>$SETTINGS<hr><br>
<pre style="white-space: pre-wrap; font-family: Monaco, 'Courier New', Courier, monospace"><?php print_r(@$SETTINGS) ?></pre>
<hr><hr>
</div>
} ?>


This way you can simply add &debug at the end of any urls to output all the category records fields and CMSBuilder's settings. Take care with this as it diplays your MYSQL username and password. Remove it as soon as you are done developing the site.

-aev-

Re: [aev] Category Menus - How to highlight active button

By zip222 - February 28, 2011

Thanks again!