SiNNuT Posted May 17, 2015 Share Posted May 17, 2015 Currently the 'Name format for children' setting is limited to: alphanumeric: 'test', will turn into 'test', 'test-2', 'test-3' etc. title: name will be based on the title once filled in (at first it will make the name 'unpublished', 'unpublished-2' etc.) date: the addition of any non alphanumeric character (including space) will cause it to be interpreted as date. So entering 'test more' will lead to some date string that doesn't make sense If possible i would like this to be made more fool-proof. But ideally i would like the 'Name format for children' to have more options. Like combining the different options and maybe be able to choose from more fields, apart from title. I also think that in cases where you want to auto-populate the name you often don't really care about the page title as well. So it would be cool if one could auto-populate a page title (and maybe other possible global required fields) as well. If the format would allow for date/timestamp, fieldvalues, text and combinations of those it would be really powerful. Also probably a lot of work but it's a wish-list after all 5 Link to comment Share on other sites More sharing options...
Ivan Gretsky Posted May 17, 2015 Share Posted May 17, 2015 I do not think it is possible to generate name based on any other custom field but the title as no field is populated or even connected to the page at that moment. But the id, created by, created should be availiable. And being able to define some kind of pattern using those will be great. So we can get something like: item-123 (where 123 is id) post-2015-05-17 (where 2015-05-17 is date) and post-2015-05-17-2 for sequential ones. Link to comment Share on other sites More sharing options...
LostKobrakai Posted May 17, 2015 Share Posted May 17, 2015 Even the id won't be necessarily available. If not explicitly set it's not retrieved until the page is added to the database. Link to comment Share on other sites More sharing options...
SiNNuT Posted May 17, 2015 Author Share Posted May 17, 2015 If you have pages setup for the 1 step page creation and you have title set as format, at first it will make the name 'unpublished', 'unpublished-2' etc. It updates when you fill the title and save the page. The same route could be taken for other fields than title. I must admit that i don't use the format option a lot, i don't know about the general PW public. 1 Link to comment Share on other sites More sharing options...
thetuningspoon Posted May 18, 2015 Share Posted May 18, 2015 If you look at the code for the name format for children feature, Ryan has a comment in there about adding the ability to base this off of any field. So I think it's on the to-do list Link to comment Share on other sites More sharing options...
kixe Posted April 27, 2016 Share Posted April 27, 2016 Try thishttp://modules.processwire.com/modules/process-setup-page-name/https://processwire.com/talk/topic/8576-name-format-children/?p=117333 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