Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Archive

Edit page slug from admin

Started by Muut Archive 9 years ago · 0 replies · 393 views
9 years ago

[UPDATE] I finally found the solution: simply change the key to header.slug.
Don't know why the field behave the way it did without that though.

I'm trying to allow editors to edit the slug for a page (multi-language site).

I've set up my blueprint like so:

YAML
form:
  fields:
    tabs:
      type: tabs
      active: 1

      fields:
        content:
          type: tab
          title: Content

          fields: 
            slug:
              type: text
              label: Slug

Event though the slug itself shows up in the field when the form loads, it's impossible to change it. I can edit the field no problem, and I'm not getting errors, the page simply saves and restores the field content to its original value.
Is there a way to achieve this?

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1297 9 years ago
Archive · by Muut Archive, 9 years ago
2 894 9 years ago
Archive · by Muut Archive, 9 years ago
2 4024 9 years ago
Archive · by Muut Archive, 9 years ago
1 2899 9 years ago
Archive · by Muut Archive, 9 years ago
3 1082 9 years ago