Gossamer Forum
Home : Products : Gossamer Links : Discussions :

problem with alternative templates

Quote Reply
problem with alternative templates
I am using several template sets with my GTLinks installation.

When I use http://www.mysite.com/....cgi?g=category1;d=1 to call the default 'luna' template set, all the graphics appear.

However, when I use http://www.mysite.com/...=category1;t=alt;d=1 to call the alternative template set, the paging arrows and rating stars don't appear on the category pages.

The image properties are http://www.mysite.com/...mages/stars-10-2.gif and they should be http://www.mysite.com/...mages/stars-10-2.gif

I realise this is something to do with the template inheritance- but I am running 4 installations, 1 with 11 template sets, and don't want to duplicate the graphic folder for each template set (15 folders).

On the detailed pages, the paging arrows appear but the stars do not.

Is there a way round this?

Thanks

Last edited by:

Alba: May 1, 2005, 1:56 AM
Quote Reply
Re: [Alba] problem with alternative templates In reply to
Image inheritance only works if your image url's are passed through Links::Utils::image_url() and your template sets are setup to use inheritance. Check that you've got both these things setup properly.

Adrian
Quote Reply
Re: [brewt] problem with alternative templates In reply to
OK, thanks. I've fixed the paging images by using
Quote:
style_next => "<img src=\"http://www.mysite.com/images/luna/paging-next.gif\"\/>",

etc.

Where do I fix the rating stars images to use the same path?

Thanks
Quote Reply
Re: [Alba] problem with alternative templates In reply to
I've now fixed the rating stars issue with:

Quote:

<%~set intRating = $Rating i/ 1%>
<img src="http://www.mysite.com/...;%intRating%>.gif" .../>

in both link.html and detailed.html

I'm still hopelessly stuck with a workaround for putting Multilang_alt_Name into the crumbs to replace the normal category titles. Anyone help with this?