Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2018-01-18 08:17:23

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

Re: section front page

etc wrote #308710:

Then we’d need to create also <txp:if_author_frontpage /> and so on, for consistency. And not win much, this does more or less the same:

<txp:if_section name="section_name">...

Fair enough.

I guess I am thinking in a non programmer way. The front page comes before the rest. I could nevertheless live easily with that solution.


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

Online

#17 2018-01-18 13:35:48

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

Re: section front page

I think the main problem is that there is no universal frontpage definition. Clearly, /some_section/ URL is section frontpage, but what about /some_section/?author=me? Sometimes you want to consider it as section+author frontpage, sometimes not.

Offline

#18 2018-01-18 13:50:38

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,493
Website GitHub

Re: section front page

etc wrote #308719:

the main problem is that there is no universal frontpage definition.

Exactly this. I refer to Section front pages as “landing pages” when explaining it to people. I’d call the author list an “author landing page” or category list a “category landing page”, but I wouldn’t call the site front page the site’s landing page, even though they’re all traditionally served by the same default Page template.

The way Oleg has this set up now allows you to decide what you deem “front” or “home” or “landing” or whatever you want, without our enforced naming convention getting in the way. You can serve them all from the same Page template if you like and differentiate easily, or assign a template for each use case, or a suite of templates to handle a subset of them. Nice and flexible, no plugin required.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB