Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
if_article part 2
Helo
Im looking in forum archive but can’t find solution.
let’ visualise:
we’re looking on individual article.
is there any solution to detect from page template (not from article form) which article is being viewed? i need to display additional content in sidbar, depending which article i watch.
if_article_category isnt solution because it must be use in article form, and i need this in page template.
if_category seems to dont work in article view.
releated_article has wired sort of articles… and dont match my needs.
thats the code for my sidebar:
<code>
<div id=“subnav”>
<txp:if_article_list>
<h4><txp:category link=“0” title=“1” /></h4>
<txp:if_category name=“motywacja”>
<txp:article_custom category=“motywacja” form=“submenu” sortdir=“asc” />
</txp:if_category>
</txp:if_article_list> —it works
<txp:if_individual_article>
<txp:if_category name=“motywacja”>
<txp:article_custom category=“motywacja” form=“submenu” sortdir=“asc” />
</txp:if_individual_article> —it isn’t work
</div>
</code>
is there any solution?
please help
Last edited by pedronx (2006-03-23 17:37:33)
Offline
Re: if_article part 2
solution in this post http://forum.textpattern.com/viewtopic.php?id=15338
Offline
Pages: 1