Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-08-08 08:11:46

admi
Member
From: BY
Registered: 2007-12-10
Posts: 145
Website

Problem with an active style menu thru txp:if_article_id id

Hello to all,

I have a problem with an active style menu like this:

<li><a href="<txp:site_url />page1.htm"<txp:if_article_id id='1'> class="active"</txp:if_article_id>>Page 1</a></li>
<li><a href="<txp:site_url />page2.htm"<txp:if_article_id id='2'> class="active"</txp:if_article_id>>Page 2</a></li>

All is Ok when I cklick on Page 1, Page 2, ect. It works fine. However, when I go to the home page, Textpattern says this:

Tag error:  <txp:if_article_id id="1"> ->  Textpattern Notice: Article tags cannot be used outside an article context  on line 207000, etc...

What is the problem? Can this be fixed somehow?

Offline

#2 2009-08-08 08:36:59

admi
Member
From: BY
Registered: 2007-12-10
Posts: 145
Website

Re: Problem with an active style menu thru txp:if_article_id id

Ok, it is solved and it was so simple. I just had to change “testing” mode for “working” one.

Offline

Board footer

Powered by FluxBB