Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Image in Detail Page

Quote Reply
Image in Detail Page
Hi, I want to include a thumbnail image of the link's web site in the detailed page. I have tried editing the detailed page manually to include the image but it gets overwritten during "build all"

Is there a way to prevent "build all" from overwriting existing detail pages? Or perhaps there is a better way to do this please let me know in newbie terms/instructions.

Thanks a lot!
Quote Reply
Re: [Bruha] Image in Detail Page In reply to
Hi Bruha,

It seems that you have changed in the static page. That is overriden by the 'build all'
You should change that in the detailed.html template. The file is in admin/templates/luna[/local] folders.

Cheers,

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [Bruha] Image in Detail Page In reply to
I think you're going about this the wrong way.

--add a FILE column to your Links table from the 'database' section in the admin panel. This lets you manage an ATTACHED file for the link. Name the column something like 'image'. (you'll need to create a new directory to hold the files, and fill in the path/url fields appropriately when setting up the new column)

--edit detail.html so it accesses the image like:
Code:
<img src="<%config.db_cgi_url%>/jump.cgi?ID=<%ID%>;v=image">

the 'v' parameter tells jump.cgi that you're linking to a file instead of going to the website; the value, 'image', is the name of the associated column.

I'm not sure if it's really even documented anywhere... have a look at Links/User/Jump.pm for the gory details Wink

Philip
------------------
Limecat is not pleased.
Quote Reply
Re: [fuzzy logic] Image in Detail Page In reply to
Thanks a million Philip, it worked!!! Smile