The new 1.3.0 looks very interesting, especialy the plug in feature ...
If I create a new module in inc_module and if I set '$_module_contentpart = true;' in module.default.php then the new module is listed inside my content part list at article information. As far as good, but in site structure we make a content part selection. Inside the content part list there is only one 'plug-in' entry listed instead of 'plug-in: A', 'plug-in: B'. This makes it impossible to assign different plug-ins to a structure I am not familiar with 1.3.0 therefore I can not decide if this is a bug or a feature
Br
Wolfgang
[1.3.0] Enhanced plug in list of content part selection ...
- Oliver Georgi
- Site Admin
- Posts: 9907
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
you have to set correct default values including a unique module name.
module.default.php
And additionally the following 2 translations are obligate
I will implmenet a "register module" section on coming new project site.
Oliver
module.default.php
Code: Select all
// register module name
//DO NOT USE SPECIAL CHARS HERE, NO WHITE SPACES, USE LOWER CASE!!!
$_module_name = 'internal_module_name';
// module type - defines where used
// 0 = BE and FE, 1 = BE only, 2 = FE only
$_module_type = 0;
// Set if it should be listed as content part
// has content part: true or false
$_module_contentpart = true;
Code: Select all
$BLM['backend_menu'] = 'Module menu enry';
$BLM['listing_title'] = 'Module name'; //is used for content part select menu
Oliver
I did, but the problem is not the list of content parts at article information. There the new content part appears as expected. The problem is the list in site structure. There you can assign the content parts. In this list there is only 'plug in' listed, but it would be more comfortable if we will see all available plug ins listed in this list.
Br
Wolfgang
Br
Wolfgang
Code: Select all
Module/Plug-in
// register module name
//DO NOT USE SPECIAL CHARS HERE, NO WHITE SPACES, USE LOWER CASE!!!
$_module_name = 'FeWo';
// module type - defines where used
// 0 = BE and FE, 1 = BE only, 2 = FE only
$_module_type = 0;
// Set if it should be listed as content part
// has content part: true or false
$_module_contentpart = true;
Code: Select all
// first define main language vars
$BLM['backend_menu'] = 'FeWo';
$BLM['listing_title'] = 'FeWo';
$BLM['create_new'] = 'Create FeWo';
$BLM['title'] = 'Title FeWo';
$BLM['fewo_name'] = 'Name';
- Oliver Georgi
- Site Admin
- Posts: 9907
- Joined: Fri 3. Oct 2003, 22:22
- Contact: