Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
custom content types in Mezzanine
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  16 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Gour  
View profile  
 More options Sep 27 2012, 4:04 am
From: Gour <g...@atmarama.net>
Date: Thu, 27 Sep 2012 10:04:39 +0200
Local: Thurs, Sep 27 2012 4:04 am
Subject: custom content types in Mezzanine

Hello,

when I chatted with Stephen two months ago, he told me that "the idea
of a content type is the same as a page" and yesterday Ken also
provided some nice ideas about custom content types in Mezzanine.

However, I'm coming from Concrete5 (PHP CMS) where the page is divided
into specific 'areas' and one can add as many as desired content type
blocks to each page 'area' where content type blocks are like 'black
boxes' encapsulating specific functionality (e.g. general content, form
block, Google map, Image, RSS block, video player, download list etc.
are some of the blocks available for re-use) and the end-user can use
them like LEGO bricks to create customized content.

Let's take simple page with the following template:

header                          |
---------------------------------       |
                                        |  sidebar
                                        |                                              
main area                       |
----------------------------------|

and I'd like to put together the following page:

image                           |
----------------------------------|
                                        |  RSS
content (TinyMCE)         | ------
----------------------------------|
                                        | Google map
youtube video                |
----------------------------------|

 iow. have image in the header, RSS & Google map displayed in the right
 sidebar and two blocks in the main are: content entered via tinyMCE
 editor as well as video player for youtube videos?

Is it possible to achieve such structure easily in the Mezzanine or how
to do it?

What if I'd like to swap order in .e.g main area having first 'block'
with youtube video and then tinyMCE-generated content below?

Does it require new custom structure to be defined?

Sincerely,
Gour

--
When your intelligence has passed out of the dense forest
of delusion, you shall become indifferent to all that has
been heard and all that is to be heard.

http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810

  signature.asc
< 1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Davis  
View profile  
 More options Nov 27 2012, 9:52 pm
From: Peter Davis <peter.dav...@gmail.com>
Date: Tue, 27 Nov 2012 18:52:56 -0800 (PST)
Local: Tues, Nov 27 2012 9:52 pm
Subject: Re: custom content types in Mezzanine

I'm similarly confused, there doesn't seem to be any clear method of having
multiple content areas per page. I need to extend the Page model somehow?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eduardo Rivas  
View profile  
 More options Nov 27 2012, 11:40 pm
From: Eduardo Rivas <jerivasmel...@gmail.com>
Date: Tue, 27 Nov 2012 20:40:30 -0800 (PST)
Local: Tues, Nov 27 2012 11:40 pm
Subject: Re: custom content types in Mezzanine

Well, a solution would be to extend the Page model with unlimited RichText
widgets (via a ForeignKey). Each widget will have an option to choose the
"block" where it should appear (sidebar, header, footer, etc). You will
have to write a template with very thorough conditions to make each widget
appear in the desired block.

An alternative way would be to extend or learn from the Forms app in some
way. You can see there that the user gets to choose among "Single line
text", "Multi line text", "File upload" etc. Something similar could be
done with it, for example let the user choose among "video", "download
list", "rss" etc. Of course, each one should have it's own model (and
registered admin) to manage the correct management and generation of the
content blocks. Templates could be managed nicely via template tags and
includes.

On a side note, I would like to say I've never considered Mezzanine to be
this kind of CMS (where the front end user gets to "build web pages without
a single line of code"). I always saw it as a very powerful tool for
developers to give clients/collaborators/whatever high quality web
applications they could manage easily (all this comes from Django).
However, this doesn't mean it can't/shouldn't be done, because who knows,
maybe we are witness to the birth of great Mezzanine app :)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephen McDonald  
View profile  
 More options Nov 28 2012, 12:19 am
From: Stephen McDonald <st...@jupo.org>
Date: Wed, 28 Nov 2012 16:19:14 +1100
Local: Wed, Nov 28 2012 12:19 am
Subject: Re: [mezzanine-users] Re: custom content types in Mezzanine

On Wed, Nov 28, 2012 at 3:40 PM, Eduardo Rivas <jerivasmel...@gmail.com>wrote:

This last paragraph is spot-on!

--
Stephen McDonald
http://jupo.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ken Bolton  
View profile  
 More options Nov 28 2012, 1:07 pm
From: Ken Bolton <kenbol...@gmail.com>
Date: Wed, 28 Nov 2012 13:07:06 -0500
Local: Wed, Nov 28 2012 1:07 pm
Subject: Re: [mezzanine-users] Re: custom content types in Mezzanine

