Search code examples
javahippocms

Pretty url with Hippo CMS


I created a sitemapItem as :

  1. jcr configuration: doto/_default_/default/_any_
  2. hst:relativecontentpath: doto/detail/${3}
  3. my url: todo/detail/todo-item4-from-cms-editor-user

How can I get my title "todo-item4-from-cms-editor-user" from query string?

Is ${3} placeholder my title "todo-item4-from-cms-editor-user" within query string?

Thanks


Solution

  • Please see: http://www.onehippo.org/library/concepts/request-handling/sitemapitem-matching.html

    I am going to assume that doto is meant to be todo and is a typo.

    todo/default/default/any

    will have 3 parameters, $1, $2, $3

    todo/detail/todo-item4-from-cms-editor-user

    This has only two unknowns. todo will be matched with todo (if doto was meant it won't match at all).

    so todo-item4-from-cms-editor-user is actually $2.