View Full Version : Artist names as sorted
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
> 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
> 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
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
> 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
> 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
Yes ;-)
Thx.
About the second question: Is there a documentation about the available preferences/preference tags?
Joerg
> About the second question: Is there a documentation about the available
> preferences/preference tags?
Hmm... the code? :-/
> About the second question: Is there a documentation about the available
> preferences/preference tags?
Hmm... the code? :-/
No TT code anymore :-(
I DID try to find preferences in all the js code, yet it's a bit distributed...
[% USE Prefs %]
[% articles = preferences('server').get('ignoredarticles') %]
Looks good, yet doesn't work, returns undefined.
That would have to be
[% USE Prefs %]
[% articles = Prefs.preferences('server').get('ignoredarticles') %]
;-)
> 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
> 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?
I believe he was asking whether contributors.namesort is available within TT templates?
I believe he was asking whether contributors.namesort is available within TT templates?
More or less: yes. But it isn't, isn't it?
Found it. item.anchor has what I need, it's set for the first item with a new character and contains that character.
Powered by vBulletin® Version 4.1.12 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.