mirror of
https://github.com/Karaka-Management/oms-Knowledgebase.git
synced 2026-01-11 09:28:40 +00:00
Make app,localization in url optional+tld+subdomain
This commit is contained in:
parent
801d73ead6
commit
5dec2ec0a1
|
|
@ -1,11 +1,11 @@
|
|||
[
|
||||
{
|
||||
"id": 1005901001,
|
||||
"pid": "/backend",
|
||||
"pid": "/",
|
||||
"type": 2,
|
||||
"subtype": 1,
|
||||
"name": "Wiki",
|
||||
"uri": "{/lang}/backend/wiki/dashboard?{?}",
|
||||
"uri": "{/prefix}wiki/dashboard?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 50,
|
||||
|
|
@ -15,11 +15,11 @@
|
|||
"children": [
|
||||
{
|
||||
"id": 1005902001,
|
||||
"pid": "/backend/wiki",
|
||||
"pid": "/wiki",
|
||||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "Wiki",
|
||||
"uri": "{/lang}/backend/wiki/dashboard?{?}",
|
||||
"uri": "{/prefix}wiki/dashboard?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
|
|
@ -30,11 +30,11 @@
|
|||
},
|
||||
{
|
||||
"id": 1005903001,
|
||||
"pid": "/backend/wiki",
|
||||
"pid": "/wiki",
|
||||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "Create",
|
||||
"uri": "{/lang}/backend/wiki/doc/create?{?}",
|
||||
"uri": "{/prefix}wiki/doc/create?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 5,
|
||||
|
|
@ -45,11 +45,11 @@
|
|||
},
|
||||
{
|
||||
"id": 1005904001,
|
||||
"pid": "/backend/wiki",
|
||||
"pid": "/wiki",
|
||||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "Categories",
|
||||
"uri": "{/lang}/backend/wiki/category/list?{?}",
|
||||
"uri": "{/prefix}wiki/category/list?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 5,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ use phpOMS\Account\PermissionType;
|
|||
use phpOMS\Router\RouteVerb;
|
||||
|
||||
return [
|
||||
'^.*/backend/wiki.*$' => [
|
||||
'^.*/wiki.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\Knowledgebase\Controller\BackendController:setUpBackend',
|
||||
'verb' => RouteVerb::GET,
|
||||
|
|
@ -17,7 +17,7 @@ return [
|
|||
],
|
||||
],
|
||||
],
|
||||
'^.*/backend/wiki/dashboard.*$' => [
|
||||
'^.*/wiki/dashboard.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\Knowledgebase\Controller\BackendController:viewKnowledgebaseDashboard',
|
||||
'verb' => RouteVerb::GET,
|
||||
|
|
@ -28,7 +28,7 @@ return [
|
|||
],
|
||||
],
|
||||
],
|
||||
'^.*/backend/wiki/category/list.*$' => [
|
||||
'^.*/wiki/category/list.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\Knowledgebase\Controller\BackendController:viewKnowledgebaseCategoryList',
|
||||
'verb' => RouteVerb::GET,
|
||||
|
|
@ -39,7 +39,7 @@ return [
|
|||
],
|
||||
],
|
||||
],
|
||||
'^.*/backend/wiki/category/single.*$' => [
|
||||
'^.*/wiki/category/single.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\Knowledgebase\Controller\BackendController:viewKnowledgebaseCategory',
|
||||
'verb' => RouteVerb::GET,
|
||||
|
|
@ -50,7 +50,7 @@ return [
|
|||
],
|
||||
],
|
||||
],
|
||||
'^.*/backend/wiki/category/create.*$' => [
|
||||
'^.*/wiki/category/create.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\Knowledgebase\Controller\BackendController:viewKnowledgebaseCategoryCreate',
|
||||
'verb' => RouteVerb::GET,
|
||||
|
|
@ -61,7 +61,7 @@ return [
|
|||
],
|
||||
],
|
||||
],
|
||||
'^.*/backend/wiki/doc/single.*$' => [
|
||||
'^.*/wiki/doc/single.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\Knowledgebase\Controller\BackendController:viewKnowledgebaseDoc',
|
||||
'verb' => RouteVerb::GET,
|
||||
|
|
@ -72,7 +72,7 @@ return [
|
|||
],
|
||||
],
|
||||
],
|
||||
'^.*/backend/wiki/doc/create.*$' => [
|
||||
'^.*/wiki/doc/create.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\Knowledgebase\Controller\BackendController:viewKnowledgebaseDocCreate',
|
||||
'verb' => RouteVerb::GET,
|
||||
|
|
@ -83,7 +83,7 @@ return [
|
|||
],
|
||||
],
|
||||
],
|
||||
'^.*/backend/wiki/doc/list.*$' => [
|
||||
'^.*/wiki/doc/list.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\Knowledgebase\Controller\BackendController:viewKnowledgebaseDocList',
|
||||
'verb' => RouteVerb::GET,
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ echo $this->getData('nav')->render();
|
|||
<tr><td colspan="2">
|
||||
<tbody>
|
||||
<?php $c = 0; foreach ($categories as $key => $value) : $c++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/lang}/backend/admin/account/settings?{?}&id=' . $value->getId()); ?>
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/account/settings?{?}&id=' . $value->getId()); ?>
|
||||
<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('Name') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<?php foreach ($categories as $category) : ?>
|
||||
<section class="box wf-100 wiki-list">
|
||||
<div class="inner">
|
||||
<a href="<?= \phpOMS\Uri\UriFactory::build('{/lang}/backend/wiki/doc/list?{?}&id=' . $category->getId()); ?>"><?= $this->printHtml($category->getName()); ?></a>
|
||||
<a href="<?= \phpOMS\Uri\UriFactory::build('{/prefix}wiki/doc/list?{?}&id=' . $category->getId()); ?>"><?= $this->printHtml($category->getName()); ?></a>
|
||||
</div>
|
||||
</section>
|
||||
<?php endforeach; ?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user