cancel
Showing results for 
Search instead for 
Did you mean: 

Get parameters from URL using ftl.

leonardo
Champ in-the-making
Champ in-the-making
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 !
5 REPLIES 5

mikeh
Star Contributor
Star Contributor
What are you expecting url.param to contain in your example?

Thanks,
Mike

cheffilet
Champ in-the-making
Champ in-the-making
Within a webscript of share/surf args["parameter-name"] should work

joksy
Champ in-the-making
Champ in-the-making
Hi Guys

I have the same problem Smiley Sad 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 Smiley Happy

joksy
Champ in-the-making
Champ in-the-making
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

joksy
Champ in-the-making
Champ in-the-making