Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Alec Colebrook-Clark 134 posts 258 karma points
    Sep 09, 2009 @ 12:04
    Alec Colebrook-Clark
    0

    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

  • Ron Brouwer 273 posts 768 karma points
    Sep 09, 2009 @ 16:45
    Ron Brouwer
    0

    Can't you just select the periods of time?
    For the letters you can create an xslt extention that returns all of them.

  • Tim 225 posts 690 karma points
    Sep 09, 2009 @ 23:28
    Tim
    0

    OK

    I'm not 100% clear what you are trying to acheive

    You have a structure in your content tree like this:

    Bibliogrpahy
        Period folder
            Bibliography item
            Bibliography item 2
        Period folder 2
            Bibliography item
    etc... 

    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

  • Alec Colebrook-Clark 134 posts 258 karma points
    Sep 10, 2009 @ 09:22
    Alec Colebrook-Clark
    0

    it will be in date order and another list in alphabetical, sorry for the confusion!

     

    Alec

  • Tim 225 posts 690 karma points
    Sep 10, 2009 @ 11:41
    Tim
    0

    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

  • Alec Colebrook-Clark 134 posts 258 karma points
    Sep 11, 2009 @ 09:59
    Alec Colebrook-Clark
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft