![]() |
Autogallery template question, php
The <?echo $category;?> is working everywhere in the template except for here. Is there another way to write it in autogallery?
<%GALLERIES TYPE Thumb CATEGORY <?echo $category;?> AMOUNT 30 SORT Display_Date DESC, Display_Stamp DESC HTML Thumb INSERT { LOCATION +6 HTML </tr><tr> } %> |
bumpity bump
|
you don't need to put $echo category there. you put the name of the category you want displayed there. example: if you have a category named milf and that is what you wanted displayed then you would put milf there instead of $echo category. All that variable does is tell the script which category to pull galleries from and display it.
Hope that helps |
If you are looking to display the category name alongside the gallery link or thumbnail you will need to add ##Category## in the link template that you set above your html code. Using ##Category## on any part of your template should make the current category name be displayed after being built, except in the directive like you have above.
|
Thanks Gothbox but I have over 50 categories and am trying to make things easier to mass edit so each category template has to be identical.
|
I see what you are saying, however there probably is not going to be an easier way. Just use the same template for all of your categories and go in and change the name of the category on the directive to suit your needs. It is only 50 categories, it would probably take about 3 minutes to type the different categories into each template. You could also use search and replace and would not have to type out each one.
Good luck |
I see what your saying but I set the template up in a way that all of them are identical except for this little part. It displays the correct title, correct archive links, meta tags, etc. I guess I could manually edit them as a temporary solution but if anyone knows how to add the php tag, that would make things easier.
|
All times are GMT -7. The time now is 05:37 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123