directory templates

More
14 years 8 months ago #4183 by KingoftheRoad
Replied by KingoftheRoad on topic directory templates
It seems
Code:
foreach ($sub->items as $item) :?>
is wrong. But, I don't know what's wrong ;)

I list out the "foreach structure" of my modification below for more convenient reference:
Code:
.. .. .. <?php foreach ($this->categories as $sub) : ?> .. .. <ul class="catdets cat<?php echo $sub->id; ?>"> <?php foreach ($sub->items as $item) :?> <li> [url=<?php echo JRoute::_( FlexicontentHelperRoute::getItemRoute($item->slug, $sub->slug) ); ?>]<?php echo $this->escape($item->title); ?>[/url] </li> <?php endforeach; ?> </ul> .. .. <?php .. endforeach; ?> ..


Anybody can tell me what goes wrong?

Many thanks.

Seth

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.433 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline