Skip to content
Snippets Groups Projects
Commit d688c845 authored by Christine Ho's avatar Christine Ho
Browse files

add hints to project using this

parent 276da397
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ INSTALLED_APPS = [
CMS_HIGHLIGHTED_CONTENT_ITEMS_MODELS = (
# format: ('app_name', ('SomeModel', 'AnOther', )),
('news', ('News', ),),
('fosm', ('Project', 'Event', 'News')),
('feparchives', ('Project', 'Event', 'News')),
)
```
......@@ -73,15 +73,15 @@ at least a general template (`highlighted_content/highlighted_content_item.html`
models.
You can also create a template for each app (in this exemple, it would be
`news/highlighted_content_item.html`, `filer/highlighted_content_item.html` and `fosm/highlighted_content_item.html`).
`news/highlighted_content_item.html`, `filer/highlighted_content_item.html` and `feparchives/highlighted_content_item.html`).
You can also create a template for earch model:
* `news/news/highlighted_content_item.html`
* `fosm/dossier/highlighted_content_item.html`
* `fosm/chronicle/highlighted_content_item.html`
* `fosm/note/highlighted_content_item.html`
* `fosm/conference/highlighted_content_item.html`
* `feparchives/dossier/highlighted_content_item.html`
* `feparchives/chronicle/highlighted_content_item.html`
* `feparchives/note/highlighted_content_item.html`
* `feparchives/conference/highlighted_content_item.html`
Logic is the same as in django-admin: we check first if a model template exists, then we check for
an app template, then we fallback for a general template.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment