El mar, 18-04-2006 a las 13:09 -0400, [EMAIL PROTECTED] escribió: > "Jim Douglas" <[EMAIL PROTECTED]> wrote on 04/18/2006 12:53:30 PM: > > I created and deployed a new Publication, how can I get ride of the menu > on > > the left? > > > > How can I change the tabs up top? > > > These pages helped me with that problem: > > http://lenya.apache.org/1_2_x/components/layouts/navigation.html > http://lenya.apache.org/1_2_x/how-to/look_and_feel.html > > > Warning: I am a Lenya noob. Anything I say should be taken with a fistful > of salt. > > On a related subject, I could use pointers on creating my own dynamic > left-hand nav. I need to create a different nav for each page; if there is > no nav-source defined for a page, then it should use the containing > directory's default nav (and so on until it hits the docroot, at which > time it should just get basic default nav stuff). I believe this is a job > for menu.xsl, but I am in the dark about how to go about doing it. Any > help greatly appreciated.
It depends about which menu we are talking about. ;) If we are talking about the left hand align one (not the authoring one) then you will have to follow. http://svn.apache.org/viewcvs.cgi/lenya/trunk/src/pubs/default/sitemap.xmap?rev=390063&view=markup ... <map:match pattern="lenyabody-*/*/*/*/**"> <map:aggregate element="cmsbody"> <map:part src="cocoon://modules/sitetree/{2}/{3}/breadcrumb/{5}.xml"/> <map:part src="cocoon://modules/sitetree/{2}/{3}/tabs/{5}.xml"/> <map:part src="cocoon://modules/sitetree/{2}/{3}/menu/{5}.xml"/> <map:part src="cocoon://modules/sitetree/{2}/{3}/search/{5}.xml"/> <!-- <map:part src="cocoon://modules/{page-envelope:document-type}/{1}.xml"/> --> <!-- e.g. cocoon://modules/xhtml/xhtml.xml according to cocoon.xconf --> <map:part src="{resource-type:format-xhtml}"/> </map:aggregate> ... Follow <map:part src="cocoon://modules/sitetree/{2}/{3}/tabs/{5}.xml"/> and <map:part src="cocoon://modules/sitetree/{2}/{3}/menu/{5}.xml"/> That leads us to http://svn.apache.org/viewcvs.cgi/lenya/trunk/src/modules/sitetree In http://svn.apache.org/viewcvs.cgi/lenya/trunk/src/modules/sitetree/sitemap.xmap?view=markup you will find <!-- navigation element --> <!-- pattern: {pub-id}/{area}/{nav-element}/{url}.xml --> <map:match pattern="*/*/*/**.xml"> <map:generate src="cocoon:/{1}/{2}/sitetree/{4}.xml"/> <map:call resource="fallback-transformation"> <map:parameter name="publication-id" value="{1}"/> <map:parameter name="url" value="{4}"/> <map:parameter name="stylesheet" value="{3}"/> </map:call> </map:match> The resource="fallback-transformation" is declared in the beginning <map:resource name="fallback-transformation"> <map:transform src="fallback://lenya/modules/sitetree/xslt/navigation/{stylesheet}.xsl"> <map:parameter name="url" value="{url}"/> <map:parameter name="root" value="{page-envelope:context-prefix}/{publication-id}/{page-envelope:area}/"/> <map:parameter name="area" value="{page-envelope:area}"/> <map:parameter name="chosenlanguage" value="{page-envelope:document-language}"/> <map:parameter name="defaultlanguage" value="{page-envelope:default-language}"/> <map:parameter name="breadcrumbprefix" value="{page-envelope:breadcrumb-prefix}"/> </map:transform> <map:serialize type="xml"/> </map:resource> The answer to how to change the menu or tab ({stylesheet}) is to place in *your* pub: {yourPub}/lenya/modules/sitetree/xslt/navigation/{stylesheet}.xsl and apply there your custom transformation. HTH salu2 -- thorsten "Together we stand, divided we fall!" Hey you (Pink Floyd) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