Can we get that last paragraph (or something similar) into the
documentation?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ahmad Khayyat  
View profile  
 More options Nov 28 2012, 3:50 pm
From: Ahmad Khayyat <akhay...@gmail.com>
Date: Wed, 28 Nov 2012 12:50:14 -0800 (PST)
Local: Wed, Nov 28 2012 3:50 pm
Subject: Re: [mezzanine-users] Re: custom content types in Mezzanine

On Wednesday, November 28, 2012 1:07:06 PM UTC-5, Kenneth Bolton wrote:

Can we get that last paragraph (or something similar) into the

> documentation?

I second that. In particular, I think it would be very helpful for new
comers to clarify the separation of the "site developer" role and the "site
author" role that Mezzanine, rightfully, enforces.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eduardo Rivas  
View profile  
 More options Nov 28 2012, 4:16 pm
From: Eduardo Rivas <jerivasmel...@gmail.com>
Date: Wed, 28 Nov 2012 13:16:28 -0800 (PST)
Local: Wed, Nov 28 2012 4:16 pm
Subject: Re: custom content types in Mezzanine

Now that you mention it, a while ago I was thinking about creating a new
user group, something separate from superusers, like page_admin. This group
will have full permissions only over Displayable objects (preventing the
group from accessing the settings or other models you might want to keep
developer-only). It's just some clients work as teams, and they want to
have an "Admin" who can see/change all other users' pages, blog posts, etc;
while each individual user has access to only it's own stuff. Am I making
sense here? Has anyone faced this issue?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephen McDonald  
View profile  
 More options Nov 29 2012, 11:57 am
From: Stephen McDonald <st...@jupo.org>
Date: Fri, 30 Nov 2012 03:57:38 +1100
Local: Thurs, Nov 29 2012 11:57 am
Subject: Re: [mezzanine-users] Re: custom content types in Mezzanine

Great idea - not sure where it should go. It seems a bit to specific for
the overview. Could it be worded differently to be general enough to fit
into the initial description of Mezzanine? Perhaps it could go under the
FAQs - something like "Why doesn't Mezzanine implement pages with blocks
that users can use to build their own pages with?"

On Thu, Nov 29, 2012 at 7:50 AM, Ahmad Khayyat <akhay...@gmail.com> wrote:
> On Wednesday, November 28, 2012 1:07:06 PM UTC-5, Kenneth Bolton wrote:

> Can we get that last paragraph (or something similar) into the
>> documentation?

> I second that. In particular, I think it would be very helpful for new
> comers to clarify the separation of the "site developer" role and the "site
> author" role that Mezzanine, rightfully, enforces.

--
Stephen McDonald
http://jupo.org

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ahmad Khayyat  
View profile  
 More options Nov 29 2012, 12:01 pm
From: Ahmad Khayyat <akhay...@gmail.com>
Date: Thu, 29 Nov 2012 12:01:21 -0500
Local: Thurs, Nov 29 2012 12:01 pm
Subject: Re: [mezzanine-users] Re: custom content types in Mezzanine

On Thu, Nov 29, 2012 at 11:57 AM, Stephen McDonald <st...@jupo.org> wrote:
> Great idea - not sure where it should go. It seems a bit to specific for
> the overview. Could it be worded differently to be general enough to fit
> into the initial description of Mezzanine? Perhaps it could go under the
> FAQs - something like "Why doesn't Mezzanine implement pages with blocks
> that users can use to build their own pages with?"

It could also be mentioned in multiple places with different context. For
example, in the Architecture section, such a comment would explain the
Page-centric model, and why isn't there any support/infrastructure for
blocks.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephen McDonald  
View profile  
 More options Nov 29 2012, 12:07 pm
From: Stephen McDonald <st...@jupo.org>
Date: Fri, 30 Nov 2012 04:07:42 +1100
Local: Thurs, Nov 29 2012 12:07 pm
Subject: Re: [mezzanine-users] Re: custom content types in Mezzanine

On Fri, Nov 30, 2012 at 4:01 AM, Ahmad Khayyat <akhay...@gmail.com> wrote:
> On Thu, Nov 29, 2012 at 11:57 AM, Stephen McDonald <st...@jupo.org> wrote:

>> Great idea - not sure where it should go. It seems a bit to specific for
>> the overview. Could it be worded differently to be general enough to fit
>> into the initial description of Mezzanine? Perhaps it could go under the
>> FAQs - something like "Why doesn't Mezzanine implement pages with blocks
>> that users can use to build their own pages with?"

