Since it's <addkey="umbracoHideTopLevelNodeFromPath"value="true"/>, my links will look like http://host/folder1/page1/
What if I want to use folders to organize content at the backend, but I don't want them to appear in URL? How do I hide Folder1 (and any other folder I wish to hide) from being added to url?
Advices there are to utilize umbracoUrlAlias, and it somehow works. But first of all, default link is still old one with folder in it. Have to craft some arcane macros to render links from alias I have no idea. Other issue is content duplication for search engines. In short words, it's just too much work to be useful. Stuff should be easy.
I'm hoping for a solution like a checkbox "Don't show this folder in URL".
Organizing content while maintaining beautiful and simple SEO urls is something a lot of people would want to do, I think. I must be missing something, it should be already possible and easy, please help me :)
Umbraco just doesn't work that way out of the box...
But as always it's really extensible to do whatever you want.
You could create another top level node in the content tree with your organisational structure and then have the root tree just mirror you site structure and then your http://host//page1/ contains a macro to fetch all the nodes from your organisational structure /folder1/XXX.
But this still ends up with urls that could get to your content (but if no links are present in your site to them then they shouldn't get spidered)
Also another option is to set the template for the page to set to nothing in this organisational strucure then you won't end up with a page being rendered, but you shouldstill be able to fetch the contents of parameters from your macros.
Taking this further you could create a custom section in umbraco to store your data structure that is completely out of the contents tree and again use macors to pull content in from it.
Finally, devils advocate here... but if it's necessary and practical to categorise into folders for administrators, wouldn't your front end users also benefit from the categorisation???
But a little work for you to do to add your wordpress functionality of an additiona parameter on the mastdoctype and update nav macros.
Finally you can write you own niceUrl functionlity in an asp.net class library to overridre and replace the inbuilt umbraco one. again a little work then updating macros to use that to render you niceurl links ;-)
Hide folder from url
Let's say I have following site structure:
Content -> MySite -> Folder1 -> Page1
Since it's <add key="umbracoHideTopLevelNodeFromPath" value="true" />, my links will look like http://host/folder1/page1/
What if I want to use folders to organize content at the backend, but I don't want them to appear in URL? How do I hide Folder1 (and any other folder I wish to hide) from being added to url?
I have found some info:
http://lifeisimple.wordpress.com/2010/04/12/umbraco-quick-tip-1-umbracourlalias-and-specifying-complete-new-path/
http://our.umbraco.org/forum/using/ui-questions/1987-Better-URL-(hide-folder-name)
Advices there are to utilize umbracoUrlAlias, and it somehow works. But first of all, default link is still old one with folder in it. Have to craft some arcane macros to render links from alias I have no idea. Other issue is content duplication for search engines. In short words, it's just too much work to be useful. Stuff should be easy.
I'm hoping for a solution like a checkbox "Don't show this folder in URL".
Organizing content while maintaining beautiful and simple SEO urls is something a lot of people would want to do, I think. I must be missing something, it should be already possible and easy, please help me :)
Umbraco just doesn't work that way out of the box...
But as always it's really extensible to do whatever you want.
You could create another top level node in the content tree with your organisational structure and then have the root tree just mirror you site structure and then your http://host//page1/ contains a macro to fetch all the nodes from your organisational structure /folder1/XXX.
But this still ends up with urls that could get to your content (but if no links are present in your site to them then they shouldn't get spidered)
Also another option is to set the template for the page to set to nothing in this organisational strucure then you won't end up with a page being rendered, but you shouldstill be able to fetch the contents of parameters from your macros.
Taking this further you could create a custom section in umbraco to store your data structure that is completely out of the contents tree and again use macors to pull content in from it.
Finally, devils advocate here... but if it's necessary and practical to categorise into folders for administrators, wouldn't your front end users also benefit from the categorisation???
Thought of another couple of option...
there's the urlrewriting extension to umbraco... you could rewrite requests to http://host/page1/ to render http://host/folder1/page1/ without the front end client seeing the url, and also render http://host/folder1/page1/ to redirect to http://host/page1/ to stop duplication for SEO.
But a little work for you to do to add your wordpress functionality of an additiona parameter on the mastdoctype and update nav macros.
Finally you can write you own niceUrl functionlity in an asp.net class library to overridre and replace the inbuilt umbraco one. again a little work then updating macros to use that to render you niceurl links ;-)
is working on a reply...