Long time since I have been here - I hope someone is paying Mihai!
So - I have a Category Entry Listing template and having some issues.
Basically the header and footer are the same, but inside the template I have this:
<mt:IfCategory Label="Trattamenti Medico-Estetici"> <mt:SubCategories> <div class="category-headers"><a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a></div> <mt:Entries sort_by="title" sort_order="ascend"> <div class="entry-list"><a href="<$mt:EntryPermalink$>"><$mt:EntryTitle$></a></div> </mt:Entries> </mt:SubCategories> <mt:Else> <mt:Entries sort_by="title" sort_order="ascend"> <div class="entry-list"><a href="<$mt:EntryPermalink$>"><$mt:EntryTitle$></a></div> </mt:Entries></mt:IfCategory>
But I have not been able to alter that to do the following - I have one category that I don't want to show any entries for.
No matter what I tried, something did not work - either all the entries disappeared, or they didn't when I thought they would, etc.
I think I need something like if this category do this, else do this for this specific category, else do this for all the rest. I just can't figure it out!
Any ideas?
Reported on Movable Type 4.3

Hello Afinta,
Nobody pays me, but I am happy to provide feedback here from time to time and people that need more advanced work are also coming back to me for consultancy, or for various jobs (upgrades, new features etc.).
Assuming that you wanted me to adapt the above to let you declare a category for which you don't want any entries displayed, I could advice you to use:
<mt:IfCategory label="Trattamenti Medico-Estetici">
<mt:SubCategories>
<div class="category-headers"><a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a></div>
<mt:Entries sort_by="title" sort_order="ascend">
<div class="entry-list"><a href="<$mt:EntryPermalink$>"><$mt:EntryTitle$></a></div>
</mt:Entries>
</mt:SubCategories>
<mt:Else>
<mt:IfCategory label="None from this other category">
<mt:Else>
<mt:Entries sort_by="title" sort_order="ascend">
<div class="entry-list"><a href="<$mt:EntryPermalink$>"><$mt:EntryTitle$></a></div>
</mt:Entries>
</mt:IfCategory>
</mt:IfCategory>
Or in a simplified format it could be:
<mt:IfCategory label="None from this other category">
<mt:Else>
<mt:IfCategory label="Trattamenti Medico-Estetici">
<mt:SubCategories>
<div class="category-headers"><a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a></div>
<mt:Entries sort_by="title" sort_order="ascend">
<div class="entry-list"><a href="<$mt:EntryPermalink$>"><$mt:EntryTitle$></a></div>
</mt:Entries>
</mt:SubCategories>
<mt:Else>
<mt:Entries sort_by="title" sort_order="ascend">
<div class="entry-list"><a href="<$mt:EntryPermalink$>"><$mt:EntryTitle$></a></div>
</mt:Entries>
</mt:IfCategory>
</mt:IfCategory>
Where "None from this other category" is the label of the category for which you don't want to display any entries.
This could be done also in a different away, checking the current category against the ArchiveTitle tag, but I don't want to complicate your life.
The above should work!
Kind Regards,
Mihai Bocsaru
----------------------------------
Daily Movable Type Consultant
Web Development
Movable Type Consulting
Six Apart Partner
http://www.pro-it-service.com/
----------------------------------
Movable Type Demo
http://www.movabletypedemo.org/
----------------------------------
Open Melody Demo
http://www.openmelodydemo.org/
Thanks Mihai - I will try this and let you know.
You're welcome!