Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-02-03 17:16:56

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

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

#2 2008-02-03 17:59:54

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: Section description

you could also create a form for each section, and name the form the section name. Then use the asy_wondertag with txp:output_form.

Offline

#3 2008-02-03 18:42:51

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

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

#4 2008-02-04 13:22:50

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

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

#5 2008-02-04 15:04:19

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#6 2008-02-04 15:43:22

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

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

Board footer

Powered by FluxBB