Les outils de mises en avant (featured/)¶
Module situé dans zds/featured/.
Fichiers documentés :
Modèles (models.py)¶
-
class
zds.featured.models.FeaturedMessage(*args, **kwargs)¶ The Featured Message is a simple one-line information on the home page. This message is divided in three parts:
- The hook : displayed in bold, it shows the topic of the message (i.e.: “New”, “Warning”, “Info”, ...)
- The message : the info message itself (i.e.: “The site will be down for maintenance tomorrow”)
- The “tell me more” url : A tell me more button linking to a page giving more details
All those elements are facultative.
-
class
zds.featured.models.FeaturedResource(*args, **kwargs)¶ A FeaturedResource is a link to a resource that is featured by the Staff It displays 3 main informations:
- A background picture
- A title
- The author(s) of the resource
Currently, the five newer FeaturedResource are displayed on the front page.
Vues (views.py)¶
-
class
zds.featured.views.FeaturedMessageCreateUpdate(**kwargs)¶ Creates or updates the featured message.
-
class
zds.featured.views.FeaturedResourceCreate(**kwargs)¶ Creates a new featured resource.
-
class
zds.featured.views.FeaturedResourceDeleteDetail(**kwargs)¶ Deletes a featured resource.
-
model¶ alias de
FeaturedResource
-
-
class
zds.featured.views.FeaturedResourceDeleteList(**kwargs)¶ Deletes a list of featured resources.
-
class
zds.featured.views.FeaturedResourceList(**kwargs)¶ Displays the list of featured resources.
-
class
zds.featured.views.FeaturedResourceUpdate(**kwargs)¶ Updates a featured resource.