Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-27 19:15:57

reptilerobots
Member
Registered: 2005-08-20
Posts: 72

help with wet_thumbfilter - articles not appearing

I am building my portfolio website (slowly) and learning txp as I go- there are several “gallery” sections – school, professional, freelance

every gallery section uses the same page, there is an IF statement that calls which form is used – so if you are in the “school” section,
<code>
<txp:if_section name=“school”>
<txp:output_form form=“body_gallery_school” />
</txp:if_section>
<txp:if_section name=“professional”>
<txp:output_form form=“body_gallery_professional” />
</txp:if_section>
<txp:if_section name=“freelance”>
<txp:output_form form=“body_gallery_freelance” />
</txp:if_section>
</code>
it will use the form “body_gallery_school”
in the “body_gallery_school” form, I have <code><txp:if_individual_article>
<txp:body /><txp:article_image />
<txp:link_to_prev>previous</txp:link_to_prev>
<txp:link_to_next>next</txp:link_to_next>
</txp:if_individual_article></code>
<code>
<txp:if_article_list>
<txp:wet_thumbfilter section=“school” limit=“25” />
</txp:if_article_list>
</code>
So far, so good – the thumbs for the “school” section appear, but when I click on to the thumbnail to access the article, the page is blank. It returns no error, but the image is not there, nor the body text of the article… the title of the article is in the address bar though.. so it is reading something………

So, as I said, I just started on this, but have read multiple posts to try to figure this out for myself – I am probably overlooking some small thing.. ANY help would be appreciated!

Offline

#2 2005-12-27 19:50:22

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: help with wet_thumbfilter - articles not appearing

you need to use the txp:article instead of txp:output_form

instead of:
<code><txp:if_section name=“school”>
<txp:output_form form=“body_gallery_school” />
</txp:if_section></code>

use:
<code><txp:if_section name=“school”>
<txp:article form=“body_gallery_school” />
</txp:if_section></code>

Offline

#3 2005-12-27 20:30:27

reptilerobots
Member
Registered: 2005-08-20
Posts: 72

Re: help with wet_thumbfilter - articles not appearing

thanks alot!
just one more miniscule detail I didnt know about. If you have the time, could you tell me exactly why I have to use <txp:article> instead of <txp:output form> ? or point me in the right direction of where the info might be?

Offline

#4 2005-12-27 20:44:26

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: help with wet_thumbfilter - articles not appearing

Hi repti, can you please enclose TXP Tags in @ signs or in < code > .. it seems as if the forum breaks if you do not. Please edit your previous post accordingly.

Offline

#5 2005-12-27 20:49:54

reptilerobots
Member
Registered: 2005-08-20
Posts: 72

Re: help with wet_thumbfilter - articles not appearing

oh sorry, basically I was wondering why you use <code><txp:article></code> instead of <code><output_form></code> … what’s the difference? If you have time, maybe you can fill me in.. Id like to know “how” it works, and not just that “it works”

Offline

#6 2005-12-27 21:34:39

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: help with wet_thumbfilter - articles not appearing

Only article forms (that contain the parts of the article that should be displayed) can be called with the txp:article tags. In other words txp:article extracts the fields that are specified in the article form from the textpattern table (where the articles are). The other form types (that can basically contain anything else) need txp:output_form.

Offline

#7 2005-12-27 23:49:24

reptilerobots
Member
Registered: 2005-08-20
Posts: 72

Re: help with wet_thumbfilter - articles not appearing

thanks for everyone’s help – I am one step closer to finishing my massive portfolio site. I will post a link when finished!

Offline

Board footer

Powered by FluxBB