Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pulipulichen/40c22bf93351fdc85fc576af02499b12 to your computer and use it in GitHub Desktop.
Save pulipulichen/40c22bf93351fdc85fc576af02499b12 to your computer and use it in GitHub Desktop.
Docker,Nextcloud
看看網頁版全文 ⇨ Nextcloud客製化網頁:插入外部JavaScript腳本 : Nextcloud Customized Webpage: Inserting External JavaScript Scripts
https://blog.pulipuli.info/2025/06/nextcloud-customized-webpage-inserting-external-javascript-scripts.html
要大幅度修改Nextcloud的網頁的話,建立主題(theme)可能是最常見的建議。
但如果我們是要在Nextcloud的網頁裡面插入外部JavaScript腳本的話,這手續可就麻煩得多了。
讓我們應用調整Docker的Nextcloud的技巧,在Nextcloud安裝完後,自動佈署修改後的程式碼吧。
If you want to drastically modify the Nextcloud web interface, creating a theme is probably the most common suggestion. However, if you want to insert external JavaScript scripts into the Nextcloud web pages, the procedure becomes much more complicated. Let's apply the techniques of customizing a Dockerized Nextcloud instance to automatically deploy modified code after Nextcloud is installed.。
----
# Nextcloud程式碼的位置 / Location of Nextcloud Code。
https://hub.docker.com/_/nextcloud/。
在Nextcloud的Docker版本裡面,Nextcloud的程式碼被擺在「 /var/www/html  」裡面。
而影響Nextcloud顯示外觀的程式碼則擺在更深一層的「 /var/www/html/core/templates/ 」裡面。
https://www.schillmania.com/projects/snowstorm/。
我們要客製化什麼功能呢?這邊舉的例子是scottschiller發佈的「Snowstorm」。
它的程式碼可以讓網頁開始下雪。
一般的做法是在網頁裡面插入以下程式碼即可:。
````
````
----
繼續閱讀 ⇨ Nextcloud客製化網頁:插入外部JavaScript腳本 : Nextcloud Customized Webpage: Inserting External JavaScript Scripts
https://blog.pulipuli.info/2025/06/nextcloud-customized-webpage-inserting-external-javascript-scripts.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment