Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-01-18 18:02:51
- monster791
- New Member
- Registered: 2009-01-18
- Posts: 1
Article list and individual article on the same page
Hello,
I am trying to create a page with two columns. The left column should display a paginated list of articles. When the user clicks on an individual article, I would like the left column article list to remain the same, and have the individual article contents display in the right column.
I can accomplish this with <txp:article_custom> on the left and <txp:article> on the right, but pagination does not work for <txp:article_custom>. My current idea for a workaround is to use adi_gps to extract page number variables from the URL, and then use the a bunch of if_variable statements to adjust the offset attribute in article_custom. This effectively hacks pagination for article_custom but it’s super clunky.
Does anyone have a better idea for how to do this?
Many thanks,
Jonas
Offline
Re: Article list and individual article on the same page
For the <txp:article_custom />
column what about using the wet_if_page plug-in and the “offset” attribute for the tag?
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline