Skip to content
Snippets Groups Projects
Commit 0ba3a688 authored by jindra12's avatar jindra12 Committed by jan.bednarik
Browse files

Add parental link to article page

parent e5376096
No related branches found
No related tags found
2 merge requests!787Release,!762Add parental link to article page
Pipeline #12638 passed
...@@ -412,6 +412,10 @@ class DistrictArticlePage( ...@@ -412,6 +412,10 @@ class DistrictArticlePage(
) )
return context return context
@property
def articles_page(self):
return self.get_parent()
class DistrictArticlesPage( class DistrictArticlesPage(
RoutablePageMixin, ExtendedMetadataPageMixin, SubpageMixin, MetadataPageMixin, Page RoutablePageMixin, ExtendedMetadataPageMixin, SubpageMixin, MetadataPageMixin, Page
......
<nav class="text-center mb-3"> <nav class="text-center mb-3">
<a href="{{ page.root_page.articles_page.url }}" class="btn btn--icon text-xl pt-8" rel="next" > <a href="{{ page.articles_page.url }}" class="btn btn--icon text-xl pt-8" rel="next" >
<div class="btn__body-wrap"> <div class="btn__body-wrap">
<div class="btn__body ">Další články</div> <div class="btn__body ">Další články</div>
<div class="btn__icon "> <div class="btn__icon ">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment