Aeon Madnox for Krypton / Jarvis - (no longer in development)
(2016-03-04, 21:26)ShadowTek Wrote: Hello.

Is it possible to limit the number of items in a widget?
like will this work:
Code:
<limit>15</limit>

I'm trying to limit the number of items in a widget by having it ignore my <recentlyaddeditems>5000</recentlyaddeditems> setting in my advancedsettings.xml file, as I really want to leave that in the file but don't want 2000 movies showing in my widget so Im trying to find a way to do both.

Would it be the shortcuts/template.xml file I would have to play with or the Includes_Widgets.xml file?
Any hints would be appreciated.

It can be done in the template.xml file, but ideally you'd do it in the widget provider. If you just want, say 50 recently added items create a new smart playlist whose content is 'Movies', ordered by 'dateadded' and with a limit of '50' and use that as the widget.

If you really want to start manually editing the skin (and bear in mind you'll need to re-do the changes whenever the skin updates) then head into the template.xml file and do a search for <content - every time you find it, add a new attrib within that element limit="x", where x is maximum number of items you want to display. Each one (and there are several) will look something like:-

Code:
<content limit="10" target="$SKINSHORTCUTS[target]" sortby="$SKINSHORTCUTS[sortby]" sortorder="$SKINSHORTCUTS[sort]">$SKINSHORTCUTS[content]</content>

Note that this will limit all widgets to that maximum number.


Messages In This Thread
RE: Aeon Madnox - Beta Release - by Mike_Doc - 2015-06-29, 17:08
RE: Aeon Madnox - Beta Release - by Mike_Doc - 2015-06-29, 17:08
RE: Aeon Madnox - Beta Release - by Mike_Doc - 2015-06-29, 17:09
RE: Aeon Madnox - Beta Release - by Mike_Doc - 2015-06-29, 17:09
RE: Aeon Madnox - Beta Release - by Mike_Doc - 2015-06-29, 17:10
RE: Aeon Madnox - Beta Release - by Mike_Doc - 2015-06-29, 17:10
MADNOX FAQ - by schimi2k - 2015-06-29, 17:11
MADNOX HELP - by schimi2k - 2015-06-29, 17:12
RE: Aeon Madnox - Beta Release - by schimi2k - 2015-06-29, 17:12
RE: Aeon Madnox [RC1] for Jarvis *** Important Please read first post (27/02)*** - by BobCratchett - 2016-03-04, 23:35
refresh item - by bill1972 - 2016-03-08, 03:31
Keyboard Autocompletion - by JinNJuice - 2016-03-19, 00:26
System Infoline - by reksp13 - 2016-04-09, 05:20
https://imageshack.com/my/images - by spook61 - 2016-04-14, 17:55
https://imageshack.com/my/images - by spook61 - 2016-04-14, 18:01
Leia - Madnox Problems - by Picard - 2017-06-22, 04:15
VideoLyrics - by Pr.Sinister - 2018-04-05, 23:40
Logout Mark Read Team Forum Stats Members Help
Aeon Madnox for Krypton / Jarvis - (no longer in development)39