Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Section description
I would love to have a “Description” field for each section, with of course a tag to output that field’s contents.
I try to avoid using a different page (template) for each section, so the only way I know to add a description to each section is to hard-code a long list of if_section
statements. It would be much easier and more elegant (and, well, Textpattern-like) if I could just pop a <txp:section_description />
tag into the page. Or maybe “caption” rather than “description” is the right word.
Code is topiary
Offline
Offline
Re: Section description
Good thought — thanks. I’d still like to see the feature added, though. I prefer to keep content out of forms and pages as much as possible, and what I’m talking about is basically content.
Code is topiary
Offline
Re: Section description
Actually, I manage this by creating an article with the status of sticky for each section, and have in my page form a sticky article before everything else.
~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~
Offline
Re: Section description
I prefer Kemie’s approach, because making an sticky article to describe your section is a “more-txp-semantic” approach.
An sticky article belongs to the “Content” tab, and being an article, you or your clients could easily edit it. Whilst being a “section description” field in “Presentation -> Sections” may be “against” TxP semantics. And you will need to give more access rights to your clients to edit that field, and so, they can screw up the sections.
Offline
Re: Section description
kemie wrote:
Actually, I manage this by creating an article with the status of sticky for each section, and have in my page form a sticky article before everything else.
Very sensible. Thanks.
Code is topiary
Offline
Pages: 1