Sipho Posted August 8, 2017 Posted August 8, 2017 I recently needed a module that automatically fills the title field of a page using fields on that page. I couldn't see one that already existed so I made my own. This is mostly based on ProcessSetupPageName by @kixe which I use along with this module. Keep in mind I am very new to ProcessWire so perhaps somebody else can contribute or make a better one Note: The title is automatically hidden when using this module You can enter any string. To add a fieldname, subfield or property, you surround the fieldname with {}. Dot syntax allowed. Example: Fish: {parent.title} {myfield} https://github.com/nextgensparx/AutoPageTitles 6
Sergio Posted August 8, 2017 Posted August 8, 2017 Thanks for the module, @Sipho! It also can be done using the approach described in this blog post: https://processwire.com/blog/posts/introducing-iftrunner-and-the-story-behind-it/#iftrunner-release This module has a broad, generic usage, so that's why you didn't find it when searched for you needs, I guess. 2
szabesz Posted August 8, 2017 Posted August 8, 2017 1 hour ago, Sérgio Jardim said: iftrunner-release Hi @Sérgio Jardim, Does it still work without issues on PW 3.x? I'm not a fan of modules not maintained anymore but this one sounds really interesting. I wish @ryan at least added namespace support and assured us that it will work with future ProcessWire versions as well. IftRunner is not even in the Module Directory. 2
Sergio Posted August 8, 2017 Posted August 8, 2017 Hi @szabesz! Yes, it works! I'm running it on PW 3.0.57 right now, in production. I have two actions: 1 - "Generate Short URL on adding a page" - On page save, it calls an API on another server (mine too) that runs an installation of https://yourls.org 2 - "Set end date on events, if empty" - the name is self explanatory. 5
szabesz Posted August 9, 2017 Posted August 9, 2017 @Sérgio Jardim Good to here that, thanks for the info. I read that blog post some time ago but forgotten about IftRunner.
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