Questions tagged [feincms]

A Django-based CMS with a focus on extensibility and concise code.

From the docs:

FeinCMS is an extremely stupid content management system. It knows nothing about content – just enough to create an admin interface for your own page content types. It lets you reorder page content blocks using a drag-drop interface, and you can add as many content blocks to a region (f.e. the sidebar, the main content region or something else which I haven’t thought of yet). It provides helper functions, which provide ordered lists of page content blocks. That’s all.

Source: FeinCMS

54 questions
9
votes
1 answer

Hierarchical data in admin pages in Django

In a Django project, I have a hierarchical model using MPTT defined like this in models.py: class Structure(MPTTModel): name = models.CharField(max_length=200, unique=True) parent = TreeForeignKey('self', null=True, blank=True,…
A.Vila
  • 1,456
  • 4
  • 21
  • 32
6
votes
1 answer

Django and FeinCMS: A way to use the Media Library in other normal models?

I'm using Django and FeinCMS on a project. I'm currently using FeinCMS for all the pages on the site. But I also have another separate model that handles very simple stock for the site too. This stock model has the usual fields (name, description,…
littlejim84
  • 9,071
  • 15
  • 54
  • 77
6
votes
2 answers

Feincms MediaFile in RichTextContent

Is there a standard solution to insert a feincms MediaFile into a RichTextContent form element (ckeditor or tinyMCE) ? I haven't been able to find any in the documentation... Now users need to copy paste an url in the medialib then move over to page…
user2298943
  • 632
  • 5
  • 20
6
votes
2 answers

Customizing the feincms page admin based on user

I'm trying to find a way to filter the admin queryset for page objects based up on the user provided, what I've considered (pseudo code): from feincms... Page class MyPageAdmin(PageAdmin): def __init__(self, *args, **kwargs): 'monkey…
Hedde van der Heide
  • 21,841
  • 13
  • 71
  • 100
5
votes
1 answer

Feincms mixing content types

I have a question and i want to know if i can mix 2 existing contenTypes together into one custom contenType. I need my own content type with contenType RichTextContent and ImageContent so that i can use a special template to show an image right and…
5
votes
3 answers

Dump data from django Feincms

I'm using feincms in a django project and I want to use manage.py dumpdata but I get nothing: python manage.py dumpdata feincms []
Victor
  • 247
  • 3
  • 13
4
votes
1 answer

FeinCMS allow a contenttype only once per page object

Is there any default action to allow a contenttype only once per page, other then overriding the admin form? The documentation is unclear about this
user2298943
  • 632
  • 5
  • 20
3
votes
1 answer

FeinCMS admin inlines

I'm new to FeinCMS and I'm trying to create my own content type. That uses another custom content type I created. In the code below "CollapsiblePanel" does not show in the admin as I only want you to be able to create "CollapsiblePanels" from the…
3
votes
2 answers

Reorder Fields of FeinCMS Content Type in Page Admin

I let a content type inherit from RichTextContent and add a few fields, like a title. class SimpleTextContent(RichTextContent): title = models.CharField(max_length=20) ... Unfortunately, in the Page Admin the text field will appear on top…
Philipp Zedler
  • 1,660
  • 1
  • 17
  • 36
3
votes
1 answer

AttributeError at / 'str' object has no attribute '_mptt_meta'

I'm working with feinCMS and had added the custom content to the Page, and overridden the render method in the custom content class. The render method is as follows: return render_to_string('badge/categories.html', {'categories', self},…
yogkm
  • 649
  • 5
  • 15
2
votes
1 answer

Disable option to move FeinCMS contenttypes within a region

I'd like to disable the option to move FeinCMS contenttypes whithin a region. Does anyone have any suggestions how to accomplish this?
2
votes
1 answer

feincms applicationcontent not working with feincms_translatedpage_or_base

I have used the code from the examples in the docs, but I cannot make ApplicationContent show anything on a translated page. The ApplicationContent is on both the base-language-page and the translated page, but it only shows up on the…
Mathias Nielsen
  • 1,560
  • 1
  • 17
  • 31
2
votes
1 answer

Making a copy of a FeinCMS page tree using django-mptt changes child order

I'm trying to make a copy of a FeinCMS page tree, which is managed using django-mptt. I wrote this function: def make_tree_copy(page, parent=None): ''' Makes a copy of the tree starting at "page", reparenting it to "parent" ''' …
Jonas
  • 970
  • 1
  • 8
  • 17
2
votes
2 answers

FeinCMS Page migrations not working

I'm trying to setup FeinCMS but I have problems with Page migrations when I add or remove page extensions. I've been following the docs, but no luck. Here's my file structure: testcms ├── cms │   ├── __init__.py │   ├── admin.py │   ├── migrate │  …
Bartek
  • 21
  • 2
2
votes
1 answer

FeinCMS: Get property of subsequent content block in template

How can I get information about the subsequent FeinCMS content block in a template rendering a RichTextContent? Obtaining something like the class name would be ideal, but also access to fields of the model would help me.
Philipp Zedler
  • 1,660
  • 1
  • 17
  • 36
1
2 3 4