WIP Enhance menu editor with showtopmenuinframe
This commit is contained in:
parent
8a26f0d6a3
commit
25d7c47ce3
5 changed files with 21 additions and 0 deletions
|
|
@ -380,6 +380,12 @@ if ($action == 'create') {
|
|||
print '<tr><td class="fieldrequired">'.$langs->trans('URL').'</td>';
|
||||
print '<td><input type="text" class="minwidth500" name="url" value="'.dol_escape_htmltag(GETPOST("url", 'alphanohtml')).'"></td><td>'.$langs->trans('DetailUrl').'</td></tr>';
|
||||
|
||||
// Show URL into a frame
|
||||
if (getDolGlobalString("MAIN_SHOW_TOP_MENU_URL_IN_FRAME")) {
|
||||
print '<tr><td class="fieldrequired">'.$langs->trans('ShowTopMenuURLIntoAFrame').'</td>';
|
||||
print '<td><input type="checkbox" name="showtopmenuinframe" value="'.dol_escape_htmltag(GETPOST("showtopmenuinframe", 'alphanohtml')).'"></td><td></td></tr>';
|
||||
}
|
||||
|
||||
// Picto
|
||||
print '<tr><td>'.$langs->trans('Image').'</td>';
|
||||
print '<td><input type="text" class="minwidth300" name="picto" value="'.dol_escape_htmltag(GETPOST("picto", 'alphanohtml')).'"></td><td>'.$langs->trans('Example').': fa-global</td></tr>';
|
||||
|
|
@ -505,6 +511,12 @@ if ($action == 'create') {
|
|||
print '<tr><td class="fieldrequired">'.$langs->trans('URL').'</td>';
|
||||
print '<td><input type="text" class="quatrevingtpercent" name="url" value="'.dol_escape_htmltag($menu->url).'"></td><td>'.$langs->trans('DetailUrl').'</td></tr>';
|
||||
|
||||
// Show URL into a frame
|
||||
if (getDolGlobalString("MAIN_SHOW_TOP_MENU_URL_IN_FRAME")) {
|
||||
print '<tr><td class="fieldrequired">'.$langs->trans('ShowTopMenuURLIntoAFrame').'</td>';
|
||||
print '<td><input type="checkbox" name="showtopmenuinframe" value="'.dol_escape_htmltag($menu->showtopmenuinframe).'"></td><td></td></tr>';
|
||||
}
|
||||
|
||||
// Picto
|
||||
print '<tr><td class="fieldrequired">'.$langs->trans('Image').'</td>';
|
||||
print '<td><input type="text" class="minwidth300" name="picto" value="'.dol_escape_htmltag($menu->prefix).'"></td><td>'.$langs->trans('Example').': fa-global-america';
|
||||
|
|
|
|||
|
|
@ -100,6 +100,11 @@ class Menubase
|
|||
*/
|
||||
public $url;
|
||||
|
||||
/**
|
||||
* @var int 1=Allow to show the top menu URL into a frame
|
||||
*/
|
||||
public $showtopmenuinframe;
|
||||
|
||||
/**
|
||||
* @var string Target of Url link
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -244,3 +244,5 @@ ALTER TABLE llx_contratdet DROP COLUMN price_ht;
|
|||
ALTER TABLE llx_contratdet DROP COLUMN remise;
|
||||
|
||||
ALTER TABLE llx_extrafields ADD COLUMN aiprompt text;
|
||||
|
||||
ALTER TABLE llx_menu ADD COLUMN showtopmenuinframe integer DEFAULT 0;
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ CREATE TABLE llx_menu
|
|||
fk_leftmenu varchar(100), --
|
||||
position integer NOT NULL, -- Sort order of entry
|
||||
url TEXT NOT NULL, -- Relative (or absolute) url to go
|
||||
showtopmenuinframe integer DEFAULT 0, -- 1=If url is an external url, can show the URL inside a frame
|
||||
target varchar(100) NULL, -- Target of Url link
|
||||
titre varchar(255) NOT NULL, -- Key for menu translation
|
||||
prefix varchar(255) NULL, -- picto
|
||||
|
|
|
|||
|
|
@ -2662,3 +2662,4 @@ MULTICURRENCY_APP_ENDPOINT=API endpoint URL to get live multicurrencies from a s
|
|||
NoWebsite=No website
|
||||
UploadName=Upload
|
||||
MAIN_SECURITY_MAXFILESIZE_DOWNLOADED=Max size of downloaded files
|
||||
ShowTopMenuURLIntoAFrame=Show the top menu URL into a frame
|
||||
|
|
|
|||
Loading…
Reference in a new issue