Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-03-22 10:11:00

pedronx
Member
From: Poland
Registered: 2006-01-20
Posts: 18
Website

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

#2 2006-03-24 09:25:52

pedronx
Member
From: Poland
Registered: 2006-01-20
Posts: 18
Website

Re: if_article part 2

solution in this post http://forum.textpattern.com/viewtopic.php?id=15338

Offline

Board footer

Powered by FluxBB