Gossamer Forum
Home : Products : Gossamer Links : Discussions :

How to add a banner using LUNA templates???

Quote Reply
How to add a banner using LUNA templates???
Hi,

Just upgraded to links 3.1. How do I add a banner at the top of each page using the LUNA templates?

I am lostBlush
Quote Reply
Re: [john.b] How to add a banner using LUNA templates??? In reply to
It really depends on where exactly you want to put it. Take a look at the include_header.html and include_contentheader.html templates - they are included in every template around the top of the page.

Adrian
Quote Reply
Re: [brewt] How to add a banner using LUNA templates??? In reply to
Thanks for the late reply but I am lost. Where do I put the banner code. I would like the banner to (standard size banner 468*60) at the top left of the logo

include_header.html

<div id="header">
<div id="loginbar"><a href="<%config.db_cgi_url%>/user.cgi<%if user.Username%>?logout=1<%endif%>" class="<%if user.Username%>in<%else%>out<%endif%>"><%if user.Username%>Logout<%else%>Login/Register<%endif%></a></div>
<div id="logo"><h1><a href="<%config.build_root_url%>"><%site_title%></a></h1></div>
</div>
<div class="navbar clear">
<ul class="primarynav">
<li class="home"><a href="<%config.build_root_url%>">Home</a></li>
<li><a href="<%config.db_cgi_url%>/add.cgi<%if category_id%>?ID=<%category_id%><%endif%>">Add a Link</a></li>
<li><a href="<%config.db_cgi_url%>/modify.cgi<%if category_id%>?ID=<%category_id%><%endif%>">Modify a Link</a></li>
<li><a href="<%config.build_root_url%>/New/">New Links</a></li>
<li><a href="<%config.build_root_url%>/Cool/">Cool Links</a></li>
<li><a href="<%config.build_root_url%>/Ratings/">Top Rated</a></li>
<li><a href="<%config.db_cgi_url%>/jump.cgi?ID=random<%if config.build_detailed%>;Detailed=1<%endif%>">Random Link</a></li>
<%if config.newsletter_enabled%><li><a href="<%config.db_cgi_url%>/subscribe.cgi">Newsletter</a></li><%endif%>
<%if config.bookmark_enabled%><li><a href="<%config.db_cgi_url%>/bookmark.cgi">Bookmarks</a></li><%endif%>
<%if Links::Utils::is_editor%><li><a href="<%config.db_cgi_url%>/browser.cgi">Editors</a></li><%endif%>
</ul>
<%~if secondarynav%><%include $secondarynav%><%endif%>
</div>
<div class="searchbar">
<form action="<%config.db_cgi_url%>/search.cgi">
<label for="searchbox">Search</label>
<%if category_id%><input type="radio" id="searchentire" name="catid" value="" checked="checked" /><label for="searchentire">the entire directory</label> <input type="radio" id="searchcat" name="catid" value="<%escape_html category_id%>" /><label for="searchcat">only this category</label><%endif%>
<input type="text" id="searchbox" name="query" value="<%if query%><%escape_html query%><%endif%>" class="text" /><input type="submit" name="Go" value="Go" class="submit" /> <a href="<%config.db_cgi_url%>/search.cgi">Advanced Search</a>
</form>
</div>
<hr class="hide" />


include_contentheader.html
<%if error or message~%>
<div id="contentheader">
<%if error%><div class="error"><%error%></div><%endif%>
<%if message%><div class="message"><%message%></div><%endif%>
</div>
<%~endif%>
Quote Reply
Re: [john.b] How to add a banner using LUNA templates??? In reply to
Any news?