4 Jul
2014
4 Jul
'14
12:09 a.m.
Can anyone tell me how to get the current page name from Velocity code?
On Jul 2, 2014, at 11:51 PM, "Jason Clemons" <[email protected]> wrote:
Hello,
I'm new new new to xwiki, but I think it's pretty cool so far. I've been killing myself trying to work out where to add javascriptextension on an "app within minute" page. I want the javascript to create some handlers on page load, hide some buttons, form validation etc.. for the life of me I can't really figure out the best place to put my code. Right now I've got some javascript working by putting an {{html}} tag with a <script> tag on the class sheet, but somehow it doesn't feel like the right way to do it.
Any help is greatly appreciated.