Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [request] "Cascading" custom fields.
For what it’s worth, I’m really interested in this… like Bloke I have no plugin building experience to offer but I’m up for cheerleading and testing.
mrdale wrote:
hear, hear… there, there…
This whole confab could so easily get hijacked and diverted toward, (music swells mysteriously) custom content types and content type abstraction, but I would never do that, I promise :)
I can see how it would be easy to go down blind alleys with this, but I’m not really in the loop of Txp development strategy… can you explain a bit more what you mean there mrdale?
Offline
Re: [request] "Cascading" custom fields.
errr is this still being worked on? :(
Offline
Re: [request] "Cascading" custom fields.
Post Deleted By Admin
Last edited by lsalberg (2009-10-21 16:31:00)
Offline
#34 2007-11-27 13:47:50
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: [request] "Cascading" custom fields.
All
I’ve written my first cut of a plugin to do this now and it appears to be working just fine.
Summary…
- Uses the
presentation > sectionstab to define your field names for each section (as long as you remember to save them!) - On the
content > writetab, the custom fields that are displayed are those for the section you have currently assigned in the sections list box. - As you change the assigned section, the fields’ labels (and visibility) adjust accordingly.
The set of fields that get’s displayed on your article edit screen is a merge of the global and section field names. If a field name is defined for a section, it’s used, otherwise the global name is used (if any) otherwise that custom field input is not displayed at all.
Here’s the kind of thing that happens on your presentation > sections tab…

And here are the corresponding fields from the article edit page…

NB ‘default-label 3’ etc are what I have setup in my normal admin > prefs > advanced page for the labels. In this case, the section field names have overridden ‘default-label’ 1, 2 and 5
If there were no default label for fields 3 and 4, they would be hidden.
Last edited by net-carver (2007-11-28 01:07:07)
— Steve
Offline
Re: [request] "Cascading" custom fields.
Stef uncontrollably emits the drool of anticipation…
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
Re: [request] "Cascading" custom fields.
Steve,
This has been on my wish-list for as long as I can remember!
Can’t wait to see it. Nice work.
- )
Offline
#37 2007-11-27 14:17:00
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: [request] "Cascading" custom fields.
Woooow! I have no words, I was dreaming something like this for years, thank you!!!!
Offline
#38 2007-11-27 15:42:14
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Offline
Re: [request] "Cascading" custom fields.
Stef uncontrollably emits the drool of anticipation…
You said it!
Now to carve out some time to try it out. Thank you, Steve!
(and hooked up with gerhard’s custom field types plug-in it would be just awesome)
TXP Builders – finely-crafted code, design and txp
Offline