Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Other extensions url, like "alarmclock"? #263

Open
JuMalIO opened this issue May 21, 2019 · 2 comments
Open

Other extensions url, like "alarmclock"? #263

JuMalIO opened this issue May 21, 2019 · 2 comments

Comments

@JuMalIO
Copy link

JuMalIO commented May 21, 2019

Is it possible to add another url link, similar like its done with "alarmclock" link?
I think it should be more customizable, maybe someone else will want to add another.

@JuMalIO JuMalIO changed the title Other extensions? Other extensions url, like "alarmclock"? May 21, 2019
@kingosticks
Copy link
Member

It should be quite easy to edit the source files (you can find the location of them by running mopidy deps). I don't want to add a config option just for this.

@JuMalIO
Copy link
Author

JuMalIO commented May 21, 2019

Yes, I did, but still think it would be nice to have custom extension links. I guess its feature request.

My current hackish solution is editing index file:
nano /usr/local/lib/python2.7/dist-packages/mopidy_musicbox_webclient/static/index.html
change data-has-alarmclock="true":
<body data-websocket-url="{{ websocketUrl }}" data-is-musicbox="{{ isMusicBox }}" **data-has-alarmclock="true" data-on-track-click="{{ onTrackClick }}" data-program-name="{{ programName }}" data-hostname="{{ hostname }}" data-title="{{ title }}">
and change links:
<a href="/your_link_instead_of_alarmclock/">
<a id="homeAlarmClock" href="/your_link_instead_of_alarmclock/">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants