<html xmlns="http://www.w3.org/1999/xhtml"><head><meta name="viewport" content="width=window.innerWidth-10, initial-scale=1.0"><script></script><style></style>
<title></title>
</head>
<body style="font-size: 10pt; font-family: Verdana, Geneva, sans-serif; zoom: 100%; padding-left: 18px; padding-right: 2px; word-wrap: break-word; background-color: rgb(255, 255, 255); margin: 0pt 0pt 0pt 1ex; color: black; background-position: initial initial; background-repeat: initial initial;" contenteditable="false"><div>
<p class="p1"><span class="s1">Hi Kevin,<br/>
<br/>
From your custom geonode project you can override other pages the same way you did with base and index.<br/>
<br/>
Francesco<br/>
<br/>
<!-- tmjah_g_1299s -->Inviato da <a href="http://www.typeapp.com/r">TypeApp</a> per iPhone<!-- tmjah_g_1299e --></span></p>
</div><div style="color: black; padding-right: 0px;"><div_wrapper style="margin: 0pt 0pt 0pt 0ex; border-left: 0px; padding-left: 0ex; padding-right: 1cm;"><span class="type_quote" style="font-size: 17.0px;color: #0b21ef;">On 25 ago 2016 <a dir="ltr" href="x-apple-data-detectors://1" x-apple-data-detectors="true" x-apple-data-detectors-type="calendar-event" x-apple-data-detectors-result="1">at 19:05</a>, Kevin Côté <<a dir="ltr" href="mailto:Kevin.Cote2@usherbrooke.ca" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="2">Kevin.Cote2@usherbrooke.ca</a>> wrote:</span><br><div class="mail__original_custom_class"></div>
<p>Hi,</p>
<p>I want to customize pages other than base.html and index.html
for my custom geonode project. In this example I want to change the
"Share this" text of the social_links.html page for something
else.</p>
<p>My understanding is that I need to create a new HTML template
file and that will be linked to the base social_links.html
file.</p>
<p>So, I created the HTML file "site_links.html" in the template
folder of my custom project. The file looks like this:</p>
<p><em>{% extends social_links.html %}</em><br>
<em>{% load i18n %}</em><br>
<em>{% block social_links %}</em><br>
<em><article class="tab-pane" id="share"></em><br>
<em>    <header></em><br>
<em>       <h3>{% trans "New text here!"
%} {% trans resource.class_name %} </h3></em><br>
<em>    </header></em><br>
<em></article></em><br>
<em>{% endblock %}</em></p>
<p>I've also added to the main social_links.html file:</p>
<p><em>{% extends "site_links.html" %}</em></p>
<p>I tought this would work but whenever I get on a layer page, I
get an Internal Server Error. </p>
<p>What is the correct way to customize other pages than index.html
and base.html ?</p>
<p>Thanks !</p>
<p> </p>
<div style=" word-break: normal; word-wrap: break-word; "> </div>


_______________________________________________<br>geonode-users mailing list<br><a dir="ltr" href="mailto:geonode-users@lists.osgeo.org" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="3">geonode-users@lists.osgeo.org</a><br><a dir="ltr" href="http://lists.osgeo.org/mailman/listinfo/geonode-users" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="4">http://lists.osgeo.org/mailman/listinfo/geonode-users</a><br><div class="mail__original_custom_closing_class"></div></div_wrapper></div></body></html>