Page 1 of 1

Adding different html text to banner image

Posted: Fri Aug 14, 2009 5:12 am
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 :)

Re: Adding different html text to banner image

Posted: Fri Aug 14, 2009 5:49 am
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

Re: Adding different html text to banner image

Posted: Fri Aug 14, 2009 6:07 am
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 :)

Re: Adding different html text to banner image

Posted: Fri Aug 14, 2009 7:11 pm
by Dr.CSS
You really need to read the default content that comes with every install...

http://multiintech.com/defaultcontent/i ... tent_types

Re: Adding different html text to banner image

Posted: Mon Aug 24, 2009 3:10 pm
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 :)