Does anybody know if it's possible (from the HTML I/F) to access the artist "as sorted" or to get access to the list of ignored articles ("ignoredarticles")?
If there a documentation of preference settings, it's not in the CLI doc and I can't find it in the wiki.
Thx in advance
Joerg
Results 1 to 10 of 12
Thread: Artist names as sorted
-
2007-12-20, 06:24 #1
Artist names as sorted
-
2007-12-20, 07:11 #2
Artist names as sorted
> Does anybody know if it's possible (from the HTML I/F) to access the
> artist "as sorted"
I'm not sure I understand what you want. Isn't the artist list sorted?
> or to get access to the list of ignored articles
> ("ignoredarticles")?
The list of ignored articles can be requested by using a "pref" CLI call over JSON/RPC. JSON/RPC is the Swiss Army knife to access any aspect of SC over http.
Michael
-
2007-12-20, 08:11 #3
Thanks, I DID understand, that CLI can do it. However, I need access from HTML, not JavaScript.
What I want to do is build header rows to separate the sorted list, for example to have a "R" before Radiohead, Rolling Stones...
Problem is to find out, where "Q" ends and "R" begins because you can't just use the first character of the artist name since, for "The Rolling Stones" that would be a "T"...
If I want to skip articles by myself (bad enough) I first have to know what they are...
So... any ideas?
Joerg
-
2007-12-20, 08:23 #4
Artist names as sorted
> Thanks, I DID understand, that CLI can do it. However, I need access
> from HTML, not JavaScript.
You mean using TT?
[% USE Prefs %]
[% articles = preferences('server').get('ignoredarticles') %]
Michael
-
2007-12-20, 09:31 #5
-
2007-12-20, 09:41 #6
Artist names as sorted
> About the second question: Is there a documentation about the available
> preferences/preference tags?
Hmm... the code? :-/
-
2007-12-20, 10:07 #7
-
2007-12-21, 03:39 #8
That would have to be
[% USE Prefs %]
[% articles = Prefs.preferences('server').get('ignoredarticles') %]
;-)
-
2007-12-21, 04:09 #9
Artist names as sorted
> That would have to be
Ooops, sorry. Simplified my example too much :-/.
If in doubt often a grep over the HTML folder will get you some working code.
Michael
-
2007-12-21, 12:54 #10Senior Member
- Join Date
- Apr 2005
- Location
- Colorado
- Posts
- 10,073

Reply With Quote

