Wednesday 25 March 2009 2:45:33 pm
André, thank your very much for the quick answer! OMG I have so much to learn about eZ :) Following your advice, I startet a new module "gka" (what was my plan after finishing that task).
/extension/gka/
- ezinfo.php
- modules/
- - shopuserregister/
- - - module.php
- - - shopuserregister.php
- settings/
- - module.ini.append.php - - site.ini.append.php module.ini.append.php
<?php /*
[ModuleSettings]
ExtensionRepositories[]=gka
ModuleList[]=shopuserregister
*/ ?>
site.ini.append.php
<?php /* #?ini charset="utf-8"?
[ExtensionSettings]
ActiveExtensions[]
ActiveExtensions[]=gka
[RoleSettings]
PolicyOmitList[]=shopuserregister
*/ ?>
module.php
<?php
$Module = array( "name" => "GKAShop",
"variable_params" => true );
$ViewList = array();
$ViewList["shopuserregister"] = array(
"functions" => array( 'buy' ),
"script" => "shopuserregister.php",
'ui_context' => 'edit',
"default_navigation_part" => 'ezshopnavigationpart',
'single_post_actions' => array( 'StoreButton' => 'Store',
'CancelButton' => 'Cancel'
)
);
$FunctionList = array();
$FunctionList['buy'] = array( );
?>
shopuserregister.php is currently just a copy of the original userregister.php plus my new variable from the template. Finally I added an url translator "user/userregister" -> "shopuserregister/shopuserregister" (gka/shopuserregister) did not work. <b>And my new variable finally is in $order.data_text_1 :)</b>
Thank you so much - you made my day! Wewo
|