mirror of
https://github.com/e107inc/e107.git
synced 2025-07-22 23:41:20 +02:00
Use "Custom Fields" for the tab in "Pages". Fix for type=file returning a bad URL.
This commit is contained in:
@@ -189,6 +189,10 @@
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case "file":
|
case "file":
|
||||||
|
if(empty($value))
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
return ($raw) ? $tp->toFile($value, array('raw'=>1)) : $tp->toFile($value);
|
return ($raw) ? $tp->toFile($value, array('raw'=>1)) : $tp->toFile($value);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@@ -374,7 +374,7 @@ Morbi porta leo iaculis, hendrerit lorem interdum, porta dui. Integer tempor con
|
|||||||
<field name="chapter_visibility">0</field>
|
<field name="chapter_visibility">0</field>
|
||||||
<field name="chapter_fields">{
|
<field name="chapter_fields">{
|
||||||
"__tabs__": {
|
"__tabs__": {
|
||||||
"additional": "Additional"
|
"additional": "Custom Fields"
|
||||||
},
|
},
|
||||||
"mybbarea": {
|
"mybbarea": {
|
||||||
"title": "Rich Text",
|
"title": "Rich Text",
|
||||||
|
@@ -154,7 +154,7 @@ $sc_style['CPAGENAV|default']['post'] = '</div>';
|
|||||||
|
|
||||||
$PAGE_TEMPLATE['customfields']['body'] = '
|
$PAGE_TEMPLATE['customfields']['body'] = '
|
||||||
|
|
||||||
<div class="col-md-5 pull-right" style="margin-right:-15px">
|
<div class="col-xs-12 col-md-5 pull-right" style="margin-right:-15px">
|
||||||
<table class="table table-striped table-bordered">
|
<table class="table table-striped table-bordered">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="text-center" colspan="2">Custom Fields</th>
|
<th class="text-center" colspan="2">Custom Fields</th>
|
||||||
|
Reference in New Issue
Block a user