Hello Christian,
please refer to the documentation of the SDK on https://help.fluidops.com/resource/Help:MenuExtensions#Main_menu_extensions where an example for your request is provided.
Hope this helps,
Andreas
--
You received this message because you are subscribed to the Google Groups "Information Workbench Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
iwb-discussio...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix fluidops: <http://www.fluidops.com/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix Platform: <http://www.fluidops.com/ontologies/platform/> .
@prefix menu: <http://www.fluidops.com/ontologies/menu/> .
# category ICD
menu:MyFeature rdf:type Platform:MenuCategory ;
rdfs:label "ICD";
rdfs:comment "Menu extension for ICD wiki page";
Platform:order 50 .
Hi Christian,
In your example you have defined just the MenuCategory, i.e. there is no page define for the category.
Please refer to the examples in the documentation, e.g. if you want to link to a page which is no a sub menu:
fluidops:MyFeatureStart rdf:type Platform:MenuCategory ;
rdf:type Platform:WikiPage ;
rdfs:label "My Feature Start" ;
rdfs:comment "Start Page for my Feature" ;
Platform:requiredProduct "eCloudManager" ;
Platform:requiredFeature "IWBSERVERADMINUSER" ;
Platform:order 60 .
Best,
Andreas
Von: iwb-dis...@googlegroups.com [mailto:iwb-dis...@googlegroups.com]
Im Auftrag von christia...@student.uni-luebeck.de
Gesendet: Freitag, 23. Februar 2018 09:35
An: Information Workbench Discussions <iwb-dis...@googlegroups.com>
Betreff: Re: Adding entries to the menu bar
Thanks for the fast reply. I already found this information too and tried to implement it. But unfortunately it doesn't work the way it should. So let me explain what I want to do:
My menu bar currently looks like this where "Start" refers to the main page is my IWB implementation:
I want for example add a shortcut to the Wikipage which is called "ICD" (https://192.168.2.107:50443/resource/ICD).
I added the following ICD.ttl-File to the wikiBootstrap folder of my Eclipse workspace:
p.p1
{margin:
0.0px
0.0px
0.0px
0.0px;
font:
11.0px
Monaco}
p.p2
{margin:
0.0px
0.0px
0.0px
0.0px;
font:
11.0px
Monaco;
min-height:
15.0px}
span.s1
{text-decoration:
underline}
span.Apple-tab-span
{white-space:pre}
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix fluidops: <http://www.fluidops.com/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix Platform: <http://www.fluidops.com/ontologies/platform/> .
@prefix menu: <http://www.fluidops.com/ontologies/menu/> .
# category ICD10Feature
fluidops:ICD10 rdf:type Platform:MenuCategory ;
rdf:type Platform:WikiPage ;
rdfs:label "ICD10" ;
rdfs:comment "Start Page for ICD10" ;
Platform:order 60 .
I don't want to use any restriction on product or feature. I would really like to see this menu entry on my screen ...
Where actually is the linking done between the menu entry and the referred wiki-page?
Could you please help me with this problem? I don't get what I'am doing wrong here ...
Regards,
Christian
Hello Christian,
the link of the menu entry (i.e. the target page) is identified by the subject of the triples you are adding, i.e. in your case “fluidops:ICD10”.
Note that the namespace prefix in this example points to “<http://www.fluidops.com/>”. I assume you are using Information Workbench, where the default namespace is “<http://www.fluidops.com/resource/>". I suggest to add a second namespace “@prefix def: <http://www.fluidops.com/resource” which you can use for your menu entry.
You can check the menu contents on the “/resource/Setup:Menu” page, where all menu items are listed.
If it does not appear there, please check your logs for errors.