[GeoNode-users] Customize pages found in template directory of main geonode app

Simone Dalmasso simone.dalmasso at gmail.com
Fri Aug 26 02:35:38 PDT 2016


hi Kevin,

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

2016-08-25 19:05 GMT+02:00 Kevin Côté <Kevin.Cote2 at usherbrooke.ca>:

> Hi,
>
> 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.
>
> 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.
>
> So, I created the HTML file "site_links.html" in the template folder of my
> custom project. The file looks like this:
>
> *{% extends social_links.html %}*
> *{% load i18n %}*
> *{% block social_links %}*
> * <article class="tab-pane" id="share">*
> *    <header>*
> *       <h3>{% trans "New text here!" %} {% trans resource.class_name %}
> </h3>*
> *    </header>*
> * </article>*
> *{% endblock %}*
>
> I've also added to the main social_links.html file:
>
> *{% extends "site_links.html" %}*
>
> I tought this would work but whenever I get on a layer page, I get an
> Internal Server Error.
>
> What is the correct way to customize other pages than index.html and
> base.html ?
>
> Thanks !
>
>
>
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geonode-users
>
>


-- 
Simone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20160826/3e7d6fa7/attachment.html>


More information about the geonode-users mailing list