[GeoNode-users] Add title/name to template

Toni Schönbuchner toni.schoenbuchner at csgis.de
Wed Jul 19 00:01:51 PDT 2017


Hi Naresh,

unfortunately I cannot see the screenshot to help you here.

In general it works like this. Be sure that you get the information
you need from you model. This step is done in the respective view.
After that find the correct template which renders the part where you
like to add the title. All you have to do now is to output the var like

<span title="{{ layer.title }}" ></span>

in your template.


Further reading: How to get data out of the database and how to render them
in templates is covered by the django documentation.

https://docs.djangoproject.com/en/1.11/ <https://docs.djangoproject.com/en/1.11/>

Hope this helps,

Cheers,

Toni

-----------------------------------------------
CSGIS

-----------------------------------------------
Kolonnadenstraße 1
04109 Leipzig
-----------------------------------------------
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.

> Anfang der weitergeleiteten Nachricht:
> 
> Von: geonode-users-request at lists.osgeo.org
> Betreff: geonode-users Digest, Vol 30, Issue 75
> Datum: 19. Juli 2017 um 08:40:28 MESZ
> An: geonode-users at lists.osgeo.org
> Antwort an: geonode-users at lists.osgeo.org
> 
>>> 
>>> 3.  Please see the following screenshot. How to add title/name on mouse
>>> hover

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170719/8c105de3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170719/8c105de3/attachment.sig>


More information about the geonode-users mailing list