Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-10826

url / name pattern field in classes

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • 3.9.2
    • Misc
    • None

    Description

      Hi,

      By default you have a "name" and "short_name" field in many classes. I would need a "url_name" field as well.

      Example:
      Title of an article: "Welcome to our nice restaurant"
      Short name for menu: "Restaurant"
      Url name: "restaurant graz"

      So the article should be accessed by /restaurant_graz

      It's already possible to add the field "url" and add this in a class at the name pattern:

      <url|short_name|name>

      But unfortunatly if you use that for optimising your site for search engines, lots of templates of the admin interface needs to be rewritten because the "$node.name" always returns the keywords for the url.

      The simplest way to solve this problem would be to add a "url pattern field" to the class.

      So you have two pattern fields, one for the name, one for the url.

      name:
      <short_name|name>

      url:
      <url|short_name|name>

      Best wishes,
      Georg.

      Attachments

        Activity

          People

            cyberwolf cyberwolf
            emil.webber emil.webber
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: