Hello All,
First time Discourse installer / maintainer. Long time user.
I"m feeling a bit lost with some of the plug ins and apparent lack of documentation. My focus at the moment is the Discourse Calendar plugin.
I have found 2 threads.
The actual plug in - Discourse Calendar
A request for help How to use the calendar plugin?
Neither really explain how to use the plugin other than creating the main calendar in a first post, and how to add events to that main calendar in replies to the same post.
The screen shots show multiple colors which makes me think there may be a way for a calendar to draw from multiple categories?
In the plugin settings, there is also calendar categories setting, but I’m unclear on how to use this. I was able to get a calendar to appear at the top of a Category display page, but it is empty.
I’m currently using categoryId=7;postId=19 where catagory 7 is the catagory I want the calendar to appear at the top of. Then I wasn’t clear on postID. I tried a post that as an event in it. A post that has a calendar as the first post and dates as replies. The calendar appears at the top of the Catagory (in a misshaped non scrollable box), but no events appear on it, regardless of what postID I use.
The helper text also offers Other valid settings: tzPicker, weekends and defaultView.
but no explanation of how or what those do or how to use them.
So in short, I’m looking for any pointers, or links to something that explains the plugin with a bit more detail.
Ultimately what I’m hoping for is some way to have a calendar that is able to read into multiple posts in a Category. What I’m doing now is instructing users to create 2 posts. Create a new topic and add an Event. Include the description of the event etc… This is the thread for discussion about the event.
Then I tell them to copy the link to that topic, and go to the pinned “Master Event Calendar” topic and reply to that inserting a date, and then pasting the link to the Event. That way the Master Event Calendar topic calendar has all of the events, but there are separate topics to allow for discussion about the events.
It feels like there has to be a better way, but I don’t know what it is.
Thanks very much. PostID vs TopicID is where I was going wrong. That has cleared that up. I still wish there as a “man page” or something equivalent for all possible variables and inputs on the plugin, but I’ll keep playing with it.
Also thanks for the link to the Event Plugin. As the post your link lead to, it is confusing how Calendar vs Date vs event are linked and not linked considering that the Event Plugin is part the Calendar Plug.
@ben_t , your use case describes exactly the type of functionality I was hoping for… various groups could have discussion threads about their events, but through the creation of their event in their topics they would populate the Master Events calendar which contains all events from all groups. Then, readers of the main event calendar could click any item in the calendar and be take to the thread for the event.
Don’t get me wrong, as it stands, I can appreciate the idea of an event in a thread that doesn’t make it to the main events calendar (say, the small group holding planning meetings leading up to the big event on the main calendar),
However, I do think our use case would be a great feature to have as I can see a number of implementations (school sports calendars, community bulletin boards… )
As an aside. I found came across an alternative way to create the topic where you have the calendar in the first post and then reply to the calendar with dates that get added to the top post … without going into settings and counting thread numbers…
Somewhere in the first post, put
[calendar]
[/calendar]
I came across that on the [github page|https://meta.discourse.org/t/discourse-calendar/97376]
Think it might’ve been added after you posted this though.
… I’m off to figure out this business with colors!
Quelqu’un peut-il partager les étapes pour trouver le Postid afin de déclarer le calendrier ? Je suis bloqué à cette étape et j’apprécierais vraiment l’aide.
Edit : je l’ai trouvé ! Au cas où quelqu’un aurait des difficultés, vous pouvez suivre les étapes suivantes pour trouver le postId. Prenons ce sujet comme exemple :
Supprimez le slug du sujet pour qu’il ressemble à ceci : https://meta.discourse.org/t/165536/5
Supprimez le numéro du post à la fin (/5) et remplacez-le par /posts.json, de sorte que l’URL ressemble à ceci ; https://meta.discourse.org/t/165536/posts.json
Ouvrez l’URL et vous trouverez le postId requis sur la première ligne :
Quelqu’un peut-il répondre à ce que sont ces paramètres ? Je n’ai pas pu trouver de référence à ceux-ci, sauf dans ce message et il n’y a aucune explication.
Utile, mais cela signifie-t-il que ces informations pour le réglage ne sont pas applicables, ou cela définit-il simplement le réglage par défaut pour le calendrier dans le message spécifié ?
Désolé, je ne suis pas sûr de comprendre la question
Je dirais que les paramètres sont définis par élément, c’est-à-dire pour un calendrier (qui se trouve dans la publication spécifiée)
Mes excuses pour la confusion.
Dans les paramètres du calendrier Discourse, vous voyez l’image que j’ai postée précédemment.
Elle nécessite le categoryId et le postID, puis indique les autres paramètres valides, mais pas ce qu’ils font dans ce cas.
Je me demande s’il s’agit d’un problème de texte d’aide incorrect ou d’une mauvaise compréhension du fonctionnement de ces paramètres en relation avec le paramètre “catégories du calendrier”.
D’après mes essais, je ne vois rien se passer, mais je pourrais me tromper.
J’ai constaté que vous aviez changé meta.discourse.org/t/discourse-calendar-how-to/165536/6
en meta.discourse.org/t/discourse-calendar-how-to/165536.json
D’accord. Je pense que parfois les instructions sont écrites du point de vue d’un développeur et nécessitent plus d’informations étape par étape et d’images pour un profane. Le calendrier pourrait peut-être utiliser un #composant-thème pour clarifier la configuration au sein d’un sujet ou quelque chose de similaire.
Je n’ai finalement pas utilisé le calendrier “About-Topic”, car la façon la plus simple de créer un événement est toujours le premier message d’un sujet, et vous l’utiliseriez de toute façon pour le calendrier, pas pour les événements.
J’ai pu modifier le premier message des sujets existants dans les sous-catégories, puis la couleur des sous-catégories s’est affichée dans le calendrier affiché de la catégorie parente.
De plus, vous avez mentionné un composant de thème, ce qui suggère une ajustabilité ; le calendrier dont je parle, celui implémenté par le paramètre d’administration Events Calendar Categories, j’aimerais pouvoir l’ajuster :
La taille du calendrier sur le site de bureau, le site mobile semble correct
Le jour de début de la semaine
Je n’énumère pas trop de choses ici car je ne veux pas décourager les gens, j’imagine qu’il y a eu des problèmes de développement qui ont nécessité différentes manières pour un superutilisateur d’implémenter discourse-calendar.
Autant que j’ai pu observer, je n’ai pas vu de composant compagnon pour le calendrier TC. Vous pourriez cependant être en mesure de créer un Theme component personnalisé en utilisant l’inspecteur d’éléments de votre navigateur pour identifier et ajuster la taille du calendrier sur le bureau. Assurez-vous simplement de le placer dans l’en-tête CSS du bureau.
L’équipe a récemment publié un plugin compagnon pour les flux en direct. Cela pourrait vous intéresser. Il utilise le chat et le calendrier.
Bien, j’aime ce plugin, ce n’est pas quelque chose que je fais assez souvent je suis plutôt du genre forum privé. Peut-être qu’un jour j’aurai assez d’argent pour faire du streaming de révisions de physique
Tant pis pour le calendrier par catégorie parente, ce serait bien si Uncategorized (potentiellement ?) affichait un calendrier sur la page d’accueil (ou la catégorie General), et fusionnait les événements de toutes les autres catégories.