Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-11-09 16:16:38

caruso_g
Member
From: Catania
Registered: 2009-04-11
Posts: 88
Website

Sections with a sticky landing page and sngle pages for live articles

Hi guys,
I am creating a website that uses the great adi_menu plugin to create as structure with sections and pages with articles (also thanks to article_order, a great plugin couple) but… I am not able to create a page that manages non blog sections with more then one article page.
I.e. I am able to create, when clicking on a section name in the navbar, a landing page setting the article as sticky and putting within the code <txp:article status="sticky" /> but how can I switch to single live pages when clicking on articles menu items?

the structure is less or more like:

(S)=Section
(A)=Article
(^)=Sticky

  • Products (home)(S)
    • Product one (S)
      • Main (A)(^)
      • Store (A)
      • Docs (A)
    • Product two (S)
      • Main (A)(^)
      • Store (A)
      • Docs (A)
    • Product three (S)
      • Main (A)(^)
      • Store (A)
      • Docs (A)
  • Another page (S)
    • Page one (A)(^)
    • Page two (A)
  • Blog (S)

Practically, I am able to show Main but I don’t know how to show, e.g., Store when clicking on its menu item.

Thanks you all. :)

Offline

#2 2009-11-09 22:08:22

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

Re: Sections with a sticky landing page and sngle pages for live articles

I’m not quite sure what the problem is. Is it that when you click on the “Store” article link you get a page that still has the “sticky” “Main” article on it?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#3 2009-11-09 22:30:51

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

Re: Sections with a sticky landing page and sngle pages for live articles

Something like this?

<txp:if_article_list>
     <txp:article status="sticky" />
<txp:else />
     <txp:article />
</txp:if_article_list>

Offline

#4 2009-11-09 22:34:11

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

Re: Sections with a sticky landing page and sngle pages for live articles

That’s what I was thinking assuming that was the problem Els.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#5 2009-11-09 23:38:35

caruso_g
Member
From: Catania
Registered: 2009-04-11
Posts: 88
Website

Re: Sections with a sticky landing page and sngle pages for live articles

Hi Els,
sometime I feel an idiot… it was that simple. :D
Thanks Stuart as well, is was too simple to think that was the solution… :P

Offline

Board footer

Powered by FluxBB