Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
question about permlinks and forms
This is probably a simple problem but I’m a bit confused by it.
I have a gallery page for my portfolio site that uses the form “showcase” to display article images and articles.
Like this:
<txp:if_individual_article>
<txp:article limit=“1” section=“showcase” />
<txp:else />
<txp:article limit=“1” form=“showcase” status=“sticky”/>
</txp:if_individual_article>
Within the same page there is another nav panel with the article image thumbs that allows you to view the different pieces/articles.
<txp:permlink>
<txp:article_image thumbnail=“1” wraptag=“li” />
</txp:permlink>
The problem is that when you use the thumbnail navigation it doesnt seem to use the showcase form to display the associated articles -even though its in the same section.
Do i need to add something to the thumbnail permlinks?
click on a thumb to the right to see an example:
http://www.mcmonagledesign.com/web/
thanks
-kevin
its a bad hen that wont scratch itself.
photogallery
Offline
#2 2009-01-21 22:04:03
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: question about permlinks and forms
I think you need to replace the section
attribute with form
:
<txp:article limit="1" form="showcase" />
The section
attribute can’t be used in the <txp:article />
tag, because the tag is context sensitive, and therefore will always display the article(s) from the current section.
Offline
Re: question about permlinks and forms
ahh. thanks els.
its a bad hen that wont scratch itself.
photogallery
Offline
Pages: 1