Viewfield or reference views. Which to use? Well viewfield is a module where you add CCK filed and you can choose which view you want to have for this field to show. This can be default or can be overridden on node edit form.
Viewfield or reference views. Which to use? Well viewfield is a module where you add CCK filed and you can choose which view you want to have for this field to show. This can be default or can be overridden on node edit form.
If you are using Taxonomy Node to have additiona data for your taxonomy you are in for supprise if you go to term page and see "There are currently no posts in this category." message. Other then this, module works fine. To solve this problem, use views and activate default taxonomy_term view and make some eddits.
This code will be often used if you want to pass current node taxonomy term to view to list some other nodes, for example to have a list of similar nodes, nodes with same term. Choose taxonomy term:ID and write thise code down. We load current nodes data and get term ID from key of term.
To find out which fields are available in custom fields in views, put following code in custom PHP field.
print var_export($data, false);
Today I made a view from which 3 menu links derive, problem was that all had the same title as it was only one view. Way to solve this was to pass argument to view trough Global that would be ignored in query.