Archives Tree (update 1)

Update [2005-07-19]

Please visit http://vitorazevedo.com/archives-tree/ and let me know what you think!

If you know something about .php and a little about javascript, then I need your help:
I want to create an “Archives Tree” plugin for my WordPress blog with the structure described in this picture:
Archives Tree Plugin The image is self-explanatory.
I think it would be a good way to browse the archives, and faster than Ajax scripts like Super Archives (that I use and that I think are great but… slow).

Javascript to build the tree? Maybe Destroydrop or Gazinzus that automatically converts any list (ordered or unordered) into a tree.
So the real job is to create the .php code that outputs archives in the form of

< ul>
< li>2005< /li>
< /ul>< ul>Month
< li>January< /li>
< li>Feb
< /ul>

The Nice Archives plugin that I use already has a similar code. But unfortunately my poor coder skills were unable to produce a working solution.
Maybe you can help me?

Comments Closed

9 Comments

  1. Well, I guess it is not much hard to do… Just one thing: only the post titles are supposed to be links (to the single posts)?

  2. Exactly!
    Thanks (again) for you fast feedback!

  3. Não é bem a mesma coisa, mas pode ser que o código sirva de exemplo: Google Sitemap.

  4. Não está mal, não senhor. :smile:

  5. @Bruno e Marco: obrigado pela sugestão/feedback

    Já tenho o plugin pronto. Estou agora a tentar torná-lo mais bonito. Penso que vai ser útil na sidebar do blog (mostrando os x ultimos posts de cada categoria, sendo este x personalizavel, claro) ou então numa página reservada a arquivos onde se mostram todos os posts de cada categoria.

  6. Nice looking =) Was any of my tips useful?

  7. @JC: Decidi seguir outro caminho (mais fácil) modificando um script da Christine Davis. Mas um obrigado pelas sugestões.

    @Zé Tony: a árvore não chega. É preciso povoá-la com conteúdo. Para isso pareceu-me mais fácil a conversão de listas ul/ol do Gazingus.