Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2007-03-18 18:40:33

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

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

#32 2007-07-19 20:34:15

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: [request] "Cascading" custom fields.

errr is this still being worked on? :(

Offline

#33 2007-11-05 21:09:25

lsalberg
New Member
From: Cancel, USA
Registered: 2007-11-05
Posts: 1
Website

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…

  1. Uses the presentation > sections tab to define your field names for each section (as long as you remember to save them!)
  2. On the content > write tab, the custom fields that are displayed are those for the section you have currently assigned in the sections list box.
  3. 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

#35 2007-11-27 14:00:09

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

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

#36 2007-11-27 14:13:49

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

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

Re: [request] "Cascading" custom fields.

All

Announcing a new plugin for you.


Steve

Offline

#39 2007-11-27 19:04:21

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,192
Website GitHub

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

Board footer

Powered by FluxBB