I'd like a helping hand, if possible, with a little extra configuration of the archive list. I hope this is the correct subforum for this question.
I'd like to have the archive list printed in ascending order, with entry titles only.
As I understand from the docs, the following code should be used:
- Code: Select all
[[archive_list order='asc' format='<li><a href="%url%"><em>NUMERAL</em> <strong>%title%</strong></a></li>']]
Now, I'd like NUMERAL to be the entry # (UID?) in Roman Numerals.
Although I am by no means a coder, PHP scripts for arabic > roman numeral conversion out there abound, and are easy enough to understand even to a layman as myself. I picked, for example http://www.go4expert.com/forums/showthread.php?t=4948 - now however, I'd like to know, how I can tie this conversion script into the archive list.
I'd have to get the UID for each entry in the archive list, convert it to a roman numeral, and then print it in between the em tags in the archive list formatting.
Is that train of thought correct?
So I'd set it up like this:
- Code: Select all
[[archive_list order='asc' format='<li><a href="%url%"><em><?php print numberToRoman(%uid%); ?> <strong>%title%</strong></a></li>']] -
as according to the pivotX documentation, %uid% is supposed to return the UID of a given entry.
Am I supposing all of this correctly? Or can %uid% not be used this way in an archive list?
Thanks!