I'm making two sites at the moment, and with each I struggle with the same problem. I have been through theme developers quide and php snippets, but haven't find an answer yet. Here's the problem:

I need to make a page where I serve flexinode-1 to provide the body of the page (the basic information). Then I need 3 other flexinodes (flexinode-2, flexinode-3 and flexinode-4) of different types to display additional information. The additional flexinodes should be selected by user id of the flexinode-1. I also have the "slots" in the flexinode-1.tpl.php for the other flexinodes to display. So far I have achieved showing flexinode-1 and flexinode-2 at the end of the code of flexinode-1.tpl.php. If I place flexinode-2 on the middle or at the beginning of the template, it looses all the original info for the flexinode-1 after the flexinode-2 has been read.

The problem seems to be in the way I try to achieve this. The template uses php-snippet to get the info from another flexinode (display (x) full flexinodes), and I have tried to use $output=""; after and before the snippet.

Is there a way to do this nicely? Say by making a template that holds the relevant data and just instructs the "slots" to display one flexinode of each type where uid=uid of currently shown flexinode?

The flexinodes are not ment to be shown in any other context.

Any help and pointers would be greatly, warmly and wholeheartedly appreciated.

Comments

Joat’s picture

For the others with the same problem, the solution (at least some sort of) lies on adjusting the way you think about it. Instead of using node-flexinode-x.tpl.php to style the whole page, try making a page that collects the different nodetypes and dispalys it as a total. I found my answer from here: http://drupal.org/node/20630

I will try and make a page that shows 4 flexinodes in a table and at where I want them. Wish all of you the best of luck making the sites the way you want them.