The patch code adds a new function to the flexinode.module. The new function is a new feature for a flexinode template.
Template snippet "node-flexinode-n.tpl.php"
old feature:
‹div class="code"›
‹?php print $node->flexinode_n?›
‹/div›
new feature:
‹div class="content"›
‹?php $area = flexinode_load_data(n); print $area->textual_data; ?›
‹/div›
The old feature print the textarea with label. The new feature print only the textarea content, without label!
I think, with this feature have many user less stress with the label in the HTML contents.
Regards
quiptime
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | node-flexinode-1.tpl.php.txt | 593 bytes | quiptime |
| #3 | flexinode.module_8.patch | 538 bytes | quiptime |
| flexinode.module_7.patch | 521 bytes | quiptime |
Comments
Comment #1
quiptime commentedNote:
For a template please following code use.
Snippet "node-flexinode-n.tpl.php"
‹div class="content"›
‹?php $area_n = flexinode_load_data(n); print $area->textual_data; ?›
‹/div›
The variable $area must be individualized to $area_n ‹- that is important.
Of course also another name for the variable can be used.
What is n?
N is the different field of the flexinode content types page - a textarea.
You can then find the different fields in a similar way from the admin>>content>>content types page, by clicking on edit for the choosen field and looking at the cooresponding url (i.e. node/type/edit_field/1 would be $node->flexinode_1).
I hope I can with my small explanation help.
Regards
quiptime
Comment #2
quiptime commentedBullshit,
please use my next patch (in the next minutes) and follow the description. Works then correctly.
Comment #3
quiptime commentedComment #4
quiptime commentedTemplate example - used flexinode.module_8.patch
Comment #5
Bèr Kessels commentedUnless you come with a less hacky way. AND a way that preserves the current way of dealing with output (via the theme) I will mark this "by design".