elfuchsjekyll / vosao

Automatically exported from code.google.com/p/vosao
0 stars 0 forks source link

Velocity Tools Usage #164

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I tried pasting in the standard DateTool examples from Velocity into a test
page, with Velocity processing set, but the tool didn't seem to render. I
also tried searching for the tools in SVN, but couldn't turn up any
references. 

*
http://velocity.apache.org/tools/devel/javadoc/org/apache/velocity/tools/generic
/DateTool.html

* http://staging.vosao.org/test/tools

Are the tools enabled? Are they exposed in the source code, or being pulled
in through a JAR?

Original issue reported on code.google.com by ted.husted on 20 Mar 2010 at 1:45

GoogleCodeExporter commented 9 years ago
In Vosao we can use Generic tools only. Unfortunately LinkTool is related to 
view tools 
available when using VelocityViewServlet. 

http://velocity.apache.org/tools/releases/1.4/

As I see LinkTool can't be supported in Vosao.

Original comment by kinyelo@gmail.com on 20 Mar 2010 at 7:27

GoogleCodeExporter commented 9 years ago
Regarding Velocity DateTool, it's working with my template on Vosao ver 0.3.1.
You may try just pasting the next VTL statement in either template or page 
content:
$date.get('default','short')
It shows the current date as expected.

Regarding Velocity LinkTool, thank you for the info, kinyelo.

Warm regards,
Art

Original comment by art...@gmail.com on 21 Mar 2010 at 9:56

GoogleCodeExporter commented 9 years ago
To close this issue let;s summarize:
1. LinkTool isn't officially supported in Vosao CMS
2. Add support for all generic tools in Vosao CMS 
http://velocity.apache.org/tools/releases/1.4/generic/

Original comment by kinyelo@gmail.com on 23 Mar 2010 at 8:45

GoogleCodeExporter commented 9 years ago
Fixed.

Original comment by kinyelo@gmail.com on 29 Mar 2010 at 10:53