Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Plugin for highlighting active article
Hello,
is there any plugin for highlighing in a menu the active article, somehow like cbs_navigation_menu does (altough that is for sections)
Thanks
Last edited by Manaus (2011-09-30 08:56:35)
Offline
Re: Plugin for highlighting active article
Hi Manaus
You can do that with native tags. <txp:if_article_id>
could help. If you post your menu code, we could help.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Plugin for highlighting active article
Thanks colak,
<li><txp:wet_link href="8">something</txp:wet_link></li>
<li><txp:wet_link href="9">something</txp:wet_link></li>
<li><txp:wet_link href="10">something</txp:wet_link></li>
This is outside of an article, in a header of ‘misc’ type.
Last edited by Manaus (2011-09-30 10:00:04)
Offline
Re: Plugin for highlighting active article
huh. So it is a manual menu.
Try something like
<txp:if_article_id><li class="active"><txp:else /><li></txp:if_article_id><txp:wet_link href="8">something</txp:wet_link></li>
<txp:if_article_id><li class="active"><txp:else /><li><txp:wet_link href="9">something</txp:wet_link></li>
<txp:if_article_id><li class="active"><txp:else /><li><txp:wet_link href="10">something</txp:wet_link></li>
then add in your css
.active {backround-color: #ccc}
or style according to your design
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline