-
Notifications
You must be signed in to change notification settings - Fork 235
How do I...
- Edit the page you want as front page in the administration interface.
- Set “Other options” » “Override URL” to “/” (a single slash, no nothing else).
- View your front page and enjoy the results.
Just include a ForeignKey to the MediaFile model in your own models. Unfortunately, the template choosing mechanism inside MediaFileContent isn't implemented in a reusable way yet, but this shouldn't stop you from at least using the media file for your own media.
In your apps models.py:
from feincms.module.medialibrary.models import MediaFile
photo = models.ManyToManyField(MediaFile)
Say, you want to render a MediaFile differently when it's placed on the homepage (e.g. different size). Currently, fein doesn't have anything built in to do that. But you can abstract subclass MediaFile to do so; see this gist: http://gist.github.com/422237
Use app_reverse.
from feincms.content.application.models import app_reverse
app_reverse('home', 'some3rdpartyapp.urls')
Or, inside templates:
{% load applicationcontent_tags %}
{% app_reverse "home" "some3rdpartyapp.urls" %}
This is a page with answers to simple questions about how to achieve something with FeinCMS. Please note that this page is way from complete, if you have anything interesting to add, please feel free to do so.