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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to