1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 01:19:44 +01:00

Use "Custom Fields" for the tab in "Pages". Fix for type=file returning a bad URL.

This commit is contained in:
Cameron 2018-08-14 18:12:01 -07:00
parent 5cbe8df761
commit 97ce92c8ab
3 changed files with 6 additions and 2 deletions

View File

@ -189,6 +189,10 @@
break;
case "file":
if(empty($value))
{
return null;
}
return ($raw) ? $tp->toFile($value, array('raw'=>1)) : $tp->toFile($value);
break;

View File

@ -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_fields">{
"__tabs__": {
"additional": "Additional"
"additional": "Custom Fields"
},
"mybbarea": {
"title": "Rich Text",

View File

@ -154,7 +154,7 @@ $sc_style['CPAGENAV|default']['post'] = '</div>';
$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">
<tr>
<th class="text-center" colspan="2">Custom Fields</th>