I've been working on several drupal sites. So far, I have been able to make changes to a theme to make it fit the site. But now I need to do something more.

I'm using Drupal 5.x with the Ad Agency theme.

I'm got the main site setup the way I want it (for the most part):
http://bescene.homeip.net/files/Picture1.jpg

I need the home page to look something like this (minus a few buttons):
http://bescene.homeip.net/files/Picture2.jpg

Both images in these pictures are pointed to the same file (homepic.jpg) I accomplished this by cropping the image and changing the css file to take the different screenshots. I'm not sure if I should be using CCK or Views, Etc...

My other thought was to add a block to the header region of the node with the larger image, but there was no header region, plus I would of needed a way to remove the themes' header image from that node. I couldn't find a way to that either.

Thanks in advance
Scott

Comments

ronan’s picture

Sounds like your comfortable with css, so if you add some code like:
class="<?php echo ($is_front ? 'home' : 'internal') ?>"
To your body tag in page.tpl.php, then you'll have some css classes to help you restyle your homepage and internal pages differently

Hope this helps
------------------------------------
Ronan - Gorton Studios - http://www.gortonstudios.com/

------------------------------------
Ronan
Founder - NodeSquirrel - https://www.nodesquirrel.com/
Agency Tools Lead - Pantheon - https://www.pantheon.io/

skotmiller’s picture

Hi Ronan,

Thanks for he reply. I understand the concept, but I do have a couple questions.

1. How do you tell the page.tpl,php which node is the homepage or an internal page?
2. Will I be essentially be duplicating my css?
3. If I have to duplicate my css, Would there be a way to make it look just for the 'home' classes and any other will be default from the css?
4. Would CCK or views work for this? I don't mind learning how to use them. They sound like a 'must' when using drupal to do custom sites.

I found panels2. Any help? I did install it but started getting mysql errors (memory issues and line 172 errors)

I have been getting confused with the list views, table views, node views, ETC...

Can anyone suggest good lessons on the different parts of drupal?

My other issue is on the homepage. I want to move the content region under the homepic and make it span the 3 columns. I need to place about 4 buttons under the picture. Then I will have the 3 blocks under the buttons.

Scott

skotmiller’s picture

Following these instructions:
http://drupal.org/node/65064

Changing this:

function ad_agency_regions() {
  return array(
	   'left' => t('left sidebar'),
       'right' => t('right sidebar'),
       'content_top' => t('content top'),
       'content_bottom' => t('content bottom'),
       'header' => t('header'),
       'footer' => t('footer'),
);
}

To This:

function ad_agency_regions() {
  return array(
	   'left' => t('left sidebar'),
       'right' => t('right sidebar'),
       'content_top' => t('content top'),
       'content_bottom' => t('content bottom'),
       'header' => t('header'),
       'footer' => t('footer'),
*       'frontpage_top' => t('frontpage top'),
       'frontpage_center' => t('frontpage center'),
       'frontpage_bottom' => t('frontpage bottom')
);
}

(*=line 18)

Causes this:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/mediapro/public_html/themes/ad_agency/template.php on line 18

And that is as far as I get.