SPK for DSM 7.x: How to create a Portal Service without an Icon ?

Currently reading
SPK for DSM 7.x: How to create a Portal Service without an Icon ?

15
5
NAS
DS1815+
Operating system
  1. Linux
  2. Windows
Mobile operating system
  1. Android
Hello,

I am building a 3rd party package which will display php web pages within a DSM UI

1667075382308.png


For the UI, I am using a bin defined via the SPK's resource file. An icon is added into the Main menu of the DSM to open this UI
JSON:
{
    "usr-local-linker": {
        "bin": ["bin/demouispk7-cli"]
    }
}

The php web pages is running as a web service, also defined via SPK's resource file:
JSON:
{
    "webservice": {
        "services": [{ ... }],
        "portals": [{
            "service": "myapplication",
            "type": "alias",
            "name": "myapplication1",
            "display_name": "My Application 1",
            "alias": "myapplication1",
            "app": "com.mycompany.app"
        }],
        "pkg_dir_prepare": [{
            "source": "/var/packages/MODS_DemoUiSpk7/target/src",
            "target": "myapplication",
            "mode": "0755",
            "group": "http",
            "user": "MyApplication"
        }]
    }
}

This is creating the portal :

1667075321516.png


But unfortunatelly, it's also creating an second icon in DSM's Main menu, and I don't want it !
I already have the icon that is oening the UI going to embed the web pages...

Any idea how to avoid the icon linked to the portal?

Thx a lot in adv !!

V.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

Ok. I just found out! I'm now using vim-plug. It works as flawlessly as it does in regular Linux boxes...
Replies
1
Views
1,830
Hello, I’m looking for someone able to write script for Syno DSM having good knowledge of DSM systems...
Replies
0
Views
821
  • Question
Phew panic over! Thanks for clarifying!
Replies
6
Views
4,364
Hello there, I'm currently running an DS710+ modded into DSM 6u7 via tinkering. And I do like it how it...
Replies
0
Views
2,437
Seems fixing bad code in a forum is not that easy, that's why it's published on github now...
Replies
4
Views
4,168
I don't have /dev/synobot because the device has not started, I'm accessing to it by telnet. So my problem...
Replies
12
Views
3,476
No. I don't know much about it. Just trying to understand and learn. "Why?" is very powerful. Thanks for...
Replies
13
Views
8,946

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Back
Top