11-18-2009 07:59 AM
11-23-2009 04:09 AM
11-26-2009 11:26 AM
<types>
<type name="custom:Ticket">
<title>Ticket</title>
<parent>cm:content</parent>
<properties>
<property name="custom:Lien">
<title>Lien</title>
<type>cm:link</type>
<mandatory>true</mandatory>
</property>
</properties>
</type>
</types>
J'ai donc utilisé cm:noderef (le type qu'utilise cm:link), il m'ajoute bien une case "Lien" mais elle reste grisée.12-08-2009 05:23 AM
12-23-2009 10:39 AM
<mimetype mimetype="text/url" text="true" display="URL">
<extension default="true">url</extension>
</mimetype>
<!– The list of mime types that can be created inline –>
<create-mime-types>
<mime-type name="text/html" />
<mime-type name="text/plain" />
<mime-type name="text/xml" />
<mime-type name="text/url" />
</create-mime-types>
<!– Definition of the Create Content wizard –>
…
<step name="content"
…
<condition if="#{CreateContentWizard.mimeType == 'text/url'}">
<page path="/jsp/content/create-content-wizard/create-url.jsp"
title-id="create_content_step2_title"
description-id="create_content_step2_desc"
instruction-id="default_instruction" />
</condition>
…
</step>
<step name="summary" title-id="summary" description-id="summary_step_description">
<condition if="#{CreateContentWizard.mimeType == 'text/url'}">
<page path="/jsp/content/create-content-wizard/summary-url.jsp"
title-id="summary"
description-id="summary_desc"
instruction-id="content_finish_instruction" />
</condition>
<page path="/jsp/wizard/summary.jsp"
title-id="summary"
description-id="summary_desc"
instruction-id="content_finish_instruction" />
</step>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
<hutputText value="Adresse URL: (avec son protocole)" />
<h:inputText value="#{WizardManager.bean.content}" style="width: 450px;" />
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
<script language="javascript" type="text/javascript">
document.getElementById("wizard:wizard-body:_idJsp18").value = "<html><head><title>Redirection</title><meta http-equiv=\"refresh\" content=\"0; URL="+ document.getElementById("wizard:wizard-body:_idJsp18").value + "\"></head></html>";
</script>
<hutputText value="#{WizardManager.bean.summary}" escape="false"/>
<h:inputHidden value="#{WizardManager.bean.content}" />
<script type="text/javascript">
window.onload = function() { document.getElementById("wizard:finish-button").focus(); }
</script>
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.