AW: [opencms-dev]

René Toller R.Toller at decadis.de
Thu Dec 7 13:18:43 CET 2006


The <cms:contentload collector="..." param="..."> doesn't work for me, cause I need to write it into a variable and therefore execute it within the java code.

That's the code so far:


[<%
[// Create a JSP action element
[CmsJspXmlContentBean cms = new CmsJspXmlContentBean(pageContext, request, response);
[
[// Get a simple navigation of all pages / subfolders in the current folder 
[List list = cms.getNavigation().getNavigationForFolder();
[Iterator i = list.iterator();
[
[ out.println("<hr noshade=\"noshade\" size=\"1\"><ul>"); 
[
[while (i.hasNext()) {
[
[	CmsJspNavElement ne = (CmsJspNavElement)i.next();
[
[
[	String nav_file = ne.getTitle();
[       String current_file = cms.property("Title");
[	String child_of = cms.property("Title",cms.contentshow(cms.contentload("singleFile",!--??Missing?--,false),"child_of")); 
[       
[
[if ( nav_file.equals(current_file) || nav_file.equals(child_of) ) {

If I use: 
[String child_of = cms.property("Title","/decadis.de/teams/teamkomp.html");

But that's static and therefore only works for 1 site, not for all...

You can see I try to read out the Title of a page X defined I a content "child_of" in page Y






René Toller
-------------
Decadis AG

Pfuhlgasse 21         Tel:      
56068 Koblenz         Fax:     
                      Mobil:   
www.decadis.de        Email:   r.toller at decadis.de
--------------------------------------------------- 

Der Inhalt dieser Email oder eventueller Anhänge ist ausschließlich für den bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein sollten, so beachten Sie bitte, dass jede Form der Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des Inhalts dieser E-Mail unzulässig ist. Wir bitten Sie, sich in diesem Fall mit dem Absender der E-Mail in Verbindung zu setzen und diese Mail anschließend zu löschen.

The information contained in this email is intended solely for the addressee. If you are not the intended recipient, any form of disclosure, reproduction, distribution or any action taken or refrained from in reliance on it, is prohibited and may be unlawful. Please notify the sender immediately.



-----Ursprüngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Christoph Schönfeld
Gesendet: Donnerstag, 7. Dezember 2006 12:55
An: The OpenCms mailing list
Betreff: Re: [opencms-dev]

Hi René,

try this:

<cms:contentload collector="..." param="...">
  <a href="<cms:link><cms:contentshow 
element="${opencms.filename}"/></cms:link>">link to the currently file</a>
</cms:contentload>

Best regards,
Christoph


_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev



More information about the opencms-dev mailing list