Thank you for your reply, Andreas.
I can't see how to add the image in the menu.xslt, as the
image is different for every group and there is no
information on what what page is associated with
a given image.. If you know how I could do that please
give me a hint.
Otherwise, on the long run, I'd prefer to associate the
newly created page to a group that defines the img attributes..
Of course that means that I should
- modify the navigation framework to use the new information
associated with the page referenced by the menu item
- add new fields in the new page form for the group id
- add an action (maybe File->NewMenuGroup) to create and
define the menu groups..
- other??...
I'd grateful if somebody could give me a hint on where
to start for implementing all that..
Best regards.
Andreas Hartmann wrote:
Roberto Nunnari wrote:
Hi all.
I have a new problem and would like some advice on how to
solve it:
The website I'm porting to lenya uses a navigation menu that
is composed of several groups divided by images:
-------------------------------------------------------------
| logos and images (template) lang1 lang2 |
-------------------------------------------------------------
¦ group1 image | content text goes here | template text |
| menuitem1 | content text goes here | and images |
| menuitem2 | content text goes here | |
| menuitem2a | ... | |
| menuitem2b | | |
| menuitem2c | | |
| menuitem3 | | |
¦ group2 image | | |
| menuitem4 | | |
| menuitem5 | | |
¦ group3 image | | |
| menuitem6 | | |
| menuitem7 | | |
| menuitem8 | | |
| menuitem9 | | |
| | | |
-------------------------------------------------------------
The solution that comes to my mind is that of associating
each page to a group that defines all the img attributes
(src, alt, width, height, ...) so that when the xsl generates
the page it knows where to insert the group image..
For a start, you can include the image information in the
menu XSLT (see documentation about the navigation framework).
For a more sophisticated approach, you would have to build
your own menu generation component which can access your image
configuration. Unfortunately, this can't be done with the
navigation framework.
Also, some of the menu items, link to an external page.. how
are you supposed to manage that?
Sitetree nodes support a "href" attribute for this purpose.
But I think there's no GUI support yet, so you would have to
add them to sitetree.xml manually.
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Roberto Nunnari -software engineer-
mailto:[EMAIL PROTECTED]
http://www.nunnisoft.ch
Residenza Boschetto 12 tel/fax: +41-91-6046511
6935 Bosco Luganese """ mobile: +41-76-3208561
Switzerland (o o)
========================oOO==(_)==OOo========================
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]