On Dec 6, 2007 5:09 AM, Odelya Glick <[EMAIL PROTECTED]> wrote:
> I would like my entries to display in a special template.
> That's why I have created a template named "entry"
> And from front page I wrote the code:
>
> #set($entryPageTemplate = $model.weblog.getPageByName("Entry")).
>
> //defining an entry
> #foreach($entry in $recentEntries)
> <a href="$url.page($entryPageTemplate.link)">$entry.title</a>
> </li>
> </ul>
> </div>
> </div>
> #end
>
> And in "entry" template I wrote:
>
> $entry.title
>
>
> But it displays "$entry.title".
> How can I pass the page the entry object?
Roller is designed so that every entry has one and only one unique
URL, called the entry permalink.
Sounds like you are trying to re-invent this.
Roller also provides pagers to make it easy to display pageable
displays of entries.
Sounds like you are trying to re-invent this too.
Is there some reason you cannot use the existing entry permalinks and
pagers here?
Any chance you can upgrade to 4.0 and use the "permalink" page template feature?
- Dave