By chiggsy on
Hello all,
I have been playing around with flexinodes, and am pretty happy with how things have worked out. The only problem i have now is that i cant seem to find the naming convention to allow me to template the node form. I know that for the node itself it is node-flexinode-1.tpl.php.. but how can i change the layout of the node entry form?
Comments
Update:
Ok, i've looked at the code involved here. it seems i should be able to just use something like :
and get a template for the node form. This works for forum node forms, and for blog node forms that i have seen ( replacing 'flexinode-1' with 'forum' or 'blog') . Tragically, php does not seem to accept a function name with 'flexinode-1' inside of it. I've looked on the forums, using search And google, searched with google overall, looked in the docs.. no clue. Yet I can't be the only one who wants the node input form not to be a long list of form elements... Has anyone encountered this problem?
Update 2: This can't be the proper way
Ok, now what i've done is simply override the node_form function, and that gives me access to the node forms. Of course, it overrides all of the node forms, so one would think that i could simply test for $node->type, print form_render($form) for any form not matching my node type , and i would be off... still having some problems with this though ... like the title says ... this can't possibly be the best way to do it .. is it?
Good idea
Chiggsy, I'm quite interested in this idea as well. I've tried to figure it out myself, and ended up giving up completely and doing what I wanted to do in a totally different way that wasn't entirely satisfactory.
Unfortunately, I can't really give any advice on this, but I am definitely interested in a solution as well.
I am looking for the same thing
Same need on me chiggsy. Unfortunately i am not a developer, but i am more than happy to help as i can with testing and feedback!
PS: had a look in the feature requests for flexinode if there was something similar, and didn't find anything, so i am going to post one.
[posted a support request here]
Regards
marco
Update 3: Burned!
Yeah i should have written my own custom node frome the beginning. i am doing it tonight :D