This forum is for assistance with theme development.

best way to wrap images with text

What's the best approach to get content in with images wrapped with text and also, two columns for text?
I suspect you may say htmlarea, but I've had problems getting that to work with 4.6 (not ready?), and in 4.5 on OS X panther.

Generic Theme

I've found a very intersting XHTML/CSS Template here: webproducer.at.

The template is able to generate 1 (left or right),2 or 3 column pure css fluid layouts.

One can change the layout either in code like this:

Combining primary and secondary links in phptemplate (marvin_2k) (a guide)

A lot of the themes for phptemplate only have one set of links (usually the primary links). I know that the SpreadFireFox theme as well as the Marvin_2k theme only allow for one set of links.

I spent a little time today and figured a way to combine primary and secondary links in a fun way. I wanted my primary and secondary links to be on the same row, but simply aligned to different edges of the screen.

I first opened page.tpl.php and found where primary links were rendered. This is what I found.

 <?php if (is_array($primary_links)): ?>
    <ul id="main-nav">
      <?php foreach ($primary_links as $link): ?>
         <li><?php print $link?></li>
      <?php endforeach; ?>
    </ul>
  <?php endif; ?>

I changed it to this:

  <?php if (is_array($primary_links)): ?>
    <ul id="main-nav">
      <?php foreach ($primary_links as $link): ?>
         <li><?php print $link?></li>
      <?php endforeach; ?>
      <?php if (is_array($secondary_links)): ?>
          <?php foreach ($secondary_links as $link): ?>
	     <li2><?php print $link?></li2>
          <?php endforeach; ?>
      <?php endif; ?>
    </ul>
  <?php endif; ?>

By making this change I added a condition that checked for secondary links, and if they existed, they were printed under the div tag "
," which is a new tag I created.

The
tag is exactly the same as the

  • tag except it says, "float: right;" instead of "float: left;"

    the result can be seen here: http://72.9.242.6 (don't judge the site, it's still under heavy development).

    I hope this can help someone else in the future.

    Mateo

  • SpreadFirefox theme question

    Or is it PHPTemplate issue?

    I tried to install the SpreadFireFox theme onto CVS version, and I got the following error when I apply the theme.

    Fatal error: Call to undefined function link_page() in c:\Inetpub\wwwroot\drupal\themes\engines\phptemplate\phptemplate.engine on line 372

    This site is running on IIS, with PHP5 and MySQL4.x

    Thank you for any feedback or pointers.

    p.s. I am testing out Drupal for a non-profit organisation, which Drupal books pages make a lot of sense.

    Ngoh

    Custom header graphic for each node

    Thanks in advance for everyone taking a look at this. I am very new to drupal (72 hours) and I need some guidance and please forgive me if I use the wrong terminology.

    I am trying to make some changes to a site that has drupal installed and is using a custom php theme. The design calls for a graphical header for each node (ie, news, about us, support, ect) followed directly below by breadcrumbs.

    wrap it in a container, and therefore add the appropriate php code?

    Here's what I'm doing:
    I am working with phptemplate. I've exposed my theme (taken from Friends electric as a starting piont) with colour and made some adjustments. I haven't hacked any php yet, but am planning that now, for functionality.

    Pages

    Subscribe with RSS Subscribe to RSS - Theme development