I have django project with jazzmin theme library I use, I've change icon for sidebar with:
"icons:{...}"
and I want to change the user menu icons, the logout menu:
what I know is, we can use this line:
"usermenu_links" : {}
But I don't quite understand how to pointing for the log out button, any idea?
Related
The first problem:
If click on the image toolbar, the wizard appears with additional settings. Can I modify it to upload the image in one click without entering additional information and sending the image to the server?
Correct example https://ckeditor.com/docs/ckeditor5/latest/features/images/images-overview.html#inserting-images-via-source-url
The second problem:
Outside the admin panel, there is no upload tab on the image toolbar. How to fix it?
Thanks for your time.
I am trying to customize a settings page so it has a button that I will assign to a certain action. (Let's assume for now I just want to log something into the console).
Ideally it would be of something like this:
#register_setting
class ActionTriggeringSetting(BaseSetting):
button = models.ButtonField(
action=myLoggingFunc,
help_text='Click here to log "Hello World" to the console'
)
I tried looking into the site settings but found nothing really helpful there.
Does anybody know if something of the sort exists?
Thank you
Depending on where in the admin UI you want you button to be, there is a way using the register-admin-menu-item or register-settings-menu-item Wagtail hook
See: https://docs.wagtail.io/en/v2.10.1/reference/hooks.html#register-admin-menu-item
and
https://docs.wagtail.io/en/v2.10.1/reference/hooks.html#register-settings-menu-item
The approaches above will add a button to the Wagtail Admin menu or the settings submenu, respectively. Clicking on the button will trigger a custom view that you also need to add - this is also loosely covered in the linked docs.
I have created a menu using django cms, there is a menu item named 'News'. There is a page linked to this menu item News, when there is no article in it, this menu item has to hide from the menu otherwise it has to visible. The problem is when all the articles are deleted in the News page the menu item still appears in the menu until or unless the server is not restarted. Can any one help me to figure this out?
Did you read the django cms caching documents? There is a discussion about the caching in the django cms. Have a look at this
There is also an option to use the cache plugin.
Also check this note in the documentation;
If you disable a plugin cache be sure to restart the server and clear the cache afterwards.
I need to make such feature: when user clicks "edit" button, the Django should open admin page for editing this object. I have made something like this:
<a onclick="window.open('/admin/posts/post/{{post.pk}}/', 'newwindow', 'width=auto, height=auto'); return false;">
And this will open window for editing this post. But when I click on "Save" button - object saves and nothing happens else. The window stays white...
But I need to close automatically window after "Save" button and refresh page from which user clicks "edit" button.
We can also see such window, when clicking on the icon "Change selected objectname", near foreign key in Django admin page.
Do you understand what I need? What should I do?
Thanks a lot.
For my django CMS site i need to manage the entire theme of the templates from admin panel. It includes link text colour, hover text background, button colour etc.
I found the app https://github.com/MegaMark16/django-cms-themes, but i can be used with predefined themes only.And i want the admin, who doesnt have any idea about CSS, will be able to manage the theme of the entire website using tools such as colour pallettes etc..
Is there any django app that can be used for this instead of django-cms-themes ?
Thanks in Advance....