Jump to content

URL for Custom Module


Recommended Posts

You can use this code:

$meta = new Meta();
$meta->page = 'module-modulename-modulecontroller'; //Edit with your information
$languages = Language::getLanguages(false);
foreach ($languages as $lang) { //Information for each lang
    $meta->title[$lang['id_lang']] = $title[$lang['id_lang']];
    $meta->url_rewrite[$lang['id_lang']] = $url_rewrite[$lang['id_lang']];
}
$meta->save();
Edited by idnovate.com (see edit history)
Link to comment
Share on other sites

2 minutes ago, idnovate.com said:

You can use this code:


$meta = new Meta();
$meta->page = 'module-modulename-modulecontroller'; //Edit with your information
$languages = Language::getLanguages(false);
foreach ($languages as $lang) { //Information for each lang
    $meta->title[$lang['id_lang']] = $title[$lang['id_lang']];
    $meta->url_rewrite[$lang['id_lang']] = $url_rewrite[$lang['id_lang']];
}
$meta->save();

Tyvm, I'll try

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...