Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Trying to replace glx_if_section with built in txp tags
Hello, I am trying to remove as many plug ins as possible. What I need to happen here is show a front page of a section, in this case a menu for the section. I have achieved this with glx_if _section and a sticky article.
How can I do it without the plug in? Here is what I have right now.
<code>
<txp:glx_if_section_frontpage>
<txp:article section=“photography” status=“sticky” form=“article_basic” />
</txp:glx_if_section_frontpage>
<txp:if_individual_article>
<txp:article section=“photography” limit=“1” form=“article_print_na” />
</txp:if_individual_article>
</code>
Art Rogue – Fine Art Photography
Offline
Re: Trying to replace glx_if_section with built in txp tags
Its pretty easy. See this post for more, and if it does not do it for you then let us know.
http://forum.textpattern.com/viewtopic.php?id=13003
Offline
Re: Trying to replace glx_if_section with built in txp tags
Ok. So I have it working using the following code:
<code>
<txp:if_section name=“ceramics” />
<txp:article section=“ceramics” status=“sticky” form=“article_basic” />
<txp:else />
<txp:if_individual_article>
<txp:article section=“ceramics” limit=“1” form=“article_ceramic” />
</txp:if_individual_article>
</txp:if_section>
</code>
However, I am recieving the warninga:
tag_error <txp:else /> -> Textpattern Warning: unknown_tag
Any Idea on how to simplify my code and get rid of the warning?
Art Rogue – Fine Art Photography
Offline
Re: Trying to replace glx_if_section with built in txp tags
You don’t need the closing slash “/” for the opening if_section tag.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline