Website module
This commit is contained in:
parent
47cfda6734
commit
3de8381c20
@ -88,4 +88,5 @@ AliasPageAlreadyExists=Alias page <strong>%s</strong> already exists
|
||||
CorporateHomePage=Corporate Home page
|
||||
EmptyPage=Empty page
|
||||
ExternalURLMustStartWithHttp=External URL must start with http:// or https://
|
||||
ZipOfWebsitePackageToImport=Zip file of website package
|
||||
ZipOfWebsitePackageToImport=Zip file of website package
|
||||
ShowSubcontainers=Show included containers
|
||||
@ -180,6 +180,7 @@ if ($action == 'renamefile') $action='file_manager'; // After actions_linkedfil
|
||||
if ($action == 'seteditinline')
|
||||
{
|
||||
dolibarr_set_const($db, 'WEBSITE_EDITINLINE', 1);
|
||||
dolibarr_set_const($db, 'WEBSITE_SUBCONTAINERSINLINE', 0); // Force disable of show included containers
|
||||
header("Location: ".$_SERVER["PHP_SELF"].'?website='.GETPOST('website','alphanohtml').'&pageid='.GETPOST('pageid','int'));
|
||||
exit;
|
||||
}
|
||||
@ -189,6 +190,19 @@ if ($action == 'unseteditinline')
|
||||
header("Location: ".$_SERVER["PHP_SELF"].'?website='.GETPOST('website','alphanohtml').'&pageid='.GETPOST('pageid','int'));
|
||||
exit;
|
||||
}
|
||||
if ($action == 'setshowsubcontainers')
|
||||
{
|
||||
dolibarr_set_const($db, 'WEBSITE_SUBCONTAINERSINLINE', 1);
|
||||
dolibarr_set_const($db, 'WEBSITE_EDITINLINE', 0); // Force disable of edit inline
|
||||
header("Location: ".$_SERVER["PHP_SELF"].'?website='.GETPOST('website','alphanohtml').'&pageid='.GETPOST('pageid','int'));
|
||||
exit;
|
||||
}
|
||||
if ($action == 'unsetshowsubcontainers')
|
||||
{
|
||||
dolibarr_del_const($db, 'WEBSITE_SUBCONTAINERSINLINE');
|
||||
header("Location: ".$_SERVER["PHP_SELF"].'?website='.GETPOST('website','alphanohtml').'&pageid='.GETPOST('pageid','int'));
|
||||
exit;
|
||||
}
|
||||
|
||||
// Add directory
|
||||
/*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user