How to insert into node

Daves - May 29, 2009 - 15:01
Project:Rotor Banner
Version:6.x-2.2
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Wow. Great module. So good in fact I want to make it display in the content pane of the home page of my site, with a few bits'n'bobs of text around it. I have tried inserting the following PHP into the page :

<?php
 
print views_embed_view('archive_reflections', 'block_1');
?>


but this generates a static version of the first slide which doesn't rotate.

What is the best strategy for inserting a rotor block into content, in such a way that you have a little control over presentation i.e. not just via the block management interface ?

Thanks in anticiptation,

Dave

#1

Daves - May 31, 2009 - 15:46

OK. I've realised that I needed to create a "Page" display of the view. It looks amazing but raises another question. By default the rotor display is not centered within the content pane. I have had a look at the complex nested set of DIVs created by the combination of views and the rotor module and am at a loss as to what element(s) I should be targetting and where, in order to center the rotor display in the pane.

Any hints would be much appreciated.

Thanks again for this great module.

Dave

#2

mrfelton - May 31, 2009 - 22:34

Actually, I think you're approaching this in the wrong way. You shouldn't need to create a Page view, but instead, create a Block view (or use the one that is supplied with the module). Then, you need to position the block in the appropriate place, and by the sounds of it, that is somewhere within your main page content? If this is the case, perhaps this article I wrote about embeding a region in a node will help. So, you create a new region to hold your rotor block, and use the technique I outlined in that article to allow you to position it within the main body content. For the styling yo can use CSS to target the elements you want to style without affecting other page items pretty easily. I suggest using the Web Developer toolbar for Firefox to help you identify the DOM element hierarchy - allowing you to specifically target your new Rotor block from your CSS.

If you need more help, please ask again.

Tom

#3

mrfelton - June 2, 2009 - 19:58
Status:active» postponed (maintainer needs more info)

#4

mrfelton - November 5, 2009 - 12:27
Status:postponed (maintainer needs more info)» closed

The method you tried above should work providing the same rotor block is not displayed elsewhere on the page (via the normal block management interface for example).

I'm closing this issue due to 5 months of inactivity and no update on the issue.

 
 

Drupal is a registered trademark of Dries Buytaert.