Page 1 of 1
[Solved] How to link from Guestbook entry-list to guestbook entry?
Posted: Sun Feb 24, 2008 10:13 am
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
Re: How to link from Guestbook entry-list to guestbook entry?
Posted: Sun Feb 24, 2008 7:13 pm
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
Re: How to link from Guestbook entry-list to guestbook entry?
Posted: Sun Feb 24, 2008 7:17 pm
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
Re: How to link from Guestbook entry-list to guestbook entry?
Posted: Sun Feb 24, 2008 7:37 pm
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}
Re: How to link from Guestbook entry-list to guestbook entry?
Posted: Sun Feb 24, 2008 7:43 pm
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
Re: [Solved] How to link from Guestbook entry-list to guestbook entry?
Posted: Sun Feb 24, 2008 8:24 pm
by tobik
Thanks!
I am happy that I was able to help someone who is dedicated to help anybody!