Fix absolute path to relative paths

This commit is contained in:
Dennis Eichhorn 2019-02-11 11:38:15 +01:00
parent d2a5a28481
commit b42096b519
5 changed files with 9 additions and 9 deletions

View File

@ -5,7 +5,7 @@
"type": 2,
"subtype": 1,
"name": "Editor",
"uri": "/{/lang}/backend/editor/list?{?}",
"uri": "{/lang}/backend/editor/list?{?}",
"target": "self",
"icon": null,
"order": 75,
@ -19,7 +19,7 @@
"type": 3,
"subtype": 1,
"name": "List",
"uri": "/{/lang}/backend/editor/list?{?}",
"uri": "{/lang}/backend/editor/list?{?}",
"target": "self",
"icon": null,
"order": 1,
@ -34,7 +34,7 @@
"type": 3,
"subtype": 5,
"name": "Create",
"uri": "/{/lang}/backend/editor/create?{?}",
"uri": "{/lang}/backend/editor/create?{?}",
"target": "self",
"icon": null,
"order": 15,

View File

@ -48,8 +48,8 @@ final class BackendController extends Controller
public function setUpEditorEditor(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{
$head = $response->get('Content')->getData('head');
$head->addAsset(AssetType::JSLATE, '/Modules/Editor/Models/Editor.js');
$head->addAsset(AssetType::JSLATE, '/Modules/Editor/Controller.js');
$head->addAsset(AssetType::JSLATE, 'Modules/Editor/Models/Editor.js');
$head->addAsset(AssetType::JSLATE, 'Modules/Editor/Controller.js');
}
/**

View File

@ -41,8 +41,8 @@ class BaseView extends View
parent::__construct($app, $request, $response);
$this->setTemplate('/Modules/Editor/Theme/Backend/Components/Editor/inline-editor-tools');
$response->get('Content')->getData('head')->addAsset(AssetType::JSLATE, '/Modules/Editor/Models/Editor.js');
$response->get('Content')->getData('head')->addAsset(AssetType::JSLATE, '/Modules/Editor/Controller.js');
$response->get('Content')->getData('head')->addAsset(AssetType::JSLATE, 'Modules/Editor/Models/Editor.js');
$response->get('Content')->getData('head')->addAsset(AssetType::JSLATE, 'Modules/Editor/Controller.js');
$view = new TextView($app, $request, $response);
$this->addData('text', $view);

View File

@ -20,7 +20,7 @@ echo $this->getData('nav')->render(); ?>
<div class="col-xs-12">
<section class="box wf-100">
<div class="inner">
<form id="fEditor" method="PUT" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/editor?{?}&csrf={$CSRF}'); ?>">
<form id="fEditor" method="PUT" action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/editor?{?}&csrf={$CSRF}'); ?>">
<div class="ipt-wrap">
<div class="ipt-first"><input name="title" type="text" class="wf-100"></div>
<div class="ipt-second"><input type="submit" value="<?= $this->getHtml('Save') ?>"></div>

View File

@ -31,7 +31,7 @@ echo $this->getData('nav')->render(); ?>
<td colspan="3">
<tbody>
<?php $count = 0; foreach ($docs as $key => $value) : $count++;
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/editor/single?{?}&id=' . $value->getId()); ?>
$url = \phpOMS\Uri\UriFactory::build('{/lang}/backend/editor/single?{?}&id=' . $value->getId()); ?>
<tr data-href="<?= $url; ?>">
<td data-label="<?= $this->getHtml('Title') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getTitle()); ?></a>
<td data-label="<?= $this->getHtml('Creator') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getCreatedBy()->getName1()); ?></a>