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

Comments

quiptime’s picture

Note:

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

quiptime’s picture

Bullshit,

please use my next patch (in the next minutes) and follow the description. Works then correctly.

quiptime’s picture

StatusFileSize
new538 bytes
quiptime’s picture

StatusFileSize
new593 bytes

Template example - used flexinode.module_8.patch

Bèr Kessels’s picture

Status: Needs review » Needs work

Unless 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".