Comments (4)
Good idea Dmitry I think this requirement is very common.
Do you want to add it? If so, can we do it the same way the blog featured image is implemented?
- field is named feature_image
- add a setting SHOP_CATEGORY_USE_FEATURED_IMAGE
- we can default the setting to True, but we'll need to add support for it in the templates. We actually had code like this a long time ago in the category.html template - the sub-categories would be listed above the products in the category. I think the bootstrap thumbnail/grid classes would work really well here.
- admin class for category would also need to check SHOP_CATEGORY_USE_FEATURED_IMAGE and hide the featured_image field from the admin if set to False
How does that sound?
from cartridge.
It sounds good! Yes, I want to add it.
Also we may do the featured_image more generic: for example, place it in the Displayable model, because even page needs image for showing descending pages in teaser mode or something else. What you think?
from cartridge.
I don't think it belongs on the Page model (and therefore on Displayable) for the same reasons discussed here:
https://groups.google.com/group/mezzanine-users/browse_thread/thread/20e4680b399ad8e6
from cartridge.
Done in e37b521
from cartridge.
Related Issues (20)
- Standard product not in "Add..." product admin menu
- Paypal payment for the current version HOT 1
- New release with the fixes merged in HOT 1
- Translation into Spanish HOT 2
- 'max_digits' must be great or equal to 'decimal_places' on OpenBSD HOT 5
- Screenshots on main page
- Missing migration for mezzanine.core Slugged HOT 2
- Travis checks fail with pip --allow-unverified for pyPdf HOT 1
- django.urlresolvers was moved in Django 1.10 HOT 1
- Travis is not testing current Django builds HOT 1
- Requirements missing from project_template HOT 1
- Duplicate admin order confirmation email sent upon "Re-send order email"
- is it possible to show all products in one page? HOT 1
- Executing management import and export products
- Link to Model Graph in Documentation is broken HOT 2
- Fix simple typo: remaning -> remaining HOT 1
- Stripe integration no longer works HOT 1
- How to remove a checkout field if cart item is from some specific product category
- Security concern HOT 3
- 'Cart' instance needs to have a primary key value before this relationship can be used. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cartridge.