[GeoNode-users] New static page and menu option in the menu

Ariel Cabezas gerardoarielc at gmail.com
Fri Jun 15 09:35:38 PDT 2018


is what I needed
thanks for the help Toni!

Ariel

2018-06-15 12:35 GMT-03:00 Toni Schönbuchner <toni.schoenbuchner at csgis.de>:

> Hi Ariel,
>
> so here is how to do it:
>
> 1) Don´t change the core. Use geonode project to create new pages or
> overwrite existing
> https://github.com/GeoNode/geonode-project
>
> 2) Have a look how other static pages are implemented and do the same for
> your new page.
> For example the static page „about"
>
> _
> Create a new page like the existing about.html in your geonode project
> let´s name it newpage.html
> https://github.com/GeoNode/geonode/blob/master/geonode/
> templates/about.html
> _
> Let geonode (or django) know about your new page by creating a new url
> pattern in urls.py (in your geonode project!)
> https://github.com/GeoNode/geonode/blob/master/geonode/urls.py#L70
>
> url(r'^newpage/$',
> TemplateView.as_view(template_name='newpage.html'),
> name='newpage'),
>
> _
> Copy base.html to your geonode project to not change the existing but
> overwrite it and add your new page to the menu:
> https://github.com/GeoNode/geonode/blob/master/geonode/
> templates/base.html#L93
>
> Of course you can just change the files in geonode core but beware that a
> next update
> could overwrite your changes ;)
>
> Find more information within this presentation: http://geonode.
> org/dev-workshop/#/
> at step 4. „customize your geonode ..."
>
> Cheers,
>
> Toni
>
>
> -----------------------------------------------
> CSGIS
>
> -----------------------------------------------
> Kolonnadenstraße 1
> <https://maps.google.com/?q=Kolonnadenstra%C3%9Fe+1+04109+Leipzig&entry=gmail&source=g>
> 04109 Leipzig
> <https://maps.google.com/?q=Kolonnadenstra%C3%9Fe+1+04109+Leipzig&entry=gmail&source=g>
> -----------------------------------------------
> Mobil +49/ (0) 176 6680 3198
> Tel  +49/ (0) 341 24 04 738
> Fax  +49/ (0) 341 24 04 73
> Web http://csgis.de
> -----------------------------------------------
>
> Hinweis gemäß § 33 BDSG
> Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist
> ausschließlich für den
> Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie
> diese E-Mail versehentlich
> erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und
> löschen Sie diese Nachricht
> von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung,
> Vervielfältigung, Veränderung,
> Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.
>
> Am 15.06.2018 um 09:45 schrieb geonode-users-request at lists.osgeo.org:
>
> Message: 1
> Date: Thu, 14 Jun 2018 17:44:17 -0300
> From: Ariel Cabezas <gerardoarielc at gmail.com>
> To: geonode-users <geonode-users at lists.osgeo.org>,  geonode-devel
> <geonode-devel at lists.osgeo.org>
> Subject: [GeoNode-users] New static page and menu option in the menu
> bar
> Message-ID:
> <CA+PyPBuDX83MJWGYW_zgGyhKrb2U3OJSorbrdZi3oR5NfEpXaQ at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi all ! I need some help, i want to add a new static page (text and some
> images) with a new option to the menu bar. What would be the easiest way to
> do it . thanks!
>
> My installation,  Geonode 2.8 from PPA in Ubuntu server 16.04
>
> Ariel.-
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20180615/84c67326/attachment.html>


More information about the geonode-users mailing list