You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Toby Hobson <to...@btinternet.com> on 2007/09/09 16:41:54 UTC
Relationshipe between _weblog and _day templates
Hi could someone explain the relationship between these two templates?
I'm trying to display a list of all blog entries on the homepage (title, summary, link to entry) when the user clicks on the entry link they will be able to see the full blog entry.
Aso when the user clicks on a day in the calendar I would like to display the full blog entries for that day (title, summary and content)
I'm a little confused because it seems the two templates are linked such that clicking on a day renders both the _day and _weblog templates so I can't use different code for the main and day pages.
Cheers
Toby
Re: Relationshipe between _weblog and _day templates
Posted by Leon Messerschmidt <le...@lonelyplanet.com.au>.
Hi Toby,
The _weblog template is always executed. The _day template is included
with a velocity #parse Look at the #showWeblogEntriesPager as an
example.
~ Leon
On Sun, 2007-09-09 at 14:41 +0000, Toby Hobson wrote:
> Hi could someone explain the relationship between these two templates?
>
> I'm trying to display a list of all blog entries on the homepage (title, summary, link to entry) when the user clicks on the entry link they will be able to see the full blog entry.
>
> Aso when the user clicks on a day in the calendar I would like to display the full blog entries for that day (title, summary and content)
>
> I'm a little confused because it seems the two templates are linked such that clicking on a day renders both the _day and _weblog templates so I can't use different code for the main and day pages.
>
> Cheers
>
> Toby
______________________________________________________________________
This email, including attachments, is intended only for the addressee
and may be confidential, privileged and subject to copyright. If you
have received this email in error, please advise the sender and delete
it. If you are not the intended recipient of this email, you must not
use, copy or disclose its content to anyone. You must not copy or
communicate to others content that is confidential or subject to
copyright, unless you have the consent of the content owner.