I have created an XML Form builder application for publishing the news on my portal.
When I click on the news details a popup appears.
I MUST open the detail page in no popup page
in the ETC/xmlforms/"My XML project"/"My XML project"RenderListItem.xsl i have this section
MAIN ITEM TEMPLATE
-->
- <xls:template name="item">
+ <table width="100%" cellpadding="0" cellspacing="0">
<xls:template>
+ <!-- -->
+ <xsl:template match ="gare">
</XSL:stylesheet>
<b>i modify it in this way</b>
- <xls:template name="item">
<b><script language="javascript">
var redirUrl = "http://"portalname":"portalport"/irj/portal/pcd!3portal_content!2Marco!2nientepopup!2nientepopupiview";
function redir() { self.location.href = redirUrl; }
</script></b>
+ <table width="100%" cellpadding="0" cellspacing="0">
<xls:template>
+ <!-- -->
+ <xsl:template match ="gare">
</XSL:stylesheet>
Now i must call the javascript function in the file ETC/xmlforms/"My XML project"/"My XML project"-GUIModelRenderListItem i have this section
<image id="1173979086594" minwidth="1" minheight="1" translate="alternate,linkdesc" url="%contentaccess%/documents/prove/Sibilla delfica.jpg" <b> href="display" "javascript:redir()"</b> condition="" display="realsize" align="" valign="top" empty="emptyColumn" alternate="" linkdesc="" border="0" header="false" translate_alternate="auto" translate_linkdesc="auto" schemaRef="/DataSchema/popup/foto" propertyRef="" x="32" y="16" width="40" height="40" offsetX="32" offsetY="16"/>
<b>my modification is in bold.</b>
Is all right????