Can I just say ... hammer on head <bang>!
This is something that I have echoed a few times on the list and I am
going to take this opportunity to say it again. I think that in many
places we have overused the velocity macros and by doing so have
discouraged bloggers from accessing the important and useful information
directly via objects in the Velocity context.
I don't mind having macros for convenience, but I believe they should be
used sparingly in order to supplement the functionality already
available in accessing objects directly.
This has always seemed ridiculous to me ...
#showEntryPermalink($entry)
instead of ...
<a href="$entry.permalink">whatever they want</a>
Matt (one of our own engineers) is experiencing this problem right now.
Matt, to answer your question, you will probably need to look at the
code inside that macro and figure out what function is being called to
get that list of entries directly, then you can iterate over the list
and print it out however you like.
-- Allen
Matt Raible wrote:
I'm looking to get the most recent title from the displayed entries
and display that in my <title> tag. Is that possible?
#showRecentEntries works, but it displays a full <a href> link. Is it
possible to get this w/o any HTML?
Thanks,
Matt
On 5/3/06, David M Johnson <[EMAIL PROTECTED]> wrote:
On May 3, 2006, at 8:49 AM, Matt Raible wrote:
> Is this still accurate?
>
> http://rollerweblogger.org/wiki/Wiki.jsp?page=ShowRecentEntries
That no longer appears to be valid Roller template code.
> There doesn't seem to be a definitive guide for Roller Macros anymore.
> Using Google gives a bunch of links, but many are 404s or incomplete
> references.
The most definitive guide is here:
http://rollerweblogger.org/velocidoc/
- Dave