E107: Change Breadcrumb name on gallery plugin

Created on 13 Oct 2017  路  8Comments  路  Source: e107inc/e107

i have modified in e107_plugins/gallery/template/gallery_template.php
$GALLERY_TEMPLATE['list']['caption'] = LAN_PLUGIN_GALLERY_TITLE;
in
$GALLERY_TEMPLATE['list']['caption'] = LAN_PLUGIN_GALLERY_NEWTITLE;
now in
../e107_plugins/gallery/languages/English_global.php
i have added this row

define("LAN_PLUGIN_GALLERY_NEWTITLE", "Collection");

but the breadcrumb and the catpion don't change i see "gallery" not "Collection"

bug

Most helpful comment

It's not limited, those are the core ones during upgrade. See the banner plugin.xml for an example.

All 8 comments

It is not that easy as LAN_PLUGIN_GALLERY_TITLE is used on multiple positions throughout files.. Your case would be using (change aka hacked/renamed plugin) the lang file; template; xml file; admin_gallery; controllers/index and e_shortcode, and some more to reflect each change ( about 15 i guess) The above mentionded is NOT enough.

ok i do some test, but ok, is a very good solution if in admin-panel of e107 the admin can create a new "media owner"

media_owner should be plugin name, so you need to set this in plugin.xml

OK Jimmi08. but I do not know how to do. can you send me an example?

Hm, I am maybe wrong. Its limited.

        $this->restricted = array(
            "_common"   => "_common",
            "_icon"     => "_icon",
            "news"      => "news",  
            "page"      => "page",
            "download"  => "download"                   
        );

It's not limited, those are the core ones during upgrade. See the banner plugin.xml for an example.

That should fix it @kreossino . Please let me know how it goes.

for me is perfect!!! thank you 馃槣

Was this page helpful?
0 / 5 - 0 ratings