Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

[Edit page] Option to show meta fields by default #188

Open
atinypixel opened this Issue · 2 comments

3 participants

@atinypixel

No description provided.

@saturnflyer
Owner

Under what circumstances would you want to do this? On individual pages? On every page?

This may just be a problem solved by overriding a helper method.

For example this line in the view https://github.com/radiant/radiant/blob/master/app/views/admin/pages/_fields.html.haml#L20
Uses the meta_errors? helper https://github.com/radiant/radiant/blob/master/app/helpers/application_helper.rb#L135
Which in turn uses meta_visible https://github.com/radiant/radiant/blob/master/app/helpers/application_helper.rb#L125

Does this information solve this for you?

@gerrit
Collaborator

I think it would be useful if this was overridable on Page subclasses. I.e. give the page class an instance á la show_fields? (meta is outdated terminology, isn't it?) that in stock radiant returns false. The meta_visible helper should query this method
Extensions (or PageFactory subclasses) can then easily override it and show the fields dropdown by default if desired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.