tough question

I have to implement a specific menu system and I have to say that it's beaten me. Any help at all would be appreciated. The menu system should behave like this:

On the index page, list the titles of the top level sections like this:

section one
section two
section three

when a section is clicked, it will open to reveal it's subsections /but will not navigate to that section/

section one
  subsection a
  subsection b
  subsection c
section two
section three

when clicked again, the menu will close

When the user clicks on a subsection, instead of displaying the rubrique page for that section, it will go straight to the first article in that section. No rubrique pages are to be shown at all.

Some time ago I found the arborescence menu here: http://www.uzine.net/spip_contrib/article.php3?id_article=103&var_recherche=menu and completely failed to bend it to my will (taking out those little arrows and making links work). Now I'm looking at it again and it doesn't work at all.

Thanks for any help.

Leo

Hello Leo,
We have done something pretty similar to what you are looking for...
We just have been obliged to use a bit of php to get it work properly.
Have a look at http://www.cnam.fr/pole-ecogestion/ and its source code.
You got the section with a link, on a click, it opens and shows the
subsections, if you click again, it closes. When you are browsing a
subsection page or an article page of a subsection, the menu stays open at
the right section and the related subsection appears in bold.

Now if you want when you click on a subsection to get the first article, it
is pretty easy:
- you can indeed follow the contrib. here
http://www.uzine.net/spip_contrib/article.php3?id_article=180&var_recherche=
afficher+premier+article that explains you how to directly shows the article
instead of the section page if the section is only containing one article or

- enter a redirection page through the spip admin for the section or
- create a specific template for the subsection page that will publish the
content of the first article

I hope it will helps,
Regards,

Emmanuel VIVIER
Managing Director & Co-Founder
--------------------------------------------
Phone: + (352) 021 472 610 (direct line)
Phone: + (352) 265 308 68
E-mail: emmanuel.vivier @ creadrive.com
Web: http://www.creadrive.com
--------------------------------------------
Creadrive | Web Design, Marketing & Technologies Experts

-----Message d'origine-----
De : spip-en-bounces@rezo.net [mailto:spip-en-bounces@rezo.net] De la part
de Leo
Envoyé : samedi 17 avril 2004 20:36
À : spip-en@rezo.net
Objet : [Spip-en] tough question

I have to implement a specific menu system and I have to say that it's
beaten me. Any help at all would be appreciated. The menu system should
behave like this:

On the index page, list the titles of the top level sections like this:

section one
section two
section three

when a section is clicked, it will open to reveal it's subsections /but
will not navigate to that section/

section one
  subsection a
  subsection b
  subsection c
section two
section three

when clicked again, the menu will close

When the user clicks on a subsection, instead of displaying the
rubrique page for that section, it will go straight to the first
article in that section. No rubrique pages are to be shown at all.

Some time ago I found the arborescence menu here:
http://www.uzine.net/spip_contrib/
article.php3?id_article=103&var_recherche=menu and completely failed to
bend it to my will (taking out those little arrows and making links
work). Now I'm looking at it again and it doesn't work at all.

Thanks for any help.

Leo

_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

On Sunday, Apr 18, 2004, at 07:53 America/Montreal, Emmanuel Vivier wrote:

Hello Leo,
We have done something pretty similar to what you are looking for...
We just have been obliged to use a bit of php to get it work properly.
Have a look at http://www.cnam.fr/pole-ecogestion/ and its source code.
You got the section with a link, on a click, it opens and shows the
subsections, if you click again, it closes. When you are browsing a
subsection page or an article page of a subsection, the menu stays open at
the right section and the related subsection appears in bold.

Now if you want when you click on a subsection to get the first article, it
is pretty easy:
- you can indeed follow the contrib. here
http://www.uzine.net/spip_contrib/article.php3?id_article=180&var_recherche=
afficher+premier+article that explains you how to directly shows the article
instead of the section page if the section is only containing one article or

- enter a redirection page through the spip admin for the section or
- create a specific template for the subsection page that will publish the
content of the first article

I hope it will helps,
Regards,

