| |||||||
| Register | Projects | FAQ | Members List | Mark Forums Read |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
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? |
| |||
| Code: Content visible to License Owner only. However this still leaves no ablity to add in the header field an include file or php option. Maybe there could be an alternate option field about the header one for a file name? Last edited by GremlinGod; 08-12-2006 at 06:14 PM. |
| ||||
| Code: Content visible to License Owner only. Code: Content visible to License Owner only. Code: Content visible to License Owner only. |
| |||
|
Thank you... I give that a whirl and see what comes of it. :-)
|
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 'Feature' Request: Complete Language files | Regenerate | v5.x | 10 | 07-21-2006 09:26 PM |
| Feature Request | Akarin | Customer Reviews | 0 | 12-15-2005 11:02 AM |
| New issue tracking: submit bugs, feature request, and enhancement | dody | Announcements | 0 | 02-22-2005 07:01 AM |
| Is the "review" feature an essential feature for INDEXU at you website? | esm | v5.x | 7 | 04-28-2004 09:21 AM |