What if you ad Match[section]=10 to the [line_profil2] or [line_profil] instead of the "parent_node"? Where 10 is the number of you profil2 (if you putted it in [line_profil2]) section...
They both have to have different sections for this to work... ;)
I use this section trick to make different full and line files for same class...
I save the content of the class in the 'Instruktør' folder and add location to the 'Styret' folder. So it still uses the same template. However, if I create a new object with the Profil-class and store it in the 'Styret' folder, it uses the correct template.
You see, an instructer can also be a member of the board, so I need to keep them in one place, so I don't have to update the same information in several locations.
Oh, please, let there be a solution to this :-| :-)
I gave up on using different templates and instead just put the code I had in my line_styret template into the loop-section in my node_styret template.
It works, although it's not the ideal way to do it.
You must be logged in to post messages in this topic!