Have a look 
SiteRelated: 
https://github.com/stephenmcd/mezzanine/blob/b7a7b00ef8fc99ce2584fc003c8ea8cbceffee7b/mezzanine/core/models.py

Here's a blog on using 
it: 
http://bitofpixels.com/blog/on-singletonadmins-and-sitewidecontent-editing-sitewide-content-in-mezzanines-admin/

On Wednesday, 26 October 2016 10:26:49 UTC+1, Richard Jackson wrote:
>
> Hi all,
>
> I apologies for my complete lack of technical knowledge with this question 
> - I haven't dealt with Mezzanine/Django/Python for about a year.
>
> I have defined a class ('homepage') and have defined an attribute 
> ('content'). When making a page based on the 'homepage' class, I can fill 
> in the text for 'content' through the admin, with the template looking like:
>
> <p>{{ page.homepage.content }}</p>
>
> Is there a way that I can refer to what I'd stored as {{ 
> page.homepage.content }} from another page (i.e. a 'biography' page)?
>
> For example, say I wanted to make the same text appear in both the 
> 'homepage' and the 'biography'. I'd store this through the admin page via 
> 'homepage' but I'd also like some way of referring to this in the 
> 'biography' template.
>
> Is this possible, and if so how? My understanding has become excessively 
> poor so I hope the above makes some sort of sense.
>
> Thanks,
>
> Rich
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to