This forum is for assistance with theme development.

retrieving domain name?

Servus.

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?

Themeing teasers : how do we know content has been chopped ?

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...

And center logo in bluemarine 4.7.4

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

Center Logo in Garland

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:

#wrapper #container #header #logo-floater {
  position: absolute;
 }

However, I have not been able to get the darn thing to move. Of course, I have already disabled the "site title" option. Any ideas?

Drupal Theme Gallery

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.

How can I access uploaded file from node object?

I'm trying to access the filename and file path for a node. I have the upload module enabled and have uploaded files with my nodes.

I've tried $node->files->filepath, but it doesn't seem to be doing the trick.

If anyone knows the missing link here, I'd appreciate it.

Pages

Subscribe with RSS Subscribe to RSS - Theme development