Admin CP -> Categories: View/Edit/Delete -> Edit Category (Any Category)
Scroll down to the Header Field ->
----------------------------------------------------------------
Header
Enter you html code for header of this category's page. If you leave it empty INDEXU will use cat_header.html
----------------------------------------------------------------
It actually uses header.html but that is not the point of this post.
I posted the above in the bugs area but it is relevant here. I could not find a forums for "IndexU Feature Rquests" so I am posting it here.
While I was checking out this option I figured that there was a typo there and and figured I would try something. I copied the theme header.html to cat_header.html then modified the cat_header.html I just created so I could tell if it was being displayed. Then I rebuilt the cats and tested the category which I modified. It did not work.
Also I tried using the template code options <%include file="cat_header.html"%> - This does not work either and I figured this option is not reading the template variables so I tried copying the contents of header.html with some changes so I can see the difference into the header field, rebuilt the cats again as always, but that does not work either. All the template variables do not work using the header field. So to me this header field is a useless option in my option. If you can not use the template variables here what good is it.
Then it came to me. What about a category auto-detect template feature. ie: You have a Category called "Car Wallpaper" and in the themes directory you create a file called header.car_wallpaper.html or footer.car_wallpaper.html and when a visitor goes to that directory IndexU will find the file. There are of course performance issues with this but they are easliy overcome using a /custom_tempates or /custom directory under the theme directory you are using and will only read this directory if it is flaged under the admin options for that category. And of course there is the template cache that is already in use to help this as well. :-)
This will allow a user to use includes as well as the other template variables.
Anyone want to comment on this idea?


