Proposal: develop possibility to choose between themes #18
Labels
No labels
Component: User interface
Component: Wymeditor
Help wanted
Level: Difficult
Level: Easy
Level: Moderate
Pagetype: Festival
Pagetype: Mailinglist
Pagetype: Peer reviewed article
Pagetype: Text
Privacy GDPR AVG
status: has conflicts
Status: Needs changes
Status: Needs discussion
Status: Needs review
Status: Ready to merge
Status: Waiting for response
Type: Bug
Type: Enhancement
Type: Question
Usecase: De Stadsbron
Usecase: Koppelting
Usecase: MeetjeStad
Value: Coders
Value: Security
Value: Users
Value: Visitors
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
harmen/hypha#18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why?
As discussed with Harmen: we only release Hypha with one theme: default. But user may want to develop own theme. Currently this can be done by editting the file /data/hypha.css (why in data?).
I think it would be cleaner to make a new directory: /system/themes/default and put all styling in there. When user wants to develop own theme, user can either changes files in /system/themes/default or copy default to /system/themes/[new name] and then change whatever is necessary. Needed: possibility to change to new theme when logged in as admin.
Advantage: whenever user runs into trouble, choosing "default" theme in backend can be used to check if thing are still all right in default theme. So user can check if error is in theme or elsewhere.
Because it can be edited by the user, and thus is effectively site-specific data (I guess).
One downside of the current approach is that when running from git, making changes to the CSS leaves you with modified files in the git checkout, and conflicts when the CSS is changed in the repository. Having separate user-defined themes would remove the need for modifying the builtin css, which should solve this problem too.
Correct. All system files are (or could be) static, all user editable files are in data. System configuration data in root (/data), page content in subfolders (/data/images, /data/pages etc)
Distinction between a default theme and a user-defined theme seems to be a good approach to me.
The distinction between data and core was misinterpreted by me: I thought data was data.
Maybe an idea:
/system
/user-files
/user-files/themes (for custom themes)
/user-files/data (for pages and settings)
/user-files/data/images
See #23 for discussion about a different structure.
Double