customizing the "click here to see full entry" lin

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Col. Kurtz
Regular
Posts: 450
Joined: Thu May 26, 2005 10:43 am
Location: Bonn, Germany
Contact:

customizing the "click here to see full entry" lin

Post by Col. Kurtz »

Is it possible to customize the link to show the full entry, for each entry? Like one time Ill put some pix in the full entry and wanna have it say "click here to see the pictures" and another time I have a bunch of links and want to display "click here to see the linklist" et...?
Marc
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: customizing the "click here to see full entry"

Post by garvinhicking »

You could do that by creating a Custom Field "readlink" for that; and instead of printing the Constant with

Code: Select all

            <br /><a href="{$entry.link}#extended">{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$entry.title}</a><br /><br />
you can change it to

Code: Select all

{if $entry.properties.ep_readlink}
            <br /><a href="{$entry.link}#extended">{$entry.properties.ep_readlink}</a><br /><br />
{else}
            <br /><a href="{$entry.link}#extended">{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$entry.title}</a><br /><br />
{/if}
Inside the custom field for "readlink" you then enter something like "Click here to see the linklist". If you leave it empty, it'll show the default link.

Custom Fields is part of the Extended Properties plugin, if you don't know that already ;)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Col. Kurtz
Regular
Posts: 450
Joined: Thu May 26, 2005 10:43 am
Location: Bonn, Germany
Contact:

Post by Col. Kurtz »

ok Ill try that
Marc
Post Reply