Indice (TOC)
Nessuna testata
var ub =uri.decode(__request.args['beechuri']) ?? "/";
var up = uri.parts(site.uri..string.remove(string.tolower(ub),0,1));
var u = up.path;
/* if the uri contain escaped chars mt generate a full uri index.php?title=... */
if (#up.query.title>0) {
let u = string.split(up.query.title,"/");
}
var lang="italiano/strumenti";
if(u[1]=="english") let lang="english/Instruments";
var fields = [
{ type:'html_text', label: 'Titolo News Evidenza: ', field: 'titolo_evidenza' },
{ type:'html_text', label: 'Sottotitolo News Evidenza: ', field: 'sottotitolo_evidenza' },
{ type: 'html_link', label: 'Link Evidenza: ', field: 'link_evidenza'},
{ type:'html_text', label: 'Titolo News1: ', field: 'titolo1' },
{ type:'html_text', label: 'Sottotitolo News1: ', field: 'sottotitolo1' },
{ type: 'mtsid_page', label: 'Link news1: ', field: 'link_news1', pathsearch: ["Web/"..lang.."/News/*"]},
{ type:'html_text', label: 'Titolo News2: ', field: 'titolo2' },
{ type:'html_text', label: 'Sottotitolo News2: ', field: 'sottotitolo2' },
{ type: 'mtsid_page', label: 'Link news2: ', field: 'link_news2', pathsearch: ["Web/"..lang.."/News/*"]},
{ type:'html_text', label: 'Titolo News3: ', field: 'titolo3' },
{ type:'html_text', label: 'Sottotitolo News3: ', field: 'sottotitolo3' },
{ type: 'mtsid_page', label: 'Link news3: ', field: 'link_news3', pathsearch: ["Web/"..lang.."/News/*"]},
{ type:'html_text', label: 'Titolo News4: ', field: 'titolo4' },
{ type:'html_text', label: 'Sottotitolo News4: ', field: 'sottotitolo4' },
{ type: 'mtsid_page', label: 'Link news4: ', field: 'link_news4', pathsearch: ["Web/"..lang.."/News/*"]},
{ type:'html_text', label: 'Titolo News5: ', field: 'titolo5' },
{ type:'html_text', label: 'Sottotitolo News5: ', field: 'sottotitolo5' },
{ type: 'html_link', label: 'Link News5: ', field: 'link_news5'}
];
<div id="DivFormContainer" class="DivFormContainer-left">
XsysPrEdit{fields: fields, prname:'home_news', isconservative:false };
</div>