Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2015-03-06 09:41:49

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Check for homepage (not category list, search list, author list)

Ah, OK, thanks Oleg.

Offline

#14 2015-03-06 20:24:01

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,012
Website GitHub Mastodon Twitter

Re: Check for homepage (not category list, search list, author list)

Oleg, I’m probably thinking it wrongly but I’m wondering if <txp:page_url type="s" /> actually recognizes the front page or any page using the default section, like the second page of an article list which uses the particular section.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#15 2015-03-06 22:00:26

etc
Developer
Registered: 2010-11-11
Posts: 5,057
Website GitHub

Re: Check for homepage (not category list, search list, author list)

colak wrote #288820:

Oleg, I’m probably thinking it wrongly but I’m wondering if <txp:page_url type="s" /> actually recognizes the front page or any page using the default section, like the second page of an article list which uses the particular section.

Yiannis, you are right, it only checks the section name, not the presence of other filters. But we can add <txp:page_url type="pg" /> to the chain to detect also these cases.

Offline

Board footer

Powered by FluxBB