Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2007-03-16 15:54:43

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: [request] "Cascading" custom fields.

I still want to do the per section custom fields. I just need time.


Shoving is the answer – pusher robot

Offline

#26 2007-03-16 16:11:03

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

Re: [request] "Cascading" custom fields.

Sweet!

Thanks Hakjoon.
This is a really great idea…glad to know it’s still alive.

I know you’ve got a TON of stuff going on with other plugins…
Maybe there is someone else out there that could pick up this idea and run with it?

Anyone? Anyone?

Beuller…Beuller… (sad reference attempt, I know)

Otherwise, I’ll get my bottle of patience and take a big spoonful.

)


Tom

Last edited by renobird (2007-03-16 16:11:23)

Offline

#27 2007-03-16 16:31:21

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,446
Website GitHub

Re: [request] "Cascading" custom fields.

I’m still big-style interested in this idea. To only show certain custom fields in the admin interface depending on section would be sooo useful.

renobird wrote:

Maybe there is someone else out there that could pick up this idea and run with it?

Although I’ve written a couple of plugins, anyone’ll tell you I’m still a meganewbie. I’ve not dared dabble in the dark arts of the admin side yet so this one’s out of scope for me right now, sorry.

I’ll willingly throw my oar in at (un)suitable junctures and also offer my alpha/beta testing services to anyone that wants to rise to the challenge of coding this up. Who knows, maybe in a few months’ time I’ll have learned enough to tackle it myself: hope you’ve got a good stock of that patience juice :-p


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

Txp Builders – finely-crafted code, design and Txp

Offline

#28 2007-03-16 16:39:27

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

Re: [request] "Cascading" custom fields.

Thanks Stef!

Glad to see there is still interest out there.
I’ll gladly wait for Hakjoon, just thought I’d throw a “call to developers” out there.

If you get to feeling fancy and want to take a crack at it…I’m happy to be a lab rat.

) Cheers.

Offline

#29 2007-03-16 19:17:07

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: [request] "Cascading" custom fields.

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 :)

Offline

#30 2007-03-16 19:33:12

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: [request] "Cascading" custom fields.

mrdale wrote:
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 :)

You don’t know how much I want that. Every time I start planning out how to build this I start going down that road and then it becomes too big.

I honestly think that if we moved articles out of the Textpattern table into an articles table and turned the Textpattern table into a routing table for all elements we would be almost there. I was just talking about this with Matthew the other day.

It requires massive changes to pretext and some of the basic building block functions though.


Shoving is the answer – pusher robot

Offline

#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: 11,446
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.

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

Board footer

Powered by FluxBB