django-tinycontent icon indicating copy to clipboard operation
django-tinycontent copied to clipboard

Edit button on / off

Open ad-m opened this issue 10 years ago • 3 comments

Hello,

I am would like report that django-tinycontent break design of my page in results of auto add link to edit page eg. sidebar. It is completely unacceptable.

I am have 2 solution for that.

  1. Use django-constance for extra dynamic settings, overwrite theme and provide "edit-mode" for administrator.
  2. Extend django-constance model to provide radio field "hide edit button". Then new fields display edit button, but I can hide it.

What do you prefer?

Greetings, Adam

ad-m avatar Jul 25 '15 19:07 ad-m

I'd prefer to avoid adding a dependency on django-constance.

Two alternatives to your suggestions:

  1. Override the templates in your project.
  2. Have a setting in settings.py for removing the add/edit links.

Dom

dominicrodger avatar Jul 26 '15 18:07 dominicrodger

Overwrite a templates sounds nice.

I will provide new package django-tinycontent-constance with build-in templates for constance support soon.

Wysłano z urządzenia mobilnego. 26 lip 2015 8:56 PM "Dominic Rodger" [email protected] napisał(a):

I'd prefer to avoid adding a dependency on django-constance.

Two alternatives to your suggestions:

  1. Override the templates in your project.
  2. Have a setting in settings.py for removing the add/edit links.

Dom

— Reply to this email directly or view it on GitHub https://github.com/dominicrodger/django-tinycontent/issues/7#issuecomment-125027563 .

ad-m avatar Jul 26 '15 21:07 ad-m

We can drop django-constance by store in session settings "change". By settings.py we will select default settings (show / not), next to by views settings will be updated.

ad-m avatar Jul 27 '15 09:07 ad-m