How to disable page element on certain articles

General questions relating to Joomla! 1.5 There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Locked
yakusa
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Fri Sep 02, 2011 11:43 am

How to disable page element on certain articles

Post by yakusa » Tue Oct 11, 2016 8:02 am

Hi all!
I want to make a 100% clean bootstrap template for Joomla 1.5 (i know i know but it runs as intranet application so it's safe - i dont want to mess with this ;) ) and wonder how to disable template element (div) on certain article pages (not associated to selected category/section ID). I want to hardcode it directly in template.

THANKS! :)
Last edited by toivo on Tue Oct 11, 2016 8:37 am, edited 1 time in total.
Reason: mod: moved to 1.5

yakusa
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Fri Sep 02, 2011 11:43 am

Re: How to disable page element on certain articles

Post by yakusa » Tue Oct 11, 2016 8:20 am

Something like is possible?

{if article->category-id != 2 && 3}Do something{else}Do something else{/if}


Locked

Return to “General Questions/New to Joomla! 1.5”