Re: [Jason] Article headlines
ok, now I understand it much better.
As I'm moving my categories from my old AM2 to my new CMS I've this question to adjust my categories the best possible way.
Top Level Categories & Subcategories
If I set up my top level categories and subcategories like this:
Sports
Baseball
Soccer
Football
Travel & leisure
Places
Hotels
Socials
Weddings
I'll like the latest headlines on my main page so then it should be something like this?
list($articleRecords, $articleMetaData) = getRecords(array(
'tableName' => 'sports,baseball,soccer,football,travel,places,hotels,socials,weddings',
'allowSearch' => false,
'limit' => 5,
'orderBy' => "createdDate DESC"
));
and then use this code where I need to display the headlines?
<?php foreach ($articleRecords as $article): ?>
<p><?php echo date("M j, Y", strtotime($article['createdDate']));?>, <?php echo $article['title'];?> on <?php echo $article['category:label'];?></p>
<?php endforeach ?>
Thanks for the clarification.
Jesus