Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-01-19 15:50:07

dl33
Member
Registered: 2006-06-17
Posts: 192
Website

Article list and detail page

Hi all,

sorry, it’s been a while since I used textpattern for the last time so this is probably a really srtupid question; I know that I did it before but I just cannot remember how.

I want to have a list of article list on the ‘section homepage’ and a detailed article view once you click the link from that article list.
The urls would look like /deelnemers and /deelnemers/articlename. (I got that bit working.)

At the moment I have the following code to display the list: (where the form deelnemers_list simply produces a link list)
<txp:article_custom form="deelnemers_list" pgonly="0" sort="Title asc" />

I would like to use the default form to display my detailed article. How do I tell textpattern to do this… At the moment clicking on a link simply loads the same page again, although the url changes…

Thanks,
dl33

Offline

#2 2008-01-19 15:56:24

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,538
Website GitHub Twitter

Re: Article list and detail page

Hi

you must use txp:if_article_list and txp:if_indivdual_article to switch between the two option (look at textbook)

Cheers

Offline

#3 2008-01-19 23:46:50

dl33
Member
Registered: 2006-06-17
Posts: 192
Website

Re: Article list and detail page

Thanks, I knew that it was something simple…

Offline

Board footer

Powered by FluxBB