[SOLVED] Get page url field value?

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
nervino
Power Poster
Power Poster
Posts: 448
Joined: Sun Dec 28, 2008 12:15 pm
Location: Roma, Italy

[SOLVED] Get page url field value?

Post 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
Last edited by nervino on Sat Nov 17, 2012 2:11 pm, edited 1 time in total.
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Get page url field value?

Post by Jos »

though I don't understand how you want to use it, this topic might help:
http://forum.cmsmadesimple.org/viewtopi ... ontentbase
nervino
Power Poster
Power Poster
Posts: 448
Joined: Sun Dec 28, 2008 12:15 pm
Location: Roma, Italy

Re: Get page url field value?

Post 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...
Post Reply

Return to “Developers Discussion”