[HOW TO] Library Node Examples
#36
(2016-03-06, 17:19)Ashaneil Wrote: So what, exactly, is the difference between nodes and playlist? When would you want to use one over the other?

For the difference between custom nodes and smart playlists see #25 where this is asked and answered. But I will assume you were actually asking a new question about folder type nodes and rule based nodes since that was the previous post Smile

The big difference for the user between folder type custom nodes and rule type custom nodes is the drill down behaviour when you select an item. There are internal implementation differences too, the database queries are more efficient on folder type, but what can be achived is more limited than the flexible rules that can be created with the rule type.

Folder type custom nodes exactly mimic the way that the default nodes work. For example say you have very many music genres, pages of them, and so would like to have a special subset of them on a smaller menu for easy access. I would create folder type nodes for this, arranged in a submenu, one for each of my favorite genres.

Code:
<path>musicdb://artists/?genre=Rock</path>

would give me a node that displays exactly the same artists that clicking on a genre of "Rock" on the genre node. If I then drill down and click on an artist I get the albums node showing albums for that artist with songs of that genre. Drill further down I get those songs.

But say you used a rule type node instead.

Code:
<content>artists</content>
<rule field="genre" operator="is">
<value>Rock</value>
</rule>

This would show the same artists as above. However, like with playlists, the rule does not pass to the items below it. So click on an artist and you will see all of their albums regardless of genre, and further down all the songs.

Does this matter? Well if you have an artist than crosses several genres then these two approaches produce quite different results. If you want default node like behaviour you have to use folder type custom nodes.

I hope that makes things clearer for some people. But it is a more advanced topic, so don't be upset if it is less than clear!
Reply


