in form result page spezielles collected info feld holen

07.09.2008 | eZ Publish

{default collection=cond( $collection_id, fetch( content, collected_info_collection, hash( collection_id, $collection_id ) ), fetch( content, collected_info_collection, has


{default collection=cond( $collection_id, fetch( content, collected_info_collection, hash( collection_id, $collection_id ) ),               
            fetch( content, collected_info_collection, hash( contentobject_id, $node.contentobject_id ) ) )} 
 {set-block scope=global variable=title}{'Form %formname'|i18n('design/standard/content/form',,hash('%formname',$node.name|wash))}{/set-block} 
 <h1>{$object.name|wash}</h1>
  {section show=$error}
  {section show=$error_existing_data} <p>;
{'You have already submitted data to this form. The previously submitted data was the following.'|i18n('design/standard/content/form')}</p>
 {/section}
 {/section}  


{*===== bis hier standard =======  
spezielles Feld aus InfoCollection holen: 
$collection.data_map.<contentclass_attribute_name>.content 
dieses Feld enthält hier eine Node-Id die als Grundlage für einen Fetch dient:   *}  
{def $wp=fetch('content', 'node', hash( 'node_id',$collection.data_map.wp_cmp.content))} 
 <h2>Vielen Dank für Ihre Registrierung.</h2>

 Klicken Sie <a href={$wp.object.data_map.file.content.filepath|ezurl}>hier zum Download des gewünschten Whitepapers.</a><br/> 
{*$wp.object.data_map.file|attribute(show,2)*}  
{/default} 

Analyse

Entwurf

Development

Launch