Adding entries to the menu bar

11 views
Skip to first unread message

christia...@student.uni-luebeck.de

unread,
Feb 23, 2018, 2:22:05 AM2/23/18
to Information Workbench Discussions
Hi all,

I would like to customize the menu bar on the left by adding some entries beside the Start / Home entry. Can someone explain me where this can be done?

Thanks
Christian

Andreas Schwarte

unread,
Feb 23, 2018, 2:45:10 AM2/23/18
to iwb-dis...@googlegroups.com

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.

christia...@student.uni-luebeck.de

unread,
Feb 23, 2018, 3:34:56 AM2/23/18
to Information Workbench Discussions
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:








@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 .


But there are no changes ...
Could you tell me where my mistake is?

Andreas Schwarte

unread,
Feb 26, 2018, 1:35:50 AM2/26/18
to iwb-dis...@googlegroups.com

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}


christia...@student.uni-luebeck.de

unread,
Feb 26, 2018, 2:38:05 AM2/26/18
to Information Workbench Discussions
Hi Andreas,

thanks for the reply. I tried to implement this particular example but it still doesn't work. I don't get my mistake ... I just want to add a menu entry that links to my page "https://localhost:50443/resource/ICD10". So I now added a new folder in my SDK: "data/wikiBootstrapMyFeature/" as described and in there I created a new file "ICD10Feature.ttl". The content of that .ttl-file is the following:


@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

Andreas Schwarte

unread,
Feb 26, 2018, 4:34:32 AM2/26/18
to iwb-dis...@googlegroups.com

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.

Reply all
Reply to author
Forward
0 new messages