Page 1 of 1

Source link?

Posted: Tue Mar 28, 2006 7:50 pm
by Nintendo Gal
Hey again!

I think this is a newbie question, but a search for it returned nothing that I was looking for.

Basically what I'm looking to do is have a "Source" link on the bottom of my posts, without having to manually type in "Source - " as I always do. Something like an event plugin is what I think it'd be where you type in the URL before making a post and it shows up as "Source" or "Link" or something to that reguard.

I wondered if there was any plugin that did that as I searched through but didn't find anything. (maybe I'm using the wrong search terms).

Sorry if this is really easy to answer and I'm just being a dope!

Posted: Tue Mar 28, 2006 7:57 pm
by carl_galloway
It can be done using plugins, and I haven't done it so I'm not sure how well it would work. Install the extended properties plugin and then change one of the customfields to say 'source'. Then every entry that needs a source could have the url placed in that textbox just before you save your entry. Hope that gets you started.

Carl

Posted: Tue Mar 28, 2006 8:34 pm
by Nintendo Gal
Thanks! I'll try that out! :)

EDIT -

How would I go about editing entries so it shows up before the "Post by" ?

I tried
{if $is_single_entry}
<a href="{$entry.properties.ep_source}">{$entry.properties.ep_source}</a>
{$CONST.ENTRY_POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a> {$CONST.ON} {$entry.timestamp|@formatTime:DATE_FORMAT_ENTRY} {$CONST.AT} {$entry.timestamp|@formatTime:"%H:%M"}.
{if $entry.categories}
I have a feeling though that that's way off.

Posted: Tue Mar 28, 2006 9:27 pm
by judebert
No, that's spot on. You'll probably want a <br> after the link, though.

Posted: Tue Mar 28, 2006 11:44 pm
by Nintendo Gal
Hmm.. I put that in and nothing happened.

At least nothing visable that I can detect.

Posted: Tue Mar 28, 2006 11:50 pm
by judebert
Are you looking at a single entry? If not, that'll never get called (because of the {if} statement above it). Sorry I didn't mention that earlier. Look in entries.tpl for the other entry.author line and add it there, too.

Posted: Wed Mar 29, 2006 12:53 am
by Nintendo Gal
Ahh! Found it, it works like a charm! Thank you very much for the help! :)