Hi community,
I am designing a wiki, which has information about a number of countries. Each country is a page with various pages defining sections, i.e. overview, geography, etc. The user must be able to add sections by just putting in an extra title in a country's page. I want the user to be able to either navigate by country i.e. just go to a country's wiki page. Or to view all overviews, all geography, etc. The problem is that the countries do not all have the same sections. I have attached a dummy object to all country pages so that I can generate a list of countries automatically. I have also written some code that given a section title I can display all the sections from all the countries. Now all I need is to be able to generate a list of all the section titles. If I could make some kind of array I could do this easily. I would just loop through all countries and all sections adding the title to my list if it was not already in the list. Is this possible? I did try a very unorthodox approach whereby I would have stored all the individual titles as titles in a separate wiki document but this didn't work because the setSectionTitle method didn't seem to do anything. If anyone can suggest a way to implement my automatically generated list or even a completely different way to implement this I would very much appreciate it Thanks, Brian Brian Burns Technical Author Digital TV Labs Tel: +44 (0)117 915 4018 | E-mail: <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] | Add: Venturers House, Kings Street, Bristol, BS1 4PB, United Kingdom | Web: <http://www.digitaltv-labs.com> www.digitaltv-labs.com Digital TV Labs is a limited company registered in England and Wales | Registered number 05556060 | Registered office: University Gate East, Park Row, Bristol, BS1 5UB, United Kingdom| VAT no: 869505581 _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
