Page 1 of 1

[SOLVED] Get page url field value?

Posted: Fri Nov 16, 2012 11:11 am
by nervino
Hi,
I need to get the custom page URL that users can set in page's option tab, in order to use it to generate pretty urls in my module.
How can I do?

(I'm sorry, I guess it's a quite easy problem to solve, but I didn't find any answer searching the forum)

Thank you

Re: Get page url field value?

Posted: Fri Nov 16, 2012 11:03 pm
by Jos
though I don't understand how you want to use it, this topic might help:
http://forum.cmsmadesimple.org/viewtopi ... ontentbase

Re: Get page url field value?

Posted: Sat Nov 17, 2012 2:10 pm
by nervino
Thank you, Jos.
I've coded pretty urls for my application, registering them in MyModule.module.php file, but of course if I fill the "Page URL" field, the pretty urls do not work because the string is not registered with RegisterRoute().
So I wanna try to see if it is possible to register the Page URL string dinamically. Well, while I'm writing I'm thinking that maybe this is not possible because I can't register the string variable in the main module file...