On Thu, Aug 11, 2011 at 10:13 AM, Rocco Scappatura
<[email protected]> wrote:
> I would like to further customize the template of my blog inserting a
> 'Related entries' to an entry just like the following:
>
> http://rollerweblogger.org/roller/entry/welcome_new_roller_committer_shelan
>
> and a few tags associated with an entry just as reported in the link above.
>
> Could I get the velocity code for this two features?
Here's the code that I use:
<h3>Related entries</h3>
<p class="details">Below are the most recent entries in the category
<b>$model.weblogEntry.category.name</b>, some may be related to
this entry.</p>
#set($recentInCat =
$model.weblog.getRecentWeblogEntries($model.weblogEntry.category.name,
20))
<ul>#foreach($recentEntry in $recentInCat)
<li class="entryLink"><a
href="$recentEntry.permalink">$recentEntry.title</a></li>
#end</ul>
Hope that helps.
- Dave