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

@blueprints: ordering > push field to end

Started by Muut Archive 10 years ago · 0 replies · 349 views
10 years ago

When adding fields to blueprints, you can change there order. I have two questions regarding this.

  1. When adding fields to the content tab they will always appear behind the content editor and uploads field. This won't work for the added field:

    YAML
    content:
    fields:
    content:
      label: Standard Content Editor            
    uploads:
      label: Page Media Files
    
    new_field:
     label: My New Field
     ordering@: 0 # will not be pushed to top
    
  2. I usually unset the content editor field for lots of pages and would like to have the uploads field appear at the end. So, I wonder if something like this is possible:

    YAML
    
    content:
    fields:
    content:
      label: Standard Content Editor
      unset@: true            
    uploads:
      ordering@: end # is it possible? 
    
    new_field:
     label: My New Field
     ordering@: 0 # will not be pushed to top
    ---
    

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1280 9 years ago
Archive · by Muut Archive, 9 years ago
2 888 9 years ago
Archive · by Muut Archive, 9 years ago
2 4018 9 years ago
Archive · by Muut Archive, 9 years ago
1 2893 9 years ago
Archive · by Muut Archive, 9 years ago
3 1077 9 years ago