Messages In This Thread
[HOW TO] Library Node Examples - by zag - 2016-01-22, 11:47
RE: Library Node Examples - by DaveBlake - 2016-01-22, 13:13
RE: Library Node Examples - by zag - 2016-01-22, 15:13
RE: Library Node Examples - by DaveBlake - 2016-01-24, 11:36
RE: Library Node Examples - by tkgafs - 2016-01-26, 11:21
RE: Library Node Examples - by DarkHelmet - 2016-01-26, 13:09
RE: Library Node Examples - by zag - 2016-01-26, 13:14
RE: Library Node Examples - by DarkHelmet - 2016-01-26, 14:42
RE: Library Node Examples - by CornBread96 - 2022-03-04, 23:08
RE: Library Node Examples - by CornBread96 - 2022-03-04, 23:15
RE: Library Node Examples - by zag - 2016-01-26, 14:52
RE: Library Node Examples - by annejones101 - 2020-02-15, 11:03
RE: Library Node Examples - by tkgafs - 2016-01-31, 12:06
RE: Library Node Examples - by DaveBlake - 2016-01-31, 12:34
RE: Library Node Examples - by DarkHelmet - 2016-01-31, 14:38
RE: Library Node Examples - by DaveBlake - 2016-01-31, 14:43
RE: Library Node Examples - by DaveBlake - 2016-01-31, 14:45
RE: Library Node Examples - by zag - 2016-01-31, 14:49
RE: Library Node Examples - by YamYam - 2020-03-10, 11:08
RE: [HOW TO] Library Node Examples - by zag - 2016-01-31, 15:33
RE: [HOW TO] Library Node Examples - by zag - 2016-01-31, 16:08
RE: [HOW TO] Library Node Examples - by zag - 2016-02-03, 10:45
RE: [HOW TO] Library Node Examples - by zag - 2016-02-24, 13:43
RE: [HOW TO] Library Node Examples - by zag - 2016-02-26, 17:36
RE: [HOW TO] Library Node Examples - by zag - 2016-02-27, 15:41
RE: [HOW TO] Library Node Examples - by DaveBlake - 2016-03-06, 18:42
RE: [HOW TO] Library Node Examples - by zag - 2016-03-30, 22:12
RE: [HOW TO] Library Node Examples - by zag - 2016-03-31, 11:04
RE: [HOW TO] Library Node Examples - by zag - 2016-05-23, 21:29
RE: [HOW TO] Library Node Examples - by zag - 2016-05-23, 22:07
RE: [HOW TO] Library Node Examples - by Zani - 2017-10-25, 14:45
RE: [HOW TO] Library Node Examples - by Zani - 2017-10-30, 14:38
RE: [HOW TO] Library Node Examples - by Zani - 2017-10-31, 15:56
RE: [HOW TO] Library Node Examples - by Er1c - 2018-05-12, 07:02
RE: [HOW TO] Library Node Examples - by DaVu - 2018-11-06, 15:53
RE: [HOW TO] Library Node Examples - by Alion - 2018-11-06, 18:09
RE: [HOW TO] Library Node Examples - by ronie - 2019-02-08, 12:20
RE: [HOW TO] Library Node Examples - by ronie - 2019-02-08, 13:19
RE: [HOW TO] Library Node Examples - by PatK - 2019-06-13, 19:49
RE: [HOW TO] Library Node Examples - by PatK - 2019-06-16, 05:31
RE: [HOW TO] Library Node Examples - by PatK - 2019-06-17, 16:40
[HOW TO] Library Node Examples - by Finchy - 2019-06-21, 10:34
[HOW TO] Library Node Examples - by Finchy - 2019-06-21, 20:46
RE: [HOW TO] Library Node Examples - by PatK - 2019-06-23, 04:51
RE: [HOW TO] Library Node Examples - by PatK - 2019-06-24, 00:04
RE: [HOW TO] Library Node Examples - by PatK - 2019-06-24, 18:38
RE: [HOW TO] Library Node Examples - by TimoJ - 2020-01-01, 19:58
RE: [HOW TO] Library Node Examples - by PatK - 2019-12-08, 22:38
RE: [HOW TO] Library Node Examples - by TimoJ - 2020-01-05, 15:21
RE: [HOW TO] Library Node Examples - by dkoh - 2020-11-21, 03:31
[HOW TO] Library Node Examples - by leepenny - 2021-08-24, 14:41
[HOW TO] Library Node Examples - by leepenny - 2021-08-24, 15:37
RE: [HOW TO] Library Node Examples - by DiMag - 2022-02-26, 14:57
RE: [HOW TO] Library Node Examples - by DiMag - 2022-03-10, 09:48
RE: [HOW TO] Library Node Examples - by DiMag - 2022-04-27, 11:00
RE: [HOW TO] Library Node Examples - by DiMag - 2022-04-27, 11:09
RE: [HOW TO] Library Node Examples - by DiMag - 2022-04-27, 12:44
RE: [HOW TO] Library Node Examples - by Zonal - 2022-08-27, 19:05
RE: [HOW TO] Library Node Examples - by DiMag - 2022-04-27, 12:47
RE: [HOW TO] Library Node Examples - by Zonal - 2022-08-27, 19:11
RE: [HOW TO] Library Node Examples - by Zonal - 2022-08-27, 18:40
RE: [HOW TO] Library Node Examples - by DiMag - 2022-09-01, 08:57
RE: [HOW TO] Library Node Examples - by DiMag - 2023-02-13, 17:04
RE: [HOW TO] Library Node Examples - by PatK - 2022-11-11, 03:05
RE: [HOW TO] Library Node Examples - by DiMag - 2022-11-19, 12:16
RE: [HOW TO] Library Node Examples - by PatK - 2022-12-06, 20:08
RE: [HOW TO] Library Node Examples - by DiMag - 2023-01-15, 19:25
RE: [HOW TO] Library Node Examples - by DiMag - 2023-02-13, 13:38
RE: [HOW TO] Library Node Examples - by DiMag - 2023-01-12, 19:28
RE: [HOW TO] Library Node Examples - by DiMag - 2023-03-08, 13:42
RE: [HOW TO] Library Node Examples - by DiMag - 2023-03-10, 16:18
Logout Mark Read Team Forum Stats Members Help
[HOW TO] Library Node Examples5