Header - module. Is there one.

General project discussion. NOT for help questions.
Post Reply
ozzie
Forum Members
Forum Members
Posts: 37
Joined: Sun Dec 02, 2007 9:09 pm

Header - module. Is there one.

Post by ozzie »

Hi,
Just wondering if there was a CMSMS module for allowing the operator to easilly change and modify the header section without having to modify the template directly?
A module would allow for the header image to be changed and dimensions including background color etc to be adjustable and set as per preference. The module could also be used to set over all dimensions of the width of the site as well

any one care to advise?
Jack @ PharSide

Re: Header - module. Is there one.

Post by Jack @ PharSide »

There are a few ways you can do this. What type of changes would they be making and can you use Global Content Blocks? If they are design related, try placing all design elements in that real estate into a GCB and then call it from them template.

Good luck
ozzie
Forum Members
Forum Members
Posts: 37
Joined: Sun Dec 02, 2007 9:09 pm

Re: Header - module. Is there one.

Post by ozzie »

Really I guess all I want to do is consider certain deisgn elements as variables and enter the required data via a form field.
ie: header height = pix
background color =
and
image src =

and let the form insert and create a style sheet for the header which canthenbe attached to the main stylesheet fro the template concerned.....or somethign like that.
Unfortunately I have no idea how to do this in script.
I cannot expect the customer to be able to tamper with a style sheet directly. And a form based input panel would be excellent.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Header - module. Is there one.

Post by Dr.CSS »

You could put a content block in the header then they could use the WYSIWYG to add any image they want...

{content block="header"} will show up when editing page as Header:...
ozzie
Forum Members
Forum Members
Posts: 37
Joined: Sun Dec 02, 2007 9:09 pm

Re: Header - module. Is there one.

Post by ozzie »

Good idea...easier for sure.Thanks
How does one edit the content block parameters such as "padding", size etc...?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Header - module. Is there one.

Post by Dr.CSS »

With CSS?...
ozzie
Forum Members
Forum Members
Posts: 37
Joined: Sun Dec 02, 2007 9:09 pm

Re: Header - module. Is there one.

Post by ozzie »

Just that I tried using a banner in a block and found the block has inner padding that means the banner doesn't flush fit.
Obviously I don't know how to use the blocks properly but am willing to learn.
Maybe I should ask outright : " does the css file contain parameters for the global blocks installed within that section?"
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Header - module. Is there one.

Post by Dr.CSS »

It depends if you are using a default install template or one of your own...

{content} & {content block="***"} has no inherent CSS per say, other than paragraph/p CSS that may be in you CSS, but if it's an image sometimes they have a default CSS that the browser puts in so you may want to add img {border: 0px; margin:0px;padding:0px} that way you can add CSS to individual ima tags in content etc...
ozzie
Forum Members
Forum Members
Posts: 37
Joined: Sun Dec 02, 2007 9:09 pm

Re: Header - module. Is there one.

Post by ozzie »

Mark Thanks,
So to clarify....
If I call up the block edit page and insert my image to flush fit I add to the block the {border: 0px; margin:0px;padding:0px}?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Header - module. Is there one.

Post by Dr.CSS »

You notice how the default {content} tag is in say the main div, {content} the styling for anything in the Content is controlled using the CSS call #main as in the p call "#main p {padding: 2px; margin: 5px 0px; color: #000; etc.}" so if you want to point at the image in the you use #header img {your style}...

What I was saying is to put...

img {border: 0px; margin:0px;padding:0px}

in the top of your style sheet then if you need some other image in a particular div to have margin or padding or etc. you would use the call I talk about above like...

#main img {your style}
ozzie
Forum Members
Forum Members
Posts: 37
Joined: Sun Dec 02, 2007 9:09 pm

Re: Header - module. Is there one.

Post by ozzie »

So we set up a default fro the style sheet that disallows padding etc and when inserting an image elsewhere in the style sheet we are forced to provide details beyond the default, if that is what we want otherwise the default at the top of the page would hold true?
yes?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Header - module. Is there one.

Post by Dr.CSS »

Yes...

If I had a way to view the site I could tell what the problem may be with more certainty...
ozzie
Forum Members
Forum Members
Posts: 37
Joined: Sun Dec 02, 2007 9:09 pm

Re: Header - module. Is there one.

Post by ozzie »

I managed to get round it by working the header bg colours to match the body background thus concealing the margin at the top of the header block.
BTW the site in construction is at
http://www.bizzylink.com/indexx.htm
Yeah the index page has an extra "x" ! :)
The old custom site has published priority at present. www.bizzylink.com
I'd be interested in your impressions....[or any one else of course]
You will note the extensive use of Iframes which I am yet to be convinced about the use of. However they offer significant benefit as well...sigh!
My biggest problem was site containment that means that it doesn't distort when the bowser is reduced 1/2 and that the height of the site is managed so that scrolling is kept to the minimum.
How ever I am still trialing it and am not yet sure to keep the use of Iframes or not.

If you are interested in getting in on the development of the scheme and making some money let me know.
ozzie
Forum Members
Forum Members
Posts: 37
Joined: Sun Dec 02, 2007 9:09 pm

Re: Header - module. Is there one.

Post by ozzie »

btw Mark, thanks for your tips, have already used them successfully with much benefit...thanks!
Post Reply

Return to “General Discussion”