Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Hi !
I'm quite new to the "Views" module and I wonder how to do to embed two (or more) views that display different fields and that have different arguments on the same page ?
I've created a first block with a custom layout and it works fine but for a second one it doesn't.
I've tried to simply put the functions generated by the theme wizard in template.php but the layout of the second Block created with Views doesn't work. I mean, my changes are not taken, the layout of the block is the one generated by Views.
I got a site which is addressed by two different domain names, e.g.:
domain_a.com and domain_b.com
Both domains look and act pretty much the same, except two links in page.tpl.php have to be different depending on what domain got called.
Question
Is there a way to retrieve the currently displayed server URL using Drupal/PHP or do I have to use JavaScript to get the window.location to solve the above problem?
I want to theme teaser nodes that have content that has actually been chopped off.
It seems that in drupal 5 it's not straightforward from a themeing point of view.
$teaser is always TRUE in Teaser View.... whether the teaser contains the entire node content or not. Hence, his boolean value only tells us whether we are in teaser view or not.
... and simple comparison of $node->teaser with $node->body always yields a false value, even when no content has been chopped...
drupal 4.7.4
Theme Bluemarine , which I am mucking about with. Tried adding align center to all sorts of places in style css , but cannot for the life of me move the alt logo image to the center. Have tried adding an align to the page.tml , but still it persists.
If anyone can help me here I'd be rapt.
Thanks
I am trying out the 5.0 RC1 and attempting to modify the default theme, Garland. It is extremely flexible and well done. My only hitch thus far has been centering the logo. Based on the CSS and source that I have seen, it appears as though it would be done in the modified color CSS file here:
I've put together a website for showcasing themes for open source content management systems: ThemeBot.com. There is a gallery section and live demo for each theme. All of the themes for Drupal 4.7 and 5.0 are included.