> It could also be mentioned in multiple places with different context. For
> example, in the Architecture section, such a comment would explain the
> Page-centric model, and why isn't there any support/infrastructure for
> blocks.

Great idea - that actually seems like the best place that text would go
verbatim.

--
Stephen McDonald
http://jupo.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Davis  
View profile  
 More options Dec 12 2012, 6:44 pm
From: Peter Davis <peter.dav...@gmail.com>
Date: Wed, 12 Dec 2012 15:44:30 -0800 (PST)
Local: Wed, Dec 12 2012 6:44 pm
Subject: Re: [mezzanine-users] Re: custom content types in Mezzanine

Hi,

Spurred on by the discussion in this thread I made a mezzanine extension
called mezzanine-flexipage<https://github.com/mrmagooey/mezzanine-flexipage>that I would love to get feedback on.

The summary is that new RichContent areas can be added and removed simply
by adding or removing a variable in the template. This means that adding
and removing arbitrary numbers of RichContent fields is trivial, and can be
done by someone with little or no knowledge of Mezzanine/Django/Python
(e.g. frontend designers).

It works by template introspection to find all variables with a particular
prefix (currently "flexi_"), then ensuring that a fk'd RichContent Field
exists for that variable, and that it gets added to the template context
when needed. The best demonstration of the extension is having an existing
"FlexiPage", working on the template and adding/removing new RichContent
areas and seeing the new content areas appear on the page (after refresh)
as you add them in the template.

Still pretty alpha (admin stuff works but is rather clunky), but I have
tested the instructions given in the readme.md and installation should
hopefully be smooth.

Cheers


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Brander  
View profile  
 More options Dec 12 2012, 11:34 pm
From: Tom Brander <tombran...@gmail.com>
Date: Wed, 12 Dec 2012 20:34:34 -0800 (PST)
Local: Wed, Dec 12 2012 11:34 pm
Subject: Re: [mezzanine-users] Re: custom content types in Mezzanine

I'm a real newb on this stuff and monitoring this group in my effort to
learn. This looks very interesting I just skimmed the readme, I have been
thinking about the various "flatblock" solutions, what are the tradeoffs vs
this approach?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephen McDonald  
View profile  
 More options Dec 13 2012, 3:27 pm
From: Stephen McDonald <st...@jupo.org>
Date: Fri, 14 Dec 2012 07:27:43 +1100
Local: Thurs, Dec 13 2012 3:27 pm
Subject: Re: [mezzanine-users] Re: custom content types in Mezzanine

Thanks for sharing this Peter, it looks really solid.

On Thu, Dec 13, 2012 at 10:44 AM, Peter Davis <peter.dav...@gmail.com>wrote:

--
Stephen McDonald
http://jupo.org

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Davis  
View profile  
 More options Dec 13 2012, 6:15 pm
From: Peter Davis <peter.dav...@gmail.com>
Date: Thu, 13 Dec 2012 15:15:02 -0800 (PST)
Local: Thurs, Dec 13 2012 6:15 pm
Subject: Re: [mezzanine-users] Re: custom content types in Mezzanine

Hi Tom,

I *think* the main difference is that flatblocks is a versatile way to make
changes across your site (via changing the content of a FlatBlock model
which is getting used site-wide) and flexipages is more about being able to
rapidly alter a single template with multiple RichContent areas (which
could still be a site-wide used template, but it would be the whole
template, not an included template component).

Actually, more accurately the main difference is that flatblocks has more
than a single commit to it and is more mature :)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Brander  
View profile  
 More options Dec 14 2012, 10:46 am
From: Tom Brander <tombran...@gmail.com>
Date: Fri, 14 Dec 2012 07:46:49 -0800 (PST)
Local: Fri, Dec 14 2012 10:46 am
Subject: Re: [mezzanine-users] Re: custom content types in Mezzanine

Thanks, that is very helpful, So it could also be said that flexipages can
be used as a superset of flatblocks? That is not quite right though....


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Anderson  
View profile  
 More options May 6, 4:47 pm
From: Andrew Anderson <andrew.artisticli...@gmail.com>
Date: Mon, 6 May 2013 13:47:58 -0700 (PDT)
Local: Mon, May 6 2013 4:47 pm
Subject: Re: [mezzanine-users] Re: custom content types in Mezzanine

mezzanine-flexipage is awesome. I was able to get it up and working quickly
and it is really going to help me move quickly on a project I'm doing.
Thank you!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »