Re: Simple list of all methods, properties, variables available to templates?
ANS Developer Team <[email protected]>
| Newsgroups | gmane.comp.jakarta.velocity.user |
|---|---|
| Message-ID | <CABXqMd3GCvUa2rfkGCBSpkPsQoOYhuCngMSqpaXDNC0JFTzx0Q@mail.gmail.com> |
Thanks, is it possible to do that from within a Velocity template? On Tue, Feb 12, 2013 at 2:09 PM, Sergiu Dumitriu <[email protected]>wrote: > On 02/12/2013 12:17 PM, ANS Developer Team wrote: > > Ah thanks, it's pretty sparse, hence why I'm asking here. Much > > appreciated, will figure it out from source. > > If you can get your hands on the current VelocityContext, then you could > list all the properties it contains (it extends Map). > > > > > On Tue, Feb 12, 2013 at 12:42 AM, Nathan Bubna <[email protected]> wrote: > > > >> Velocity doesn't provide anything but the syntax. You will have to > >> seek documentation from Vosao CMS. > >> > >> On Mon, Feb 11, 2013 at 6:57 PM, ANS Developer Team <[email protected]> > >> wrote: > >>> Hi all, I'm trying to find a list all of the above that can be used in > a > >>> template, preferably with a brief description of what it does (but > that's > >>> not entirely necessary). > >>> > >>> I'm building site using the Velocity-based Vosao CMS, and have no idea > >> what > >>> what methods, properties, and variables are available to me except the > >>> sparse few used in the example Blog app. > >>> > >>> For example there's a $page.friendlyURL property, but what other > >> properties > >>> does $page have? Having trouble finding this information. > >>> > >>> I've found the Velocity VTL Reference Guide, but that's more of a > syntax > >>> uide without a comprehensive list, and I've found the online Velocity > API > >>> docs, but that's overkill and I still can't find the $page object in it > >>> (not sure what class it's in). > >>> > >>> Any help on this much appreciated! > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >