Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to remove datedepublish from admin? #831

Closed
ehsonbek opened this issue Jan 17, 2014 · 6 comments
Closed

how to remove datedepublish from admin? #831

ehsonbek opened this issue Jan 17, 2014 · 6 comments

Comments

@ehsonbek
Copy link

No description provided.

@ehsonbek
Copy link
Author

  1. Can I remove datedepublish from admin at all
  2. How can I add easily custom validation to selected pages.

I think I can add here validation editcontent($contenttypeslug, $id, Silex\Application $app, Request $request)

but is there any way I can pass it from contenttypes?

@bobdenotter
Copy link
Member

  1. You can't do that currently. Could you give an example of why this would be beneficial to have?

  2. You can't do that either at the moment.. In a future release, we'll make it so that all fields can be powered by extensions, so then you could write custom validation for your fields. At the moment you can't, though.

@CoolGoose
Copy link
Contributor

@bobdenotter I assume that he wants to hide it, I have clients that aren't smart enough to even have a publish field (eg: they're used only with using title / body from wordpress, never using any extra option)

@bobdenotter
Copy link
Member

Perhaps this is something we could include in Bolt 2.0? It might be good to have an option for this, that's configurable in permissions.yml.

@tobias2k
Copy link
Contributor

I don't think permissions.yml is the place for this - we already have
permissions for publishing / depublishing, and I think it's wise to keep
something like a permissions definition file as clean as we can,
strictly using it for authorization control purposes.

We could add a setting in the general settings file that disables
publication features entirely, plain and simple.

Another idea would be a setting that hides more UI elements from users
who lack the permissions to alter publication state instead of just
disabling them, but this is tricky to get right - if we remove too much,
user will be puzzled why some things are visible and others aren't.

On Tue, Jan 21, 2014 at 04:41:33AM -0800, Bob den Otter wrote:

Perhaps this is something we could include in Bolt 2.0? It might be
good to have an option for this, that's configurable in
permissions.yml.


Reply to this email directly or view it on GitHub:
#831 (comment)

Tobias Dammers - tobias@twokings.nl - 070-3457628 - www.twokings.nl
Maandag t/m donderdag van 9.00 tot 17.30
Voor dringende vragen, mail naar support@twokings.nl

@bobdenotter
Copy link
Member

Closing this issue as part of our "spring cleaning", because there hasn't been any activity on this for a while now. If you feel this issue is still relevant, feel free to open it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants