Posting on behalf of Tim Jones:

Theming and coding flexinodes would be easier if their node objects used more intuitive fieldnames.

So I could write

echo $flexinode->subheader

instead of

echo $flexinode->flexinode_3

This could be done by filtering the field title to remove spaces and punctuation and render all lowercase. So "Blue Sub-header" becomes "bluesubheader".

Alternately, we could add another column to the db to store a special field label, similar to how contact.module asks for a 'Form Name' when creating a new contact field.

This is a nitpick- flexinodes rock.

Comments

jonbob’s picture

I agree that this would be a good move. It would be nice for both fields and content types to be named nicely in URLs as well as theme names. The issue is uniqueness. With URLs, there are obvious problems (what happens if a user calls a content type "story"?). With theme variables, things are more subtle, but the problem is the same; what about a field named "type"? It's probably an issue that can be dealt with, but I'm going to change the version on this to "CVS" while there are still bigger bugs to fix. :-)

UI breakthroughs (or code) welcomed, of course.

dublin drupaller’s picture

Hi guys,

Almost a year old this post...just wondering if you made any progress...

Dub

drumm’s picture

Flexinode will be changeing a lot as Content Creation Kit (CCK) gets done. The status is at http://drupal.org/cck-status. I think this issue may be fixed as a side effect of that huge chunk of work.

dman’s picture

Title: More intuitive fieldnames for theming/coding (instead of 'flexinode_x') » Can I get a "HELL Yeah"?

I've opened a topic mentioning this over here
.. feedback is welcome.

.dan.

ptaff’s picture

What was the point of changing the title to crap that has no meaning?

drumm’s picture

Status: Active » Closed (won't fix)

Marking won't fix due to title.

Geary’s picture

Title: Can I get a "HELL Yeah"? » More intuitive fieldnames for theming/coding (instead of 'flexinode_x')

Restoring original title.

dman’s picture

OK, so I got caught out by the old "the title of your post is not actually the title of your post" mis-feature.

Every second 'issue' thread seems to have someone caught out by it.
This looks like a comment form, behaves like a comment form, but seems to get everyones knickers in a twist when someone USES it like a comment form.
Brilliant justification to use to "won't fix" another mis-feature. :-/

Look, either lock the titles, or at least put a nice big warning there, It'll save everyones time & effort.

.dan.

Bèr Kessels’s picture

@dan, thank you for volunteering to rewrite project module! lpease write the development list, for some more ppl are workign on this.