mirror of
https://github.com/Karaka-Management/oms-Knowledgebase.git
synced 2026-02-09 23:08:42 +00:00
Fix #13
This commit is contained in:
parent
924321b452
commit
1a4ecca1b8
|
|
@ -5,7 +5,7 @@
|
||||||
"type": 2,
|
"type": 2,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Wiki",
|
"name": "Wiki",
|
||||||
"uri": "{/base}/{/lang}/backend/wiki/dashboard?{?}",
|
"uri": "/{/lang}/backend/wiki/dashboard?{?}",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 50,
|
"order": 50,
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Wiki",
|
"name": "Wiki",
|
||||||
"uri": "{/base}/{/lang}/backend/wiki/dashboard?{?}",
|
"uri": "/{/lang}/backend/wiki/dashboard?{?}",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 1,
|
"order": 1,
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Create",
|
"name": "Create",
|
||||||
"uri": "{/base}/{/lang}/backend/wiki/doc/create?{?}",
|
"uri": "/{/lang}/backend/wiki/doc/create?{?}",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 5,
|
"order": 5,
|
||||||
|
|
@ -49,7 +49,7 @@
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Categories",
|
"name": "Categories",
|
||||||
"uri": "{/base}/{/lang}/backend/wiki/category/list?{?}",
|
"uri": "/{/lang}/backend/wiki/category/list?{?}",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 5,
|
"order": 5,
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
public function setUpBackend(RequestAbstract $request, ResponseAbstract $response, $data = null)
|
public function setUpBackend(RequestAbstract $request, ResponseAbstract $response, $data = null)
|
||||||
{
|
{
|
||||||
$head = $response->get('Content')->getData('head');
|
$head = $response->get('Content')->getData('head');
|
||||||
$head->addAsset(AssetType::CSS, $request->getUri()->getBase() . 'Modules/Knowledgebase/Theme/Backend/styles.css');
|
$head->addAsset(AssetType::CSS, '/Modules/Knowledgebase/Theme/Backend/styles.css');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ echo $this->getData('nav')->render();
|
||||||
<tr><td colspan="2">
|
<tr><td colspan="2">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $c = 0; foreach ($categories as $key => $value) : $c++;
|
<?php $c = 0; foreach ($categories as $key => $value) : $c++;
|
||||||
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/admin/account/settings?{?}&id=' . $value->getId()); ?>
|
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/account/settings?{?}&id=' . $value->getId()); ?>
|
||||||
<tr data-href="<?= $url; ?>">
|
<tr data-href="<?= $url; ?>">
|
||||||
<td data-label="<?= $this->getHtml('ID', 0, 0) ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
|
<td data-label="<?= $this->getHtml('ID', 0, 0) ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
|
||||||
<td data-label="<?= $this->getHtml('Name') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
|
<td data-label="<?= $this->getHtml('Name') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<?php foreach ($categories as $category) : ?>
|
<?php foreach ($categories as $category) : ?>
|
||||||
<section class="box wf-100 wiki-list">
|
<section class="box wf-100 wiki-list">
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
<a href="<?= \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/wiki/category?{?}&id=' . $category->getId()); ?>"><?= $this->printHtml($category->getName()); ?></a>
|
<a href="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/backend/wiki/category?{?}&id=' . $category->getId()); ?>"><?= $this->printHtml($category->getName()); ?></a>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user