I have searched the forums and the handbooks and could not find the answers to some of my questions I have about flexinode. What I did find was either not relevant to my questions or I did not understand.
So these are my questions. Please explain the following:
1.)
In the handbooks it shows how to theme the display of a flexinode data type. But can you theme the entire type. If I create the flexinode type called test, could I then create a test.tpl.php or flexinode-3.tpl.php or node-test.tpl.php file which I can use to theme that flexinode type. If so where can see an example or a list of available variables. Else how.
2.)
Can you theme the create content forms for a flexinode type? IE. Grouping common form elements together. More than just changing the order that they are displayed.
3.)
Can you expand a flexinode type with another flexinode type?
EG(I was ask for this, and this is how I see it being done)
2 Flexinode types, Product and branch. On the product create content form there must be a textarea for each branch (4 branches at the moment I think). This for a comment from that branch about that product. These Comments must be displayed on the product page if there is a comment from that branch, but must be themed separately from normal user comments. Their will only be one person managing the products and this person will be the only one entering branch descriptions for products.
This is just a example. What I want to know is if you can expand 1 flexinode type with another. I could just add a textarea for each branch but I still want to know if it is possible the why I described.
4.)
How do you theme the tabular view of a flexinode type? And question 3 is also relevant here.
Comments
Found it
I answered most of my own questions. And when I found it, it was a lightbulb moment.
It was right under my nose all the time. The only reason I did not see it was because I did not read all the comments on the handbook page (all the way to the last comment). Amazing what a person misses when they rush.
So I decided to post all that I found. If any one is interested. Hopefully you did not make the same mistake I did.
How to theme a flexinode using XTemplate: http://www.robshouse.net/theme_flexinode
How to theme a flexinode using PHPTemplate: http://drupal.org/node/25055
How to theme a flexinode data type: http://drupal.org/node/11811#comment-28887
After having my lightbulb moment and now under stand Flexinode some much better it makes me see just how powerful it is.
The only thing that I don’t know about now is, if 1 flexinode can be used to expand another flexinode. But I did find this http://drupal.org/project/clipper. I have not tried it yet. It seems to be for creating relationships between flexinodes. Potentially very powerful.
Thanks.