Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Matthias Kestenholz edited this page Aug 24, 2014 · 1 revision

…set a page as the front page/index of the site?

  1. Edit the page you want as front page in the administration interface.
  2. Set “Other options” » “Override URL” to “/” (a single slash, no nothing else).
  3. View your front page and enjoy the results.

…use a MediaFile in my '3rd' party models?

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)

…make a MediaFile render differently based upon the page it is located?

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

…link to a view within a 3rd party app?

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" %}

What's this

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.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.