[opencms-dev] Setting the name of an xml-content page, which is created by the direct edit new-button

David Gran gran at synyx.de
Mon Jan 21 12:39:17 CET 2008


hi list,

i'm looking for a way to give the user the option to set the filename of
a new xml-content page that he created with direct-edit new button.

At the moment i do it in this ugly way:

<%
        Long number = System.currentTimeMillis();
        pageContext.setAttribute("number", number);
%>
<cms:contentload collector="allInFolderPriorityTitleDesc"
param="/profile/profs/${number}.html|PeopleProfilProf" editable="true">
<li>
     <a class="internalLink" href="<cms:link><cms:contentshow
element="%(opencms.filename)" /></cms:link>"><cms:contentshow
element="Name" /></a>
</li>
<br />
</cms:contentload>

when the user now creates a new page via direct-edit new-button, this
page has the actual timestamp as filename.
So is there a way that the user can choose the filename by himself?

Regards
David

-- 
/**
 * David Gran
 *
 * Synyx GmbH & Co. KG
 * OpenSource Solutions
 * Karlstr. 68
 * 76137 Karlsruhe
 *
 * fax   +49(0)721 66 48 877
 * eMail gran at synyx.de
 * www   http://www.synyx.de
 * irc   irc.synyx.de
 *
 * Sitz der Gesellschaft: Karlsruhe
 * Registergericht: Mannheim
 * Handelsregisternummer: HRA 4793
 * USt-IdNr.: DE249264296
 *
 * Komplementärin: Elatech Verwaltungs GmbH
 * Sitz der Gesellschaft: Karlsruhe
 * Geschäftsführer: Markus Daniel
 * Registergericht: Mannheim
 * Handelsregisternummer: HRB 7250
 */





More information about the opencms-dev mailing list