class TwoColumnContentBlock(blocks.StructBlock):
left_column = blocks.RichTextBlock()
right_column = blocks.RichTextBlock()
style = blocks.ChoiceBlock(choices=[
('one-half', 'Two equal columns'),
('one-third-left', 'One third, two thirds'),
('one-third-right', 'Two thirds, one third'),
])
class Meta:
label = '2 Column Layout'
icon = 'doc-full'
template = 'core/blocks/two_column_content.html'
class ThreeColumnContentBlock(blocks.StructBlock):
left_column = blocks.RichTextBlock()
middle_column = blocks.RichTextBlock()
right_column = blocks.RichTextBlock()
class Meta:
label = '3 Column Layout'
icon = 'doc-full'
template = 'core/blocks/three_column_content.html'
class AsideBlock(blocks.StructBlock):
aside_content = blocks.RichTextBlock()
class Meta:
label = 'Aside Content'
icon = 'arrow-right'
template = 'core/blocks/aside.html'
class PullQuoteBlock(blocks.StructBlock):
content = blocks.RichTextBlock()
def __str__(self):
return self.content
class Meta:
template = 'core/blocks/pull_quote.html'
icon = 'openquote'
I do appreciate the difference between Django, Wagtails and WordPress. Our decision to go with WT. has to do with this flexibility. Our requirements include, multiple sites in one, indeed many hundreds. Each one with different css, menus, templates, home, domain names etc. All in the one database. Just we do in WP.
The hard part is not programming it but making sure our changes live through future upgrades. Also we are far smarter to use already written e-commerce, and other apps than writing everything from scratch. These are very long term investments in code and in supporting the communitys.
Wordpress is just too bloated, insecure, and inefficient to give us a long term platform. We are doing it now. But we spend more time fixing upgrades and fixing back sites before upgrades than new projects.
In summary, we want do things as close possible the Wagtails and Django way, unless of course we need to change it.
I hope this gives you all a better feel where we are going with this.
--
You received this message because you are subscribed to a topic in the Google Groups "Wagtail support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wagtail/uDgCq-8MnL4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wagtail+u...@googlegroups.com.
To post to this group, send an email to wag...@googlegroups.com.
Visit this group at https://groups.google.com/group/wagtail.
To view this discussion on the web, visit https://groups.google.com/d/msgid/wagtail/3FFEB76B-AAFA-4971-8D9D-EE52AA4DC063%40torchbox.com.
For more options, visit https://groups.google.com/d/optout.