I'm sure this is a frequently asked question, but none of my searching is proving fruitful.
I'm taking my first stab at writing an OTRS module. It's basically a file repository to allow someone on the Customer portal to download a file.
I'd like to use a jquery-ui based tree like:
jstree: https://www.jstree.com/ or fancytree: https://github.com/mar10/fancytree
I've added the appropriate Loader entries into the .xml file:
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<otrs_config version="1.0" init="Application">
<ConfigItem Name="CustomerFrontend::Module###CustomerFileRepository" Required="0" Valid="1">
<Description Translatable="1">FrontendModuleRegistration for CustomerFileRepository module.</Description>
<Group>Framework</Group>
<SubGroup>Frontend::Customer::ModuleRegistration</SubGroup>
<Setting>
<FrontendModuleReg>
<NavBarName>CustomerFileRepository</NavBarName>
<Description>Customer File Repository</Description>
<Title>Customer File Repository</Title>
<NavBar>
<Description>Customer File Repository Description</Description>
<Name>Software Downloads</Name>
<Block></Block>
<Type>Menu</Type>
<Link>Action=CustomerFileRepository;Subaction=List;Repo=SW</Link>
<NavBar>CustomerFileRepository</NavBar>
<Prio>200</Prio>
</NavBar>
<Loader>
<JavaScript>/otrs-web/FileRepo/jstree/dist/jstree.min.js</JavaScript>
<JavaScript>/otrs-web/FileRepo/custom.js</JavaScript>
<CSS>/otrs-web/FileRepo/jstree/dist/themes/default/style.min.css</CSS>
</Loader>
</FrontendModuleReg>
</Setting>
</ConfigItem>
</otrs_config>
(I'm hoping this is a really easy thing to do that I"ve just overlooked, but if any of you have a hint, please let me know!)
With thanks,
Troy