-
Notifications
You must be signed in to change notification settings - Fork 20
Columns doesn't work for me. #5
Comments
This plugin uses the 960 grid by default. You can easily override the templates to support the bootstrap grid for example. |
Probably I will do that. But I wanted tell this plugin don't get settings such as COLUMNS,TOTAL_WIDTH,GUTTER from my settings.py out of the box. |
If you want to use your own settings, you have to add
to your settings.py see https://github.com/divio/djangocms-grid/blob/master/djangocms_grid/models.py#L9 |
Yes, but unfortunately that doesn't work for me. ( |
I noticed plugin get settings from my settings.py because when I create new MultiColumn(grid) I have choise of sizes column according my settings. Probably doesn't work this string: 'width': GRID_CONFIG['TOTAL_WIDTH'] / GRID_CONFIG['COLUMNS'] * int(instance.size) - GRID_CONFIG['GUTTER'] in https://github.com/divio/djangocms-grid/blob/master/djangocms_grid/cms_plugins.py |
what are your settings? |
DJANGOCMS_GRID_CONFIG = { |
I add style="width: {{ width }}px;" into template and that correct work for me. |
Today I install fresh django-cms 3 and djangocms-grid plugin. In placeholder I created MultiColumns(grid) plugin with two grid-12 column. In each column I created Text plugin. So text must be render in two same columns. But that don't happen.
Of course, I know I can to add some class to MultiColumns plugin(e.g. "row" as in bootstrap) and some class in each GridColumn(e.g. "span6"), but I think this plugin should work another.
The text was updated successfully, but these errors were encountered: