Im working on a bibliography and decided that the best way to categorise the node is to use a folder for each period. The bibliography needs to be broken up in two ways. Alphabetical and Chronological. The ideas that we have come up with is using Ajax and ASP as i cant see a visible way that i can use XSLT to do this (i can limit what is displayed but i cant for the life of me figure out how to create a navigation so show the other periods of time or letters.)
Whats the best way to proceed with this project? And what is the easiest/best way to create it?
In the alphabetised list, simple write you xpath to return all the bibliography items in the bibliography.
Then apply the <xsl:sort> to grab them in alpha order.
Additionally you can use the <xsl:sort> method to sort by date (I'm assuming you have a date field or are using the uploaded date?)
For full details on how to use <xsl:sort> take a look at this excellent tutorial
If you want fuller examples of xpath and xslt, let me know what your exact structure is and the desired output for the lists and I can knock you up an example. However I suspect you can figure it out!
I can use the <xsl:sort> and have done (with limiting factors, i.e earlier than 1930 dont show) However thats only half the problem as i have to also provide the option to browse the nodes in alphabetical by author. The problem lies in how to offer both options using only one page, that way i wont have to duplicate the main bibliography page.
In essence i want to try and achieve something, that i deem complex, because i want to advance my skills and have a cleaner site architecture!
Best practice and Ideas
Howdy
Im working on a bibliography and decided that the best way to categorise the node is to use a folder for each period. The bibliography needs to be broken up in two ways. Alphabetical and Chronological. The ideas that we have come up with is using Ajax and ASP as i cant see a visible way that i can use XSLT to do this (i can limit what is displayed but i cant for the life of me figure out how to create a navigation so show the other periods of time or letters.)
Whats the best way to proceed with this project? And what is the easiest/best way to create it?
Thanks for any help!
Alec
Can't you just select the periods of time?
For the letters you can create an xslt extention that returns all of them.
OK
I'm not 100% clear what you are trying to acheive
You have a structure in your content tree like this:
On the front end do you want to display a list of bibliograhpy items in order of period and then in alphabetical order under each period?
OR
Do you want to display the Bibliography items in date order and have another list in alphabetical order?
If you define a bit more what you are trying to do I can suggest some possible solutions.
Tim
it will be in date order and another list in alphabetical, sorry for the confusion!
Alec
Hi Alec,
You should be able to use <xsl:sort> for this.
In the alphabetised list, simple write you xpath to return all the bibliography items in the bibliography.
Then apply the <xsl:sort> to grab them in alpha order.
Additionally you can use the <xsl:sort> method to sort by date (I'm assuming you have a date field or are using the uploaded date?)
For full details on how to use <xsl:sort> take a look at this excellent tutorial
If you want fuller examples of xpath and xslt, let me know what your exact structure is and the desired output for the lists and I can knock you up an example. However I suspect you can figure it out!
Tim
Hi Tim,
I can use the <xsl:sort> and have done (with limiting factors, i.e earlier than 1930 dont show) However thats only half the problem as i have to also provide the option to browse the nodes in alphabetical by author. The problem lies in how to offer both options using only one page, that way i wont have to duplicate the main bibliography page.
In essence i want to try and achieve something, that i deem complex, because i want to advance my skills and have a cleaner site architecture!
Thanks
Alec
is working on a reply...