Page Title override to generate page name list

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
1/4/2011 11:50:54 AM
Gravatar
Total Posts 75

Page Title override to generate page name list

Joe

I have a feature suggestion after seeing what the default behavior is within the product which I thought that this may be useful and please feel free to highlight a different means of accomplishing this if it is already possible

I am using a parent page to create a list of content similar to how you create the documentation here at Mojoportal.com however when creating the page names we are prefixing with an internal document # eg - KBA1010 - This is how you use this product feature 

This Translates over to the parent page ok however the URL's are quite lengthy I would prefer for the URL to be ~/kba1010.aspx as we often reference our customers to these via links this would be a little more concise 

Would it be possible to generate the list on the parent page using the Page Override Title feature as opposed to the Page Name 

Again if you there is an alternate means of accomplishing this that I am missing such as defining the URL (in this case I would like this to be automatically the same as the page name) 

Thanks for your hard work on such a stellar product 

Al

1/4/2011 12:12:34 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Page Title override to generate page name list

Hi Al, as far as I know, in the "big picture" a page is a page, so there is really no distinction between parent and child pages, the hierarchy just comes from where they are located in the menu, combined with the menu structure and CSS, and they can be rearranged at any time (one of the most powerful features of using a CMS).

When you create a new page, the default contents of the "URL" field comes from what you put into the Page Name field, but you can override that. So if the new page you created is called "KBA1010 - My First Product", once you tab out of the Page Name field, the default URL will be set to "~/kba1010-my-first-product.aspx". Then you can just manually override that URL field to be "~/kba1010.aspx", as long as that's a unique URL in the system, and your page will be located at ~/kba1010.aspx. As long as you make this change during the initial page creation, you won't have to worry about updating any redirects through the 301 Redirect Manager.

Hopefully I understood what you are trying to do.

Jamie

1/4/2011 12:22:40 PM
Gravatar
Total Posts 75

Re: Page Title override to generate page name list

Jamie

I think you get what I am trying to achieve the only problem I have is that as soon as someone adjusts the page name with any editing the URL is regenerated, this can go unnoticed. Not a big deal though.

Thanks for your attention on the matter

Al 

1/4/2011 1:08:36 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Page Title override to generate page name list

Okay, now I see what you mean. I agree that it would be an improvement if Page Settings would distinguish between a brand new page and a page update, and not automatically change the URL if the page name is changed during settings update of an existing page. I think that would be a good enhancement, assuming Joe agrees.

I know what you mean about the collaborative editing issues. Soon we're also going to have to face all the training issues that will come with that, but overall I know the upsides will really make it all worthwhile!

Jamie

1/4/2011 1:16:18 PM
Gravatar
Total Posts 18439

Re: Page Title override to generate page name list

Hi Guys,

I see the point too but don't you think the more common thing if a page is renamed would be that you do want to change the url to reflect the new name? I could go along with this suggestion but my fear is that changing it might lead to more questions from those who expect the current behavior. Maybe to be safe I should add a config setting and leave the default behavior as is but allow you to override it so you can turn off url re-suggestion on page name changes.

Best,

Joe

1/4/2011 1:26:13 PM
Gravatar
Total Posts 75

Re: Page Title override to generate page name list

I like the idea of the config setting to flag which direction the Admin chooses on the URL suggestion - I agree you would not want to "break" the feature for existing users. 

I hope that there is some value to this for others as well...

Thanks Guys

Al

1/4/2011 1:36:59 PM
Gravatar
Total Posts 2239

Re: Page Title override to generate page name list

Hi all,

I agree with Joe. The current functionality is probably the most beneficial to the most people but having a config setting where you can turn this off would be nice for those that need it.

Maybe another solution could be alerting the person modifying the page that the URL is being changed and require them to approve the change. I know this would be more work to implement but it would allow for the use of the auto-renaming of the URL without doing it so quietly so that people know it is happening and can stop it if they don't want it.

-Joe D.

1/4/2011 3:24:34 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Page Title override to generate page name list

Hi guys, I think I agree with Joe D. that it should probably be a confirmation at save time rather than an invisible config setting (or a confirmation that's enabled via config setting). That way the user will be given a message and possibly an extended help button so they can understand the ramifications of changing the URL after it's been established. I'd think that pages are renamed infrequently enough that an extra confirmation wouldn't be a burden to users, and it seems like we've had a few messages on the forum lately dealing with folks not knowing about/understanding the 301 Redirect Manager.

Jamie

1/5/2011 9:43:57 AM
Gravatar
Total Posts 18439

Re: Page Title override to generate page name list

Hi Guys,

For now I'm going with the simple solution, in the next release it will be possible to add this to user.config:

<add key="AutoSuggestFriendlyUrlsOnPageNameChanges" value="false" />

and it will not auto suggest a new url on an existing page when the page is renamed.

For the future I've added a wish list item in our project tracker to enhance the javascript when this setting is false so that if the page name is changed a link/button will appear next to the url for "Suggest New Url" and clicking it would suggest a new url based on the new page name. 

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.