Peter Knight Posted October 7, 2014 Share Posted October 7, 2014 It's incredibly useful to be able to rename the default and mandatory title field on a per template basis. Another CMS I use handles this and it's great for certain situations. Let's say I have a template called Staff Directory with the following fields - full name - department - location In this instance, I don't want an editor to see the page title field as it's not required. Making them duplicate the full name in the title field works but isn't ideal. Link to comment Share on other sites More sharing options...
netcarver Posted October 7, 2014 Share Posted October 7, 2014 @Peter This might not be exactly what you want but I think you can get a long way towards making things easy using PWs existing per-template label feature for fields. Just edit your Staff Directory template and locate the "title" field in the list of fields and click on the word "title" to bring up the per-template field config sttings editor. You can now change the label for the title field from "Title" to "Full Name" and save that and the template you should now be able to use the title field and it will be displayed as "Full Name" on every page you edit or add. In effect you can re-purpose the title field and remove the need for a separate full_name field. I know that might not be 100% of what you are after but it goes a long way toward it. 5 Link to comment Share on other sites More sharing options...
Peter Knight Posted October 8, 2014 Author Share Posted October 8, 2014 That sounds pretty close. Will try and many thanks. Link to comment Share on other sites More sharing options...
Joss Posted October 8, 2014 Share Posted October 8, 2014 There is a bit of SEO going on here too, or can be. So, for instance, the Full Name might be what you want to be displayed on the page, but its not what you want in the <title> tag or in the menu or in the URL. In that case, it actually may be beneficial to have separate fields. Of course, that might also send the client barmy and end up with them crying in the corner of the room in confusion, which might not be quite so desirable.... 1 Link to comment Share on other sites More sharing options...
Peter Knight Posted October 8, 2014 Author Share Posted October 8, 2014 Of course, that might also send the client barmy and end up with them crying in the corner of the room in confusion, which might not be quite so desirable.... Joss - My client currently updates their site via some kind of Microsoft Visual HTML Editor. They have (in their current site) pink and yellow text, blinking text and background music in their newsletters. One of us is going to end up crying in some corner of some room 4 Link to comment Share on other sites More sharing options...
Peter Knight Posted October 8, 2014 Author Share Posted October 8, 2014 @Peter Just edit your Staff Directory template and locate the "title" field in the list of fields and click on the word "title" to bring up the per-template field config sttings editor. You can now change the label for the title field from "Title" to "Full Name" and save that and the template you should now be able to use the title field and it will be displayed as "Full Name" on every page you edit or add. In effect you can re-purpose the title field and remove the need for a separate full_name field. I know that might not be 100% of what you are after but it goes a long way toward it. Wierd but it doesn't work for me. The template in question is called graduate_detail. You can see from the screengrab that I have renamed the label of the Title field to Full Name (ex Title). However, when I create a new page based on this template, the Title field still has the label of Title. Running 2.5.4 I'll test it on some other installs. Link to comment Share on other sites More sharing options...
netcarver Posted October 8, 2014 Share Posted October 8, 2014 Hmmm, no idea why that might be, it's working fine here on 2.5.4dev for both new... and existing pages... My "Full Name" field is the re-titled "Title" field in the above shots. I also tried renaming it to "Full Name (ex Title)" - just in case the brackets were messing with things - but that works fine as well. Link to comment Share on other sites More sharing options...
Peter Knight Posted October 8, 2014 Author Share Posted October 8, 2014 I've done some experimenting and made some progress. Editing an existing page displays the new updated field label Creating a new page displays the default field label I don't know if it's related but I then enabled Family > Show in the add-page shortcut menu and this seems to have worked. But back to my original point and request for the wish list. This really is a cool feature and exactly solves my "issue". It's another example of a cool thing which PW can do which is hidden away and not really documented. Most of the really great features I discover are via the forums and "digging around". Link to comment Share on other sites More sharing options...
Joss Posted October 8, 2014 Share Posted October 8, 2014 Yes, when you first create a page, it does not know what template you are using, unless you are only allowing it to use one template. So, any things you set on the template like the label of the title field will not show until you save the page.... er, obviously. 5 Link to comment Share on other sites More sharing options...
netcarver Posted October 8, 2014 Share Posted October 8, 2014 Ah, yeah, that would do it, thanks Joss. I had a single template selected for children of the parent node so that'd be why I was seeing the re-labelled title straight away. 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