Closed agmckinney closed 1 year ago
The issue here is the same as in cuny-academic-commons/openlab-theme#264: navigation menus and front-end widgets are separately saved, and separately controllable by the administrator (see the Customize area).
Got it. Thanks, Boone!
Related question... Is there a way to update the URLs of the group pages. For example:
If I did all the work to change the group type Club to now be named Organization, can I change the url from openlab.url/groups/type/club to openlab.url/groups/type/organization
(if this is more of a "support forum" question, I'm happy to move it there, but I have been waiting for a couple weeks to be approved as a member of the official Commons in a Box forums. Are those abandoned? Are the regular admins furloughed because of the crisis?)
There's no place in the interface to change the 'slug' of a group type, because if you change it, it will break all existing permalinks - external links to the site, internal links that are stored in the database rather than generated dynamically, etc. If you want to make the change manually, find the items in your wp_posts
table with post_type = 'cboxol_group_type'
. You can change the post_name
value on those entries.
Keeping this open for the following possible feature request: When changing the name of a default group type, change the name of the corresponding nav menu item.
This is now implemented. Note that it only looks at the items in the 'Main Menu' that is automatically created by CBOX-OL at the time of installation. I'm not touching other nav menu items that users may have created manually.
Thanks Boone! The group type name change looks good, however when I made this change, the order of the menu was changed.
Original menu order:
Then, I changed Courses > Seminars, Clubs > Communities, Projects > Things.
After saving, the menu had changed to the following:
WP is extremely annoying here, in that you apparently have to pass every property of a nav item when updating that nav item, otherwise the unmentioned properties will be zeroed out. This includes 'position'. I've made the necessary change and it appears that the position overwriting is no longer happening.
Thanks Boone! This looks good.
When attempting to change a group type name, it takes on the back end (Portfolio to ePortfolio in this case:
But does not take on the front end in either the top level menu or in the front page directories