<div dir="ltr">hi Kevin,<div><br></div><div>you can instead redefine the template with the same name of the original one "social_links.html" and put it in the same directory structure under your geonode-project. It will be picked up first</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-08-25 19:05 GMT+02:00 Kevin Côté <span dir="ltr"><<a href="mailto:Kevin.Cote2@usherbrooke.ca" target="_blank">Kevin.Cote2@usherbrooke.ca</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<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> </div>
</div>
<br>______________________________<wbr>_________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/geonode-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Simone </div>
</div>