Re: [InHouse] SEO URLs Getting Odd Results
Ok, there's probably a few different ways to do it. One way would be as follows:
Have one section for tips. Have a list dropdown field for "category".
Create a seperate page for each category (eg: nutritiontips.php). They'd have almost the same content, but it will be easier to customize page headings and so on.
Have two list viewers on your page. With nutritiontips.php for example, one list viewer would list all the tip links (the menu) and the other the content for the tip.
For the menu list viewer, use these options:
$options['viewerUrl'] = 'nutritiontips.php';
$options['perPage'] = '9999';
$options['pageNum'] = '1';
$options['orderBy'] = 'date DESC';
$options['where'] = 'category = "nutrition"';
The idea is that it will list ALL the tips, sorted by date (newest first - you can sort them however you want), but only list tips in the nutrition category.
And for the content viewer, use these options:
$options['perPage'] = '1';
$options['pageNum'] = '1';
$options['orderBy'] = 'date DESC';
$options['where'] = 'category = "nutrition"';
$num = getNumberFromEndOfUrl();
if ($num) { $options['where'] .= " AND num = '$num'"; }
Where this will list the newest tip from the nutrition category -OR- the tip number specified from the nutrition category.
Would that do everything you need? Let me know if I can provide more details.
Dave Edis - Senior Developer
interactivetools.com