Please bear with me as i am not sure if this is an issue with contemplate or views
Today I finally took the step and upgraded my Views to 5.x-1.6 and at the same time upgraded to the latest Contemplate
Before the update i had a Body Template that was basically
<?php print $body ?>
##Display a Banner##
When you look at a node of the content type ##Display a Banner## would do what it was supposed to
When I used List mode of Views it would process the
<?php print $body ?>
but the ##Display a Banner## would not be shown, so it had to be themed for the view itself, which worked perfect for my needs.
Now after the upgrade, it would appear that views is receiving all of the template information for Body
<?php print $body ?>
##Display a Banner##
So now the ##Display a Banner## appears twice. Once from Contemplate and onces from the theming of views.
Is this a bug with Contemplate? Views? or a fix of somthing that was wrong before ? What should be received by views for Body, is it the whole Body Template
If anyone can point me in the right direction, as this last upgrade was in preperation for the jump to Drupal 6 in the near future
Comments
Comment #1
yuriy.babenko commentedI would say that this is intended functionality and some bug was fixed in the update. It seems to make sense for it to work this way...
Content template modifies the body variable before it is accessed by anything. Views pulls up the modified body variable (doesn't even know that it was altered), and displays it. Business as regular.
I would remove the second ##Display a Banner## from the theme, and everything *should* work fine.
Comment #2
Anonymous (not verified) commentedMany thanks for the reply. I have indeed removed the second ##Display a Banner## from the Views theme. It does to me make sense that something has been fixed during an update.
Though i must say that the bug was quite advantageous, as i was able to use different footers for the nodes depending on if it was a node being displayed or a view
Marking as closed