In Warren B's creative package there is a link at the top left of every page. Its a text based link, and in my case its the name of my site. I would like to replace the text with an image but still have the link active. I'm having trouble findiing where in the code to do so. Any help much appreciated!
<h1 class="flashHeader left"> <a href="/" title="« Back to home"> <img <umbraco:Item field="yourImage"
insertTextBefore="src="" insertTextAfter="""
runat="server"></umbraco:Item> /> </a> </h1>
This requires that you have added an image property to your document type so you can get hold of it. Please note that the src="" attribute has been made a part of the umbraco:item insertion because it is not allowed to write src="<umbraco:item></umbraco:item>". It looks a bit ugly but it works.
I would probably prefer to get the the image using a XSLT macro and then place the maco inside the <a> element.
Help with Creative Package for umbraco 4
In Warren B's creative package there is a link at the top left of every page. Its a text based link, and in my case its the name of my site. I would like to replace the text with an image but still have the link active. I'm having trouble findiing where in the code to do so. Any help much appreciated!
Do you mean the "Your logo/name" part?
It in the master template:
Yes...thats it!. How would i change it to an image??
You could probably do something like this:
This requires that you have added an image property to your document type so you can get hold of it. Please note that the src="" attribute has been made a part of the umbraco:item insertion because it is not allowed to write src="<umbraco:item></umbraco:item>". It looks a bit ugly but it works.
I would probably prefer to get the the image using a XSLT macro and then place the maco inside the <a> element.
hth
/Jan
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.