e enjte qershor 17, 2004
Roller bug: bookmark images need to be included directly when the image name begins with http:// Nice catch by
Torrey McMahon in the Sun bloggers mailing list today.
We need to fix that in Roller.
Torrey McMahon wrote:
I noticed that the bookmarks allow you to set images. I went through and
added a few but the links get set related to the blog page. For example:
If I configd the icon to be
http://i.cnn.net/cnn/.element/img/1.1/logo/logo.gif
it gets turned into
/roller/resources/torrey/http://i.cnn.net/cnn/.element/img/1.1/logo/logo.gif
Is there a way to fix that?
This is a Roller bug.
If you look at your template:
Website/Pages/Template/Weblog template
There's something like this
<div class="sidebarBox">
<div class="links">
#showBookmarks("Blogroll" true false)
</div>
</div>
<div class="sidebarBox">
<div class="links">
#showBookmarks("News" true false)
</div>
</div>
Then in Roller code
web/WEB-INF/classes/bookmark.vm
#macro( showOneBookmark $bookmark )
#if( $utilities.isNotEmpty( $bookmark.Image ) )
<a href="$bookmark.Url"><img alt="$bookmark.Name"
src="$baseURL#showResourcePath()/$bookmark.Image" /></a><br />
$bookmark.Image should be checked for the uri scheme first: if there is
one and it is http, then $bookmark.Image should be used and not
prefixed with $baseURL#showResourcePath()/
I've added that to my weblog in the blogs.sun.com category, that I use to track the requirements for Sun Roller.
Later on we'll create an aggregated site with this category to get all the requirements.
( Qer 17 2004, 04:20:29 PD PDT )
Permalink
Chat about it
Tagsurf It
This is a personal weblog, I do not speak for my employer.
Posted by Lance on qershor 17, 2004 at 10:08 PD PDT #
Posted by Patrick Chanezon on qershor 17, 2004 at 03:56 MD PDT #