Integrating 3rd party apps is a bit unclear about template inheritance imo.. I want my application detail/list views to override the base.html title block, but the content template lacks an extends rule (else it will just embed the entire page within the region?), I figured out one way but it seems hackish...
class MyDetailView(DetailView):
def get_context_data(self, **kwargs):
context = super(MyDetailView, self).get_context_data(**kwargs)
page = Page.objects.for_request(self.request)
setattr(page, 'title', self.object.title)
context['feincms_page'] = page
return context
Please advise or update the documentation, thanks
Integrating 3rd party apps is a bit unclear about template inheritance imo.. I want my application detail/list views to override the base.html title block, but the content template lacks an extends rule (else it will just embed the entire page within the region?), I figured out one way but it seems hackish...
Please advise or update the documentation, thanks