Get parameters from URL using ftl.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2009 04:11 PM
Hello,
Someone knows if exists a function that retrieves just the parameter from URL?
I´ve found this one :
* url.context => /alfresco
* url.serviceContext => /alfresco/service
* url.service => /alfresco/service/user/fred
* url.full => /alfresco/service/user/fred?profile=full&format=html
* url.args => profile=full&format=html
* url.templateArgs['userid'] => fred
* url.match => /user/
* url.extension => fred
there is url.param ????
Thanks !
Someone knows if exists a function that retrieves just the parameter from URL?
I´ve found this one :
* url.context => /alfresco
* url.serviceContext => /alfresco/service
* url.service => /alfresco/service/user/fred
* url.full => /alfresco/service/user/fred?profile=full&format=html
* url.args => profile=full&format=html
* url.templateArgs['userid'] => fred
* url.match => /user/
* url.extension => fred
there is url.param ????
Thanks !
Labels:
- Labels:
-
Archive
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2009 04:26 PM
What are you expecting url.param to contain in your example?
Thanks,
Mike
Thanks,
Mike

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2009 02:32 AM
Within a webscript of share/surf args["parameter-name"] should work

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2009 06:28 AM
Hi Guys
I have the same problem
since the object args does not exist a priori in the template, i red somewhere that is mandatory to build a webscript for getting the url parameter.
But why not have an object args in bound by default?? Since URL parameters are always useful
Bye
I have the same problem

But why not have an object args in bound by default?? Since URL parameters are always useful
Bye


Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2009 09:29 AM
Within a webscript of share/surf args["parameter-name"] should work
Hi, it is true. but probably not help a lot. If you have a freemarker in the dashboard you are not able to get the parameters

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2009 07:43 AM
