Personal tools
You are here: Home Documentation How To's How to make the uwosh.themebase banner image clickable

How to make the uwosh.themebase banner image clickable

by T. Kim Nguyen last modified Oct 26, 2010 12:19 PM

in case you wanted to hide the default blue site title bar but wanted the site banner image to be clickable and take you to the top of the site

To hide the default blue site title bar, go to the site URL and append "/@@manage-viewlets", and hide the sitetitle viewlet.

Go to ZMI, portal_view_customizations, click on uwosh.themebase.mainimage, and set it to:

<a tal:attributes="href here/portal_url">
<div id="mainImage" tal:attributes="style view/style">
	<tal:comment tal:replace="nothing">
		So it will at least show an image even if the person does not have javascript enabled
	</tal:comment>

	<noscript>
		<img alt="Main Image" tal:attributes="src python: len(view.image_urls) > 0 and view.image_urls[0]" />
	</noscript>
	<tal:js tal:replace="structure view/javascript" tal:condition="view/hasImages" />
</div>
</a>

Basically you are just wrapping an <a> tag around the div.

Document Actions
  • Print this
  • Bookmarks