Grouping umbraco pages in folders without affecting URL -


one of our umbraco sites getting bit messy , wondering if there way of grouping pages in folders without affecting url. example if under homepage have top level sections, footer links , various other system pages. i'd group footer pages in footer folder, system pages in system folder don't want urls become /footer/page1, system/contact etc.

is there nice way of doing this, maybe umbracourlname?

there 2 answers, first turn on 'hide root folder' option in web.config - can have many folders in root - without them forming part of url.

umbracohidetoplevelnodefrompath causes top level content items excluded url paths. example, pre-set true, so:

[content]home = /home.aspx or /home/

[content]home\projects = /projects.aspx or /projects/

[content]footer\page1 = /page1.aspx or /page1/

[content]home\projects\about = /projects/about.aspx or /projects/about/

http://our.umbraco.org/wiki/reference/webconfig

secondly there 4 'hidden' redirect fields on every umbraco node (which can add document type) can change url routing:

  • umbracoredirect (content picker) - umbraco redirect picked page
  • umbracointernalredirectid (content picker) - umbraco load picked page without changing url
  • umbracourlname (textstring) - umbraco override page’s default url
  • umbracourlalias (textstring) - can have several urls same page (not sure when useful)

so guess in scenario umbracourlname pick out page in combined folder url choose.

so have

homepage  |- footer    |-page1 (umbracourl = "/footer-page1/") 

and /footer-page1/ render page stored in footer folder.

you hack things , make umbracoredirect & umbracointernalredirectid work i'm not sure help.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -