This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Extensions » ezxmlinstaller: main_node_id unknown...
expandshrink

ezxmlinstaller: main_node_id unknown in namespace ''

ezxmlinstaller: main_node_id unknown in namespace ''

Thursday 05 July 2012 11:42:43 pm - 1 reply

hi all,

I altered a script to be used with ezxmlinstaller as follows:

{set $tpl_info = hash( 

'main_node_id', hash( 'info',     'Node ID of the teamroom'|i18n('ezteamroom/creation'),                              'type',     'integer'                            ),       

'owner_object_id',  hash( 'info',     'ObjectID of the teamroom owner'|i18n('ezteamroom/creation'),                                  'type',     'integer'                            )                           

)}
{def      $publicSectionID = ezini( 'TeamroomSettings', 'PublicSectionID', 'teamroom.ini' )     

$class_identifier_map = ezini( 'TeamroomSettings', 'ClassIdentifiersMap', 'teamroom.ini' )}
{set-block variable='xml_data'}
<eZXMLImporter>
    <ProccessInformation comment="Create content" />    <CreateContent parentNode="{$main_node_id}">

...

...

</eZXMLImporter>

{/set-block}

{undef} 

I also have enabled settings for development as seen on 

http://share.ez.no/blogs/thiago-campos-viana/tip-site.ini.append.php-settings-for-development

I then attached a "feature select" attribute to the class I wish to have the script executed with. When I view a content object I get the following error:

Unknown template variable 'main_node_id' in namespace ''

Thus the script cannot work. I'd appreciate very much any hints for finding a solution.

Best wishes

Sebastian

Modified on Thursday 05 July 2012 11:47:30 pm by Sebastian Schoeller

Friday 06 July 2012 6:53:43 pm

found the mistake. Error in XML sequence. Found it after running script manually. Sorry to bother.
Best wishes
Sebastian

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from