Adding different html text to banner image

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
dmaireroa
Forum Members
Forum Members
Posts: 110
Joined: Wed Jul 15, 2009 12:35 am

Adding different html text to banner image

Post by dmaireroa »

Hi there

I gave this one some serious thoughts and came up with no solution.
I have my template with a banner image at the top, and what I want to do is add a html text to that same banner image. However, for each page, I want to add a different html text to the banner image. Hope that makes sense  ;D.
Example:
Page1
I am the man

Page2
I am a champion

Page3
I am conqueror
So I knew I couldn't add this to the template since this will make my html text the same on every page.

Any suggestions?

Many thanks in advance
CHEERS :)
Last edited by Anonymous on Fri Aug 14, 2009 5:36 am, edited 1 time in total.
Cherry

Re: Adding different html text to banner image

Post by Cherry »

Hello,

try this one:
first: make your header image the background of the header div
then for the text put a second content block into your template:

Code: Select all

  <h1>{content block="headertext" wysiwyg="false"}</h1>
That gives you a second content block when editing the pages.....

Hope that helps..
Cherry
dmaireroa
Forum Members
Forum Members
Posts: 110
Joined: Wed Jul 15, 2009 12:35 am

Re: Adding different html text to banner image

Post by dmaireroa »

Holy Reeks!! It works, and not only that I have learnt how to add content block in different section of my template which I didn't know before. I was wondering all that time if this was possible  ::)

So all you have to do is add {content block="headertext" wysiwyg="false"} for html text {content block="headertext" wysiwyg="true"} for wysiwyg

Thank you very much Cherry, thank you. I am over the moon, and falling in love with cmsms..ahem! I mean learning so much about cmsms  :D.

Thanks heaps
CHEERS :)
Last edited by Anonymous on Fri Aug 14, 2009 7:56 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Adding different html text to banner image

Post by Dr.CSS »

You really need to read the default content that comes with every install...

http://multiintech.com/defaultcontent/i ... tent_types
dmaireroa
Forum Members
Forum Members
Posts: 110
Joined: Wed Jul 15, 2009 12:35 am

Re: Adding different html text to banner image

Post by dmaireroa »

I've been away for a week but now I'm ready to rock and roll.

Ah yes, great advice Dr, I read it in the beginning but never got to finish it. Too easy
CHEERS :)
Post Reply

Return to “Layout and Design (CSS & HTML)”