I know that I can register my model as a Django model and add an image there but I need to save a pages' tree and identify my pages by an image on a listing page. To make a long story short, I need to show images on the listing page in admin.
Is there any way to show a field on a listing page in Wagtail admin?
969 views Asked by Valery At
2
There are 2 answers
0
Flaiming
On
If you just want to add image, you don't need to override entire page title explore template. You can use just pages_listing_title_extra block.
Create file templates/wagtailadmin/pages/listing/_page_title_explore.html with content:
{% extends "wagtailadmin/pages/listing/_page_title_explore.html" %}
{% load wagtailimages_tags %}
{% block pages_listing_title_extra %}
{% image page.image fill-100x200 %}
{% endblock pages_listing_title_extra %}
This should not break with new version of Wagtail (only if this template block would be removed/renamed).
Related Questions in DJANGO
- Django Admin Panel and Sub URLs Returning 404 Error on Deployment
- How to return HTTP Get request response from models class in Django project
- Issue with Quantity Increment in Django E-commerce Cart
- Can't install Pipenv on Windows
- use dict from python in django html template and also in js
- 'pyodbc.Cursor' object has no attribute 'callproc', mssql with django
- Django socketio process
- Root path analogue in uWSGI as in Uvicorn
- Django - ModuleNotFoundError: No module named 'backend'
- Does Python being a loosely typed programming language make it less secure?
- sorl-thumbnail adds a background color when padding is used
- Can't connect to local postgresql server from my docker container
- Why ProductHunt api dont work with Python?
- why i have to put extra space in before write option selected because it show error if i don't ' option:selected'
- Django Arrayfield migration to cloud sql (Postgresql) not creating the column
Related Questions in ADMIN
- How to install an app with default admin privileges via Inno Tool (or some other setup tool)?
- execute cmd commands as admin with java code
- Change an exe file's compatibility settings with C#
- All of a sudden not working, using linked server to source getting "Communication link failure"
- login and registration page not jump to the dashboard after registration and login proces
- Use sidebar on specific pages
- Set Device Owner
- For versions of solr9 or later, the admin UI cannot be displayed
- How to get the mailbox statistics data for more than 70,000 shared mailboxes in bulk
- Creating a model through the admin panel inside the test
- Oops, looks like the page is lost. This is not a fault, just an accident that was not intentional
- Disable add of related record in Django admin
- Do Shell Script From Apple Script Requires Terminal To Have Full Disk Access - But It Already Has Full Disk Access
- Change programmatically the email for new order, cancelled order and failed order WooCommerce notifications
- How can I find out when the computer shuts down after executing the shutdown command?
Related Questions in CUSTOMIZATION
- how to style mui 5 switch to look like a toggle switch
- Transposing labels on a continuous scale [waterfall graph, R]
- Innosetup: Optionally delete a file with checkbox
- Can Azure Functions encounter timeout exceptions?
- How to only modify one keyword color in Visual Studio Code?
- Customize menu in wordpress
- Remove grouping from numpunct of std::locale
- Customization to Last Week filter
- How do I let the user customize a specific portion of model in React Three Fiber?
- How to apply custom profiles/setting to Spinnaker to make it deploy with one command?
- Bash custom autocompletion triggered by key
- Difficulty Customizing Jira Templates: Seeking Solutions
- Customizing the Default Slack Message Input Window or APP window
- Customize user table used by Keycloak
- Is there Any way to show the toolbar columns menu by clicking on a customize Button outside the DataGrid in Material UI?
Related Questions in WAGTAIL
- Problem running wagtail(CMS for django) and postgresql in Docker Compose
- Difficulty with hosting Multilingual Wagtail site on alwaysdata
- Why does the ImageGalleryBlock in wagtail-crx/coderedcms return no images?
- Page not found when following wagtail tutorial adding tags
- table not found: wagtailcore_site
- Problems deploying Wagtail 6
- Using Wagtail's rich text widget for simple form?
- Wagtail field change does not show up in Page Revisions
- How to make many-to-many relation for multiple page models with one PageChooser field to select from all of them in Wagtail?
- Account language setting ignored in Wagtail admin for localized model names
- Adding index.FilterField for Page object in Wagtail?
- Find sibling of root page for current locale in Wagtail
- How to add custom js for select in Wagtail choice block
- Wagtail and Elasticsearch , Lookup "icontains"" not recognised
- (WAGTAIL) How to add a button, or something similar, items per page to a model listing in the wagtail administrative area?
Related Questions in MODELADMIN
- How to import Wagtail ModelAdmin index page into a template
- How to store user_id in admin of wagtail (non page model)?
- Wagtail ModelAdmin cleaning and validating fields that depend on each other
- How to prevent Error: 403 in ModelAdmin.autocomplete_fields?
- How to share data sets between Wagtail ( ModelAdmin ) and Django Rest API
- Silverstripe 4.6 ModelAdmin dynamic $menu_Title
- Custom ModelAdmin filter on calculated field
- Extending Wagtail Modeladmin CreateView I get a NoReverseMatch and if I comment the code the routing problem persists
- wagtail-generic-chooser widget (NoReverseMatch)
- Is there any way to show a field on a listing page in Wagtail admin?
- Wagtail: how to set calculated fields (@property) title in admin
- How to customize the Page type model's IndexView - the listing view in Wagtail Admin
- Django using __init__ method in classes extending (admin.ModelAdmin)
- Add submenu's in wagtail admin
- How to limit what items are displayed in the ForeignKey/ManyToMany Wagtail ModelAdmin fields?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)

Create a template in
templates/wagtailadmin/pages/listing/_page_title_explore.htmlPay attention on
{% block pages_listing_title_extra %}, for example, you can add your variable from a model to this block.Keep in mind that the admin template has been overwritten, and after upgrading the Wagtail core you may not see some new features.