alexm Posted February 19, 2015 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.
LostKobrakai Posted February 19, 2015 Posted February 19, 2015 This should get you started: https://processwire-recipes.com/recipes/extending-page-save-process/
alexm Posted February 19, 2015 Author 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.
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