Thanks Stephen! I've overlooked that!

Am Mittwoch, 8. März 2017 22:59:27 UTC+1 schrieb Stephen McDonald:
>
> Docs have you covered 
>
>
> http://mezzanine.jupo.org/docs/content-architecture.html#displaying-custom-content-types
>
> On Mar 8, 2017 1:40 PM, "Jochen Breuer" <bre...@gmail.com <javascript:>> 
> wrote:
>
>>
>> Hello everyone,
>>
>> I've got a Page subclass with some additional fields. Everything works 
>> perfectly. But now I need to implement a side-bar navigation which should 
>> display a field from the Page subclass. The relevant template code looks 
>> like roughly this:
>>
>> {% for page in page_branch %}
>>     <a href="{{ page.get_absolute_url }} ">{{ page.city }}</a>,
>> {% endfor %}
>>
>> city would be the field created in the Page subclass. Is there any way to 
>> achieve this without reimplementing the template tags needed here?
>>
>> The Page subclass looks like this:
>>
>> class MyOwnPage(Page):
>>     city = models.CharField(max_length=255, verbose_name=_(u"City"))
>>     content = RichTextField(_("Content"))
>>     …
>>     search_fields = ("content",)
>>
>>
>> Thanks!
>>
>> Jochen
>>
>> -- 
>> 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 mezzanine-use...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to