[Solved] How to link from Guestbook entry-list to guestbook entry?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

[Solved] How to link from Guestbook entry-list to guestbook entry?

Post by RonnyK »

I would like to have the guestbook to show only links to the guestbook entries instead of the full entries. After clicking the entry, the entry should show.

I have the following code in my entry-list-template
{foreach from=$entries item=entry}
{if $entry.country==$myvar}




                                      {$entry.sender}
                                     
                                      {$entry.date} {$entry.time} {$titles.time_hour}



{/if}
{/foreach}
that shows the list, but how can I point to the correct entry to be shown in full when clicked upon.....

Ronny
Last edited by RonnyK on Sun Feb 24, 2008 7:44 pm, edited 1 time in total.
tobik
Translator
Translator
Posts: 149
Joined: Thu Aug 16, 2007 6:18 pm

Re: How to link from Guestbook entry-list to guestbook entry?

Post by tobik »

Hi Ronny,

the link to a specific guestbook entry is something like

Code: Select all

http://www.yoursite.org/index.php?page=guestbook&show_entry=1
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: How to link from Guestbook entry-list to guestbook entry?

Post by RonnyK »

Thanks for the reply, but I want to link from the list to the corresponding entry. I used the list to show all entry-headers, and I want to show the full entry after clicking on the link.....

Ronny
tobik
Translator
Translator
Posts: 149
Joined: Thu Aug 16, 2007 6:18 pm

Re: How to link from Guestbook entry-list to guestbook entry?

Post by tobik »

Yupp. Just place the link into your list.
{foreach from=$entries item=entry}
{if $entry.country==$myvar}

   
     
         
                                      {$entry.sender}
                                     
                                      {$entry.date} {$entry.time} {$titles.time_hour}
     
   

{/if}
{/foreach}
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: How to link from Guestbook entry-list to guestbook entry?

Post by RonnyK »

Tobik,

thanks very much, that was simpler than I thought. I thought I tried all with the direct link, without succes. I went to work with the use of the variables, but could get the list to throw the correct ID. This is even easier....

One Karma coming your way.

Ronny
tobik
Translator
Translator
Posts: 149
Joined: Thu Aug 16, 2007 6:18 pm

Re: [Solved] How to link from Guestbook entry-list to guestbook entry?

Post by tobik »

Thanks!  :)
I am happy that I was able to help someone who is dedicated to help anybody!
Post Reply

Return to “Layout and Design (CSS & HTML)”