Comments (12)
If anyone with the required technical skills wants a workaround, you can manually set the order in the database.
First, connect to the database. If you don't know how to do this then this guide unfortunately isn't for you.
You can view all your calanders using SELECT * FROM nextcloud.oc_calendars;
+----+---------------------------+-------------------+---------------------+-----------+-------------+---------------+---------------+----------+--------------+-------------+
| id | principaluri | displayname | uri | synctoken | description | calendarorder | calendarcolor | timezone | components | transparent |
+----+---------------------------+-------------------+---------------------+-----------+-------------+---------------+---------------+----------+--------------+-------------+
| 2 | principals/system/system | Contact birthdays | contact_birthdays | 1 | NULL | 0 | #FFFFCA | NULL | VEVENT,VTODO | 0 |
| 3 | principals/users/nloomans | School | school | 241 | NULL | 0 | #e774ca | NULL | VEVENT,VTODO | 0 |
| 5 | principals/users/nloomans | Persoonlijk | persoonlijk | 7 | NULL | 0 | #78e774 | NULL | VEVENT,VTODO | 0 |
| 6 | principals/users/nloomans | School toets | school-toets | 7 | NULL | 0 | #e78074 | NULL | VEVENT,VTODO | 0 |
+----+---------------------------+-------------------+---------------------+-----------+-------------+---------------+---------------+----------+--------------+-------------+
Here, I want "Persoonlijk" to be above everything else. To do that, I first have to move the rest down (you can not have negative orders).
UPDATE nextcloud.oc_calendars SET calendarorder=1;
Now I can set the order of the one you want to be first to zero:
UPDATE nextcloud.oc_calendars SET calendarorder=0 WHERE id=5;
And you are done! Simply reload the page and you should see the calendars reordered!
from calendar.
It's assigned to the 1.7 milestone ;)
from calendar.
I unsure, if order should be stored in DAV. Isn't this a particular feature of this app?
Storing the actual order property is the job of the dav app, but I want to make the calendar list sortable. So the calendar client needs to be able to tell the server which order the user wants
from calendar.
This looks nice: https://github.com/RubaXa/Sortable
Comes without jQuery \o/
from calendar.
Hm, there is one issue with this feature.
We are currently not able to change the name, color, and also not the order of a shared calendar. We are able to set custom DAV properties though.
In the long run we need to fix this issue in core. (nextcloud/server#1463)
For now there are different possible solutions:
- store all order properties in a custom DAV property.
- store only the shared calendar order property in a custom DAV property
cc @tcitworld
from calendar.
Blocked by this stupid line of code ...
https://github.com/nextcloud/server/blob/master/apps/dav/lib/CalDAV/Calendar.php#L179
we should fix nextcloud/server#1463 first ...
Postponing to some NC11+ release
from calendar.
I unsure, if order should be stored in DAV. Isn't this a particular feature of this app?
from calendar.
Ah, ok. Thanks for the clarification. 😊
from calendar.
nextcloud/server#1463 is fixed. Any updates here?
from calendar.
Hello, any update here? If I put a new order following @nloomans trick, does the first one become the default calendar to receive invitations?
from calendar.
I just upgraded to Nextcloud 17 and I was hoping that I can sort my calendars by name, but unfortunately I can't.
Isn't it that easy as put a value in the column calendarorder?
from calendar.
Isn't it that easy as put a value in the column calendarorder?
Not quite that simple, but if you would be interested in sending a pull-request i would be happy to give a more detailed explanation how to implement this.
from calendar.
Related Issues (20)
- Attendee selection should allow selecting users without email HOT 2
- Event ignoring timezone in modal and details, but correct on calendar overview HOT 1
- Add multiple repeats options
- Keyboard shortcuts from calendar interfere with Nextcloud Assistant
- Calendar generates lots of activity possibly for just opening/viewing or syncing an event?
- Reconsider 30 days trash bin automatic deletion period HOT 2
- [stable4.7] Attendees text overlapping, unreadable (illegible) HOT 4
- "Next year" button is cut off
- Trashbin is opened behind new entry
- Enhance "Room availability" for all possible resources
- Event bar is too short and has visible background "shadow"
- Avatar icon has cut off status icon
- Recurrence options no longer work
- Past events styling breaks on recurring events HOT 1
- Calendar freezes HOT 2
- Popup modal does not show all attendee's
- Add Organizer Selection for Shared Calendars
- Windows compatibiliy: upload a file with wrong filename
- Share a whole calendar with "See only free/busy (hide details)" option HOT 5
- past styling looks off when events overlap
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from calendar.