Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
txp:if_category is case sensetive ?
I have category:
- name – 03_OBJECT
- title – Objects
This is part of my template:
<txp:category_list type="image" break="" parent="gallery" exclude="gallery">
<txp:if_category name='<txp:category />'>
<li class="active"><span><txp:category title="1" /></span></li>
<txp:else />
<li><txp:category title="1" link="1"/></li>
</txp:if_category>
</txp:category_list>
If I go to url…
1. http://site.com/category/03_OBJECT/
– error
…I get only else
part ([false]
in tag-trace for every of categories listed above). Renaming category to lowercase fixes this problem.
2. http://site.com/index.php?c=03_OBJECT/
works as i need
…I get [true]
in tag-trace for right category that is current.
P.S. 4.0.8 (r3115)
Last edited by the_ghost (2009-03-15 23:42:52)
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline