Search the Community
Showing results for tags 'generate fields'.
-
Hi all! I've been searching/browsing a bit, but can't find what I'm looking for just yet... Perhaps I'm searching in the wrong places, but I thought posting it here might work better/more efficient. I need to do the following; 1. I have the TITLE field (the one set by ProcessWire as default). 2. There's already a whole lot of pages of the template 'project' set up. 3. Now I actually want to be able to add <i> and <br> tags to this title...which is possible if I turn off the specialchar encoder... ...but it also presents the opportunity for people to start typing, and generate the following kind of URLs: TITLE: This is a really long title <br> which <i>needs</i> to be split in two URL generated: this-is-a-really-long-title-br-which-i-needs-i-to-be-split-in-tow Don't want that happening. So, I thought it might be wiser to do the following. Next to the 'title' field, also set a 'display-title' field. But, preferably I'd want to generate this for all the projects already in existance...including copying their content to this new display-title field. Just adding the field means all the titles will need to be copied...not something I look forward to telling the editors of the site ? I saw the Hook for on-save, but that's only for the single page...and I'm not an experienced MySQL-coder/user, otherwise I guess that would've been the way to go. So I'm really curious to hear if you guys think there are other/better options (and what they are) Thanks!
- 8 replies
-
- generate fields
- copy
-
(and 2 more)
Tagged with: