Hi Holger,
Below is the view/Form (mainMenuExample:MyHomePageTab) that I am
looking for. Since I am new to the composer so it took time to figure it
out. Using the editor under the ui:prototype, the content that gets
displayed on the right hand side pane can be handled.
Now, we have another requirement and it is to add a link (an anchor
tag<a>) in the home page tabs menu and that link should open a new tab/page
in the same browser. Could you please help us on this?
Thanks,
sanjeev
On Wednesday, April 12, 2017 at 5:29:28 AM UTC+5:30, Holger Knublauch wrote:
>
> Hi Sanjeev,
>
> I am not quite sure what you need here. Looking at the
> mainMenuExample.ui.ttlx file that I sent you, I left a placeholder for the
> main content, just with a Hello World for now. You could replace that with
>
> <teamwork:Chrome>
> <div>Hello World</div>
> </teamwork:Chrome>
>
> to get the surrounding menu and header show up.
>
> You then write about editing, and this is where I lack details. But in
> case you are looking for something similar to the Metadata form, which is
> switchable between view and edit mode, look at
>
> teamwork:MetadataProjectTab
>
> for a stand-alone example.
>
> If this doesn't help, please provide more specific details.
>
> Holger
>
>
> On 12/04/2017 0:40, sanjeev devireddy wrote:
>
> Hi Holger,
> I followed the second approach and I can see the new menu item. Now I
> want to edit the file mainMenuExample.ui.ttlx so that the content that gets
> displayed on the right hand pane can be updated. But I don't see
> ui:prototype label/section in the Resource Form of mainMenuExample.ui.ttlx.
> Normally in SWP Element Form the ui:prototype label/section is seen and
> that provides an editor. So could you please help me to understand that how
> the Resource form that is associated with mainMenuExample.ui.ttlx file can
> be updated so that the changes reflect on the right hand side content.
>
>
> Thanks,
> sanjeev
>
> On Sunday, February 12, 2017 at 10:50:36 AM UTC+5:30, Holger Knublauch
> wrote:
>>
>> Hi Paul,
>>
>> EVN (and its sister product EDG) provide various extension mechanisms
>> that can be used to customize the appearance without modifying the system
>> files (such as teamwork.ui.ttlx). SPARQL Web Pages (SWP) is used in most
>> places, and others are entirely model-driven and depend on RDF data in some
>> files.
>>
>> For you specific scenario in 5.2, you have two options:
>>
>> 1) Apply a so-called override (http://uispin.org/ui.html#overrides) to
>> the element that populates the menu: teamwork:MainMenu. To do that, create
>> a new RDF/SWP file (ending with ui.ttlx), import teamwork.ui.ttlx and then
>> create a subclass of teamwork:MainMenu that points at teamwork:MainMenu via
>> ui:overrides. This mechanism would allow you to completely replace the main
>> menu, e.g. you could start with the existing ui:prototype of
>> teamwork:MainMenu and modify it.
>>
>> However, I think what you need is something simpler, namely a menu item
>> that open something on the right hand side of the screen:
>>
>> 2) Define a teamwork:HomePageTab and tell the EVN product about it. EVN
>> will populate a tab for each instance of HomePageTab that it can find in
>> any ui.ttlx file. I have prepared this in the attache file. Place this into
>> your workspace (or upload it to the EVN server) to see the extra menu item.
>>
>>
>>
>> The key triples of the example file are:
>>
>> rdf:type teamwork:HomePageTab ;
>> ui:prototype """
>> <div>Hello World</div>
>> """^^ui:Literal ;
>> rdfs:label "My HomePage Tab" ;
>> rdfs:subClassOf teamwork:HomePageTabs ;
>> .
>>
>> to declare the home page tab, and
>>
>> evnproduct:EVN
>> teamwork:homePageTab mainMenuExample:MyHomePageTab ;
>> .
>>
>> to tell EVN about it. (Similar would be for EDG).
>>
>> HTH
>> Holger
>>
>>
>> On 10/02/2017 22:58, Paul Frunza wrote:
>>
>> Hello,
>>
>> I want to modify the default EVN menu in order to add another item which
>> links to a custom page, in the manner show below:
>>
>>
>> <https://lh3.googleusercontent.com/-m_32ntNzDBg/WJ24HGYakKI/AAAAAAAAAPw/IiWxvxkePw8MlEUBIWC5ugwm0KxSEe9nQCLcB/s1600/EVN%2BUI2.png>
>>
>>
>> I've done text search through all of the local composer files and the
>> only place found where the menu items are defined seems to be in the
>> teamwork.topbraidlive.org/ui/teamwork.ui.ttlx file (shown in the
>> screenshot below). However, this is quite a large file (~13k lines) and it
>> seems to define the UI elements for other projects as well, such as EDG. I
>> suspect that it might be a generated file due to its size.
>>
>>
>> <https://lh3.googleusercontent.com/-Zms5KPwJnS4/WJ22MxDWWOI/AAAAAAAAAPc/legw_V5Un0ocOmAnJj4HqtJJIGDGqqj6gCLcB/s1600/EVN%2BUI.png>
>>
>>
>> Is that the correct file where such modifications should be made? Is
>> there a way to ensure that the changes appear only in EVN and not other
>> places?
>>
>> Also, we have an EVN instance (without EDG) on a dedicated server which
>> is running an older version (5.1.4). Would there be any compatibility
>> issues when deploying to this server?
>>
>> Best regards,
>> Paul
>> --
>> You received this message because you are subscribed to the Google Group
>> "TopBraid Suite Users", the topics of which include the TopBraid Suite
>> family of products and its base technologies such as SPARQLMotion, SPARQL
>> Web Pages and SPIN.
>> To post to this group, send email to [email protected]
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "TopBraid Suite Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> --
> You received this message because you are subscribed to the Google Group
> "TopBraid Suite Users", the topics of which include the TopBraid Suite
> family of products and its base technologies such as SPARQLMotion, SPARQL
> Web Pages and SPIN.
> To post to this group, send email to [email protected]
> <javascript:>
> ---
> You received this message because you are subscribed to the Google Groups
> "TopBraid Suite Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected] <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
--
You received this message because you are subscribed to the Google Group
"TopBraid Suite Users", the topics of which include the TopBraid Suite family
of products and its base technologies such as SPARQLMotion, SPARQL Web Pages
and SPIN.
To post to this group, send email to [email protected]
---
You received this message because you are subscribed to the Google Groups
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.