Dear All,
I 'd like to learn OJS to make a website supporting informations , I know a little about PHP, JQuery, Vue, …
From guide on UI Library - Public Knowledge Project, I try a “Listpanel with Search”, but do not how to generate searchPhrase variable.
- These are the steps I took:
- In file .inc.php (pages/dashboard/DashboardHandler.inc.php), I add some code:
$myItems = Array(
[“id” => 1, “title” => “number 1”, “subtitle” => “sub titt - number 1”, ],
[“id” => 2, “title” => “number 2”, “subtitle” => “sub titt - number 2”],
[“id” => 3, “title” => “number 3”, “subtitle” => “sub titt - number 3”]);
$templateMgr->assign(‘exampleData’, [
‘components’ => [
‘masthead’ => $mastheadForm->getConfig(),
‘myL_Items’ => $myItems,
],
]);
$templateMgr->setState([‘components’ => $lists, ‘searchPhrase’=> “”]);
-
In file index.tpl, I use:
{assign var=“uuid2” value=“list-panel-”|uniqid|escape}
List Panel with Search
- Result: “List Panel with Search” only works when there is no [<template slot=“action” … ‘searchPhrase’… >]
I am using OJS version 3.3.0-7
Thanks a lot.
Kind Regards