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

Open
atinypixel opened this Issue Feb 2, 2011 · 2 comments

Comments

Projects
None yet
3 participants

No description provided.

Owner

saturnflyer commented Mar 18, 2011

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?

Member

gerrit commented Mar 23, 2011

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