[GeoNode-users] Limit amount of people results

Toni Schönbuchner toni.schoenbuchner at csgis.de
Thu Jul 13 05:30:59 PDT 2017


Great to hear!

All the best,

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.

> Am 13.07.2017 um 14:14 schrieb Naresh N <naresh919 at gmail.com>:
> 
> Dear Toni,
>  Thanks a lot for response. Now i could able to fix by doing following changes
> 1. Settings.py CLIENT_RESULTS_LIMIT = 10 and API_LIMIT_PER_PAGE = 10
> 2. In  /geonode/api/api.py  mnewly added max_limit =10 is added in meta class of  GroupResource and Profile resouce
> 3. In  /geonode/api/resourcebase_api.py max_limit value is changed from NONE to 10 and limit value 10
> 
> Thanks again for support
> 
> Best Regards,
> Naresh
> 
> On Thu, Jul 13, 2017 at 1:46 PM, Toni Schönbuchner <toni.schoenbuchner at csgis.de <mailto:toni.schoenbuchner at csgis.de>> wrote:
> Dear Naresh,
> 
> sorry, please ignore what I´ve written below.After a second look I don´t think it will work as the angular module is
> initated before. Means the second way, changing the search script to your
> needs might be the way to go.
> 
> cheers,
> 
> toni
> 
>> Anfang der weitergeleiteten Nachricht:
>> 
>> Von: geonode-users-request at lists.osgeo.org <mailto:geonode-users-request at lists.osgeo.org>
>> Betreff: geonode-users Digest, Vol 30, Issue 50
>> Datum: 13. Juli 2017 um 08:25:39 MESZ
>> An: geonode-users at lists.osgeo.org <mailto:geonode-users at lists.osgeo.org>
>> Antwort an: geonode-users at lists.osgeo.org <mailto:geonode-users at lists.osgeo.org>
>> 
>> from a quick look it´s the same angular controller for both api requests.
>> Means all use the same max var. If you like to have the amount different
>> on peoples page only you could give a try to override
>> this variable in the peoples template. From naming I think it should be
>> profile_list.html
>> 
>> here I would try to add a new var after line 28
>> https://github.com/GeoNode/geonode/blob/master/geonode/people/templates/people/profile_list.html#L28 <https://github.com/GeoNode/geonode/blob/master/geonode/people/templates/people/profile_list.html#L28><https://github.com/GeoNode/geonode/blob/master/geonode/people/templates/people/profile_list.html#L28 <https://github.com/GeoNode/geonode/blob/master/geonode/people/templates/people/profile_list.html#L28>>
>> 
>> <script type="text/javascript">
>>   CLIENT_RESULTS_LIMIT = 10;
>> </script>
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170713/8608ce25/attachment-0001.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/20170713/8608ce25/attachment-0001.sig>


More information about the geonode-users mailing list