[GeoNode-users] Editing navigation bar

Simone Dalmasso simone.dalmasso at gmail.com
Tue Jul 28 07:47:54 PDT 2015


Yeah, you need to take a look at how django apps work. you probably need to
create one or at least a custom view to serve that template.
https://docs.djangoproject.com/en/1.8/topics/class-based-views/

2015-07-28 16:32 GMT+02:00 Carmine Massarelli <
carmine.massarelli at ba.irsa.cnr.it>:

>  Thanks...
> if i create a link i will exit from the framework...
> I would like to have a section without the content-wrap, so i duplicated
> *documents*  renaming it in *multimedia* but i am not able to link to the
> new folder created editing base.html, urls.py and settings.py.
> I have already modified the document_base.html in my new multimedia folder
> to have what i want, but to create the link it seems hard.
> I should link the code  *<a href="{% url "documents_browse" %}">{% trans
> "Multimedia" %}</a>*  to the modified file in my new *multimedia* folder
> (copy of *documents*) inside the geonode content (
> /usr/local/lib/python2.7/dist-packages/geonode).
> Any suggestion?
> Thanks
>
>
> Il 07/28/2015 02:23 PM, Simone Dalmasso ha scritto:
>
> Hi, that tag is a django template tag that creates a url from it's name
> defined in urls.py.
> see https://docs.djangoproject.com/en/1.8/ref/templates/builtins/#url
>
>  If you don't have a django url for what you need, then you can hardcode
> the link instead of having a "{% url" block.
>
>  Hope it helps
>
> 2015-07-28 14:02 GMT+02:00 Carmine Massarelli <
> carmine.massarelli at ba.irsa.cnr.it>:
>
>>  Dear,
>> I would like to add a voice to the navigation bar for a link to a web
>> page that I am creating (html5, javascript and OL3) with multimedia
>> contents for on-line visualisation.
>> Because I would like this page to be available within geonode framework,
>> I edited the base.html addind this line copyed:
>>
>>  {% block extra-nav %}
>>  <li id="nav_documents">
>>  <a href="{% url "documents_browse" %}">{% trans "Multimedia" %}</a>
>>  </li>
>> {% endblock %}
>>
>> The problem is that i do not know the mean of the code {% url
>> "documents_browse" %} and where is the referred link documents_browse
>> that i would modify to fit for my cms.
>>
>> Thanks
>>
>> --
>> Dr. Nat. Carmine Massarelli, Ph.D.
>> National Research Council
>> Water Research Institute (IRSA)
>> Addr: De Blasio n.5 - 70132 Bari Z.I.
>> Tel: +39 080 582 05 06
>> Skype: carmine.massarelli
>>
>>
>> _______________________________________________
>> geonode-users mailing list
>> geonode-users at lists.osgeo.org
>> http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users
>>
>>
>
>
>  --
> Simone
>
>
> --
> Dr. Nat. Carmine Massarelli, Ph.D.
> National Research Council
> Water Research Institute (IRSA)
> Addr: De Blasio n.5 - 70132 Bari Z.I.
> Tel: +39 080 582 05 06
> Skype: carmine.massarelli
>
>


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


More information about the geonode-users mailing list