Go Back   Pligg CMS Forum > Pligg Development > Pligg Templates > Template Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-01-2008, 08:05 AM
New Pligger
Pligg Version: 9.8.2.
Pligg Template: none
 
Join Date: Nov 2007
Posts: 21
Thanks: 2
Thanked 0 Times in 0 Posts
Question secound Link to source under full description

Hi,

first of all I'm using the template "Blossoms" but I thinks my question is a "overall template question".

How do put a "to original article" Link under the full description of a story?

i want that the user read the full description before they click to the original article, so i think it would be good if there is a extra link to original article under the full description.

it woud be great if someone could help me.

Thanks and Greets!

Olli
Reply With Quote
  #2 (permalink)  
Old 02-01-2008, 08:40 AM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 849
Thanks: 74
Thanked 49 Times in 45 Posts
In your link_summary.tpl place this anywhere you want the link to appear:

Quote:
<a href="{$url}">{$title_short}</a>
That should provide a link to the original source.

Geoserv.
Reply With Quote
  #3 (permalink)  
Old 02-02-2008, 01:39 PM
New Pligger
Pligg Version: 9.8.2.
Pligg Template: none
 
Join Date: Nov 2007
Posts: 21
Thanks: 2
Thanked 0 Times in 0 Posts
Thanks,

but when I put the code in the Link_Summery.tpl the Link shows also up in the Summery view.

It should only show up in the full description instead of the "read more" link.

I guess I must put in something like:

{if $pagename neq ".........."} <a href="{$url}">{$title_short}</a>{/if}

any idea?

Thanks

Olli
Reply With Quote
  #4 (permalink)  
Old 02-02-2008, 06:16 PM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 849
Thanks: 74
Thanked 49 Times in 45 Posts
Yeah you will need an if statement.

Code:
{if $pagename eq "story"} <a href="{$url}">{$title_short}</a>{/if}
Geoserv.
Reply With Quote
The Following User Says Thank You to Geoserv For This Useful Post:
  #5 (permalink)  
Old 02-14-2008, 03:24 AM
New Pligger
Pligg Version: 9.8.2.
Pligg Template: none
 
Join Date: Nov 2007
Posts: 21
Thanks: 2
Thanked 0 Times in 0 Posts
It works! Thanks!
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
When you edit a link, whatever the summary is, it's replaced by the full text VictorML Bug Report 0 07-27-2008 10:57 AM
[SOLVED] &quot;Read More&quot; Link to read full article does not work sipoyraj Bug Report 2 01-14-2008 12:29 AM
adding a link to story description codefreaq General Help 1 10-31-2007 11:52 AM


Search Engine Friendly URLs by vBSEO 3.2.0