foxhound |
|
---|---|
I am trying to figure out a way to ouput all categories in the list section of my website. <img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
|
Macik |
|
||
---|---|---|---|
Here it is:
I use this function for my own. It similar to pagelist but more simplier. You can add it to `global` hook — for example simply add it to `pagelist.global.php` file.
https://github.com/macik
правильный хостинг — https://goo.gl/fjCa1F |
foxhound |
|
---|---|
Thanks for that!!
<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
|
Macik |
|
||
---|---|---|---|
First of all — I forget to add
in the beginning of function. Than you can use CAT tpl variable like: CAT.path
https://github.com/macik
правильный хостинг — https://goo.gl/fjCa1F |
foxhound |
|
---|---|
Thanks again! That sure gave me a lot more options. :)
<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
|
Macik |
|
||||||
---|---|---|---|---|---|---|---|
Not clearly understand what you speak about… Trying to answer anyway. You had one `catlist.tpl` tpl placed in `themes/plugins`. (see it below). Than you put TPL callback in your dropdown menu code (in `header.tpl` or wherever it had been placed):
or
catlist,tpl:
https://github.com/macik
правильный хостинг — https://goo.gl/fjCa1F |
foxhound |
|
||
---|---|---|---|
Yes, that is what I am trying but it always output all categoeires and subcategories in my menu. It does not show the subcategoeries on hover, it just adds them like a normal category.
But what it does is just create a dropdown for every item in the category and the dropdown will be the item itself. One big mess. <img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
|
Macik |
|
---|---|
With this simple function (`catlist`) you can not build complete category tree structure as it prints plain list of categories. So there are 3 ways to solve that:
https://github.com/macik
правильный хостинг — https://goo.gl/fjCa1F |
foxhound |
|
---|---|
Okay, thanks for all your help. :) <img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
|