{% extends "lizard_ui/lizardbase.html" %} {% block title %}Portal tabs{% endblock %} {% block portal-tabs %} {# Add "selected" to the selected class. #} {# Make sure you add {{ block.super }} in pages with this block. #}
{# add:
#} {% endblock portal-tabs %} {% block content %}

See Tab one and Tab two on top of this page. Define the block "portal-tabs" in your version of lizard_ui/lizardbase.html. The tabs only have to be defined once.

Define your portal tabs in ul, li. In the last tab, add class "last".

Next define portal-tab-selected-default, with attribute data-selected. i.e. "#portal-tab-one".

In every page where you want a different portal-tab selected than the default, add block portal-tabs, add block.super on top and define portal-tab-selected with attribute data-selected.

{% endblock %}