Emmanuel VIVIER
Managing Director & Co-Founder
--------------------------------------------
Phone: + (352) 021 472 610 (direct line)
Phone: + (352) 265 308 68
E-mail: emmanuel.vivier @ creadrive.com
Web: http://www.creadrive.com
--------------------------------------------
Creadrive | Web Design, Marketing & Technologies Experts

-----Message d'origine-----
De : spip-en-bounces@rezo.net [mailto:spip-en-bounces@rezo.net] De la part
de Leo
Envoyé : samedi 17 avril 2004 20:36
À : spip-en@rezo.net
Objet : [Spip-en] tough question

I have to implement a specific menu system and I have to say that it's
beaten me. Any help at all would be appreciated. The menu system should
behave like this:

On the index page, list the titles of the top level sections like this:

section one
section two
section three

when a section is clicked, it will open to reveal it's subsections /but
will not navigate to that section/

section one
  subsection a
  subsection b
  subsection c
section two
section three

when clicked again, the menu will close

When the user clicks on a subsection, instead of displaying the
rubrique page for that section, it will go straight to the first
article in that section. No rubrique pages are to be shown at all.

Some time ago I found the arborescence menu here:
http://www.uzine.net/spip_contrib/
article.php3?id_article=103&var_recherche=menu and completely failed to
bend it to my will (taking out those little arrows and making links
work). Now I'm looking at it again and it doesn't work at all.

Thanks for any help.

Leo

_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

Somehow I managed to post that last message without any content.

What I had intended to say was this: Emmanuel - it looks great, exactly what I need. What I'm missing is the server side code (spip loops, tags and php). That's that part I've had the most trouble with.

Thanks again,

Leo

On Sunday, Apr 18, 2004, at 07:53 America/Montreal, Emmanuel Vivier wrote:

Hello Leo,
We have done something pretty similar to what you are looking for...
We just have been obliged to use a bit of php to get it work properly.
Have a look at http://www.cnam.fr/pole-ecogestion/ and its source code.
You got the section with a link, on a click, it opens and shows the
subsections, if you click again, it closes. When you are browsing a
subsection page or an article page of a subsection, the menu stays open at
the right section and the related subsection appears in bold.

Now if you want when you click on a subsection to get the first article, it
is pretty easy:
- you can indeed follow the contrib. here
http://www.uzine.net/spip_contrib/article.php3?id_article=180&var_recherche=
afficher+premier+article that explains you how to directly shows the article
instead of the section page if the section is only containing one article or

- enter a redirection page through the spip admin for the section or
- create a specific template for the subsection page that will publish the
content of the first article

I hope it will helps,
Regards,

Emmanuel VIVIER
Managing Director & Co-Founder
--------------------------------------------
Phone: + (352) 021 472 610 (direct line)
Phone: + (352) 265 308 68
E-mail: emmanuel.vivier @ creadrive.com
Web: http://www.creadrive.com
--------------------------------------------
Creadrive | Web Design, Marketing & Technologies Experts

-----Message d'origine-----
De : spip-en-bounces@rezo.net [mailto:spip-en-bounces@rezo.net] De la part
de Leo
Envoyé : samedi 17 avril 2004 20:36
À : spip-en@rezo.net
Objet : [Spip-en] tough question

I have to implement a specific menu system and I have to say that it's
beaten me. Any help at all would be appreciated. The menu system should
behave like this:

On the index page, list the titles of the top level sections like this:

section one
section two
section three

when a section is clicked, it will open to reveal it's subsections /but
will not navigate to that section/

section one
  subsection a
  subsection b
  subsection c
section two
section three

when clicked again, the menu will close

When the user clicks on a subsection, instead of displaying the
rubrique page for that section, it will go straight to the first
article in that section. No rubrique pages are to be shown at all.

Some time ago I found the arborescence menu here:
http://www.uzine.net/spip_contrib/
article.php3?id_article=103&var_recherche=menu and completely failed to
bend it to my will (taking out those little arrows and making links
work). Now I'm looking at it again and it doesn't work at all.

Thanks for any help.

Leo

_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en