Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-29 21:08:30

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

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

#2 2005-12-29 23:04:45

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

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

#3 2005-12-31 19:18:28

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

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

#4 2005-12-31 22:53:59

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

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

Board footer

Powered by FluxBB