Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

GLinks3 - include_contentheader template

Quote Reply
GLinks3 - include_contentheader template
I'm using the include_contentheader template to add affiliate banners at the top of the content wrapper as suggested in Adrian's luna template layout guide.

To get this to work, I had to modify the template so that the if-endif block is inside the div component. This will now support both error/info messages and other content. Perhaps GT will update the default template accordingly.

Code:

<div id="contentheader">
<%if error or message~%>
<%if error%><div class="error"><%error%></div><%endif%>
<%if message%><div class="message"><%message%></div><%endif%>
<%~endif%>
<!-- banner links -->
</div>

Regards,
Peter Puglisi
www.ausfreedom.com
Ultimate Freedom is our game.

Last edited by:

rocco: Apr 4, 2005, 7:54 AM
Quote Reply
Re: [rocco] GLinks3 - include_contentheader template In reply to
To get the banner content centered properly, I added this override to luna.css. All works great. Starting to really like this CSS stuff.

Code:

#contentheader {
text-align: center;
}

Regards,
Peter Puglisi
www.ausfreedom.com
Ultimate Freedom is our game.
Quote Reply
Re: [rocco] GLinks3 - include_contentheader template In reply to
We can't move the <%if ...%> inside by default because #contentheader has a padding on it and doing so would create an extra space at the top when there are no errors or messages. However, I'll be sure to make note of this when writing documentation about adding content to #contentheader.

Adrian
Quote Reply
Re: [brewt] GLinks3 - include_contentheader template In reply to
Ah yes. Good to know the reason behind it. All good, thanks.

Regards,
Peter Puglisi
www.ausfreedom.com
Ultimate Freedom is our game.