![]() |
|
Home | Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]() Eric, that's great. I have to hand it to you guys for such a top notch program. Can you help with this question? --> How do I make a category view for my sidebar that only includes one main category?
I need this: <h2><a href="top-level-category-url">Sports</a></h2> <ul> <li><a href="sub-category-url">Football</a></li> <li><a href="sub-category-url">Baseball</a></li> </ul> That's it, only one deep. And I don't want a context-based widget, just one that I can choose which main category (with children) to display. And only one, then I can put a bunch of them together on the same page if I want. I know there must be away to do this because I did it with the previous datafeedr version very easily. Thanks for any advice you can give. |
#2
|
||||
|
||||
![]() Post moved to its own thread as per posting guidelines: http://www.datafeedr.com/forums/showthread.php?t=3603
__________________
![]() ![]() ![]() ![]() |
#3
|
||||
|
||||
![]() This will work where 517926 is the category ID for sports:
HTML Code:
[category.list before='<ul>' after='</ul>'] <?php if ($category->id == 517926 || $category->parent == 517926) { ?> <li> <a href="[category.link]" title="[category.name]">[category.name]</a> [category.repeat] </li> <?php } ?> [/category.list]
__________________
![]() ![]() ![]() ![]() |
#4
|
|||
|
|||
![]() Thank you so much! My way was much longer and less efficient. lol. Once I understand how all this works I think their really is nothing I won't be able to do with this program. I'm pretty excited
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|