alexm Posted February 19, 2015 Share Posted February 19, 2015 Hi guys, How would I go about creating a module to change the page urls when a page is save. I would just like to change the page urls to "property$page->id" e.g. "property1068" I can add a hook before inputfield::render which changes the field value to property but I don't know how to get the page's ID. Any help greatly appreciated. Link to comment Share on other sites More sharing options...
LostKobrakai Posted February 19, 2015 Share Posted February 19, 2015 This should get you started: https://processwire-recipes.com/recipes/extending-page-save-process/ Link to comment Share on other sites More sharing options...
alexm Posted February 19, 2015 Author Share Posted February 19, 2015 This should get you started: https://processwire-recipes.com/recipes/extending-page-save-process/ Thank you very much for that! I'll take a look. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now