Hi Aurimas, Hi Kai,

I see, I've misunderstood the mechanism.

Now it is working, but I'm still a little bit wondering. Here my way to
solve it:

I've now added this section to the file metadata.php (as first _without_
any entries for extend)
'files'     => array(
                        'oxprobs_articles' =>
'oxprobs/oxprobs_articles.php',
                        'oxprobs_delivery' =>
'oxprobs/oxprobs_delivery.php',
                        'oxprobs_groups'   => 'oxprobs/oxprobs_groups.php',
),

After that the modules will be loaded, but the menu is missing / not loaded.

Therefore I added the following extend section (but with only one class)
    'extend'       => array(
'oxadmindetails' => 'oxprobs/oxprobs_articles'
        ),

Now activate/deactivate works fine and the menu is shown as well

Thanks to all for the help!

Joachim


2012/6/27 Aurimas Urbonas <[email protected]>

> Hi,
> Kai was right, you misunderstood the extension concept in oxid. You don't
> need to register "extension" in this case, because you are not changing
> oxid behaviour but adding new behaviour.
>
> You can use Kai's suggested solution, or if you want to keep everything
> under modules dir you can do the following:
>
> your controller classes should extend oxAdminDetails:
>     class oxprobs_articles extends oxAdminDetails
>
> if you keep them in modules/oxprobs, then in you metadata.php you need to
> tell oxid autoloader where it should look for class oxprobs_articles
> $aModule = array(
> ...
> 'files' => array(
>  'oxprobs_articles' => 'oxprobs/oxprobs_articles.php'
> )
>
> Best Regards,
>
> Aurimas
>
>
>
> On Wed, Jun 27, 2012 at 9:35 AM, Joachim Barthel <[email protected]
> > wrote:
>
>> Hi Kai,
>>
>> thanks a lot for your support. The module is running for all versions
>> from 4.3 to 4.5, you can see here some 
>> screenshots<http://code.google.com/p/oxprobs/wiki/Screenshots>.
>> Menue.xml, .tpl's , own directory under modules etc. all of them is there,
>> _only_ the registration in 4.6 with metadata.php makes trouble.
>>
>> Joachim
>>
>>
>> 2012/6/26 Kai Gazmaga <[email protected]>
>>
>>> I guess you missunderstood - if I understand you right. If you want to
>>> have NEW Items you should overload oxadmindetails, but you must put your
>>> new classes to the folder /admin where all the admin-view-classes are
>>> stored. Additionaly you must write a fitting template and place it in
>>> /out/admin/tpl and finaly you have to provide a menue.xml where you define
>>> the position / structure of your extension.****
>>>
>>> By the way: did your extension show up in the backend inShops < 4.6?
>>> Without a menue.xml I can not really believe that.****
>>>
>>> ** **
>>>
>>> If you need further help have a look at my very small module vdService -
>>> you can download it here: http://www.vektordesign.de/downloads There
>>> you find all the necessary parts of a backend-extension. If you have
>>> further questions feel free to give me a call or go on writing here in the
>>> list. ****
>>>
>>> ** **
>>>
>>> Gruß, Kai****
>>>
>>> ** **
>>>
>>> ** **
>>>
>>> *Vektor*Design - Online-Shops und Programmierung****
>>>
>>> ** **
>>>
>>> Kai Gazmaga
>>> Katharinenstraße 57
>>> 73 728 Esslingen****
>>>
>>> ** **
>>>
>>> Tel.: +49 711 - 25516226
>>> Fax: +49 711 - 25518078****
>>>
>>> ** **
>>>
>>> Mail: [email protected]
>>> Web: www.vektordesign.de****
>>>
>>> ** **
>>>
>>> ** **
>>>
>>> ****
>>>
>>> *
>>> *
>>>
>>
> _______________________________________________
> dev-general mailing list
> [email protected]
> http://dir.gmane.org/gmane.comp.php.oxid.general
>
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to