Closed (won't fix)
Project:
Views Rotator
Version:
5.x-1.0-rc
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 Oct 2008 at 15:39 UTC
Updated:
6 Oct 2008 at 17:31 UTC
Thanks for this module - it exactly fits the need I have for a sports scoreboard.
When I apply the Views Rotator to an existing View that I had themed using the Views theme wizard, I lose the css and layout settings I had established in the theme wizard's css and tpl files. How do I make Views Rotator incorporate the existing view theming?
Comments
Comment #1
antibob commentedYou need to adjust your template.php file.
Remember, when you started styling your view the theme wizard gave you three chunks of code. One was for the css-file, one was for the .tpl.php file and one had to be inserted into your template.php. Now go and grab the last chunk of php-code in the THEME.txt file in the Views Rotator module (starts with
function phptemplate_views_rotator_item) and look for the part with _phptemplate_callback. Where it says "views-list-my_view" replace "my_view" with the name of your view and then insert that whole php-part in your template.php. That should do the trick.Comment #2
mfer commentedCheck out the THEME.txt file included with this module. Details are provided there. Sorry, no Views Theme Wizard support coming unless someone wants to pay for the project or create a patch with the functionality.
Comment #3
thollback commentedThank you for the clear explanation - I was using the wrong version of phptemplate_views_rotator_item. I made the change and the rotator is working with the pre-existing Views theming.
Thanks again!