I know this was already discussed, but could you do it like this:
I was looking for a way to "hide" some of tags in the timetable (I want some to be visible, but not all). As far as I can see you can do this by changing a certain file in program data folders. I was wondering if the same could be done by, say, naming tag "not wanted tag" in form "(*not wanted tag*)" (so basically adding (* in front of a tag name and *) at the end of tag name). So a tag of that form wouldn't be seen in timetable html. If a solution like that already exists, then I apologize (it didn't exist the last time I checked). Please let me know.
Feature does not exist. It is an interesting idea, but how to explain other users this facility? Most users will surely not read the documentation regarding this.
I added your words in the TODO.
Maybe you could add a little "i" button on the right side of tag slot (in activities window) with a short explanation: "Tag NOT WANTED that you don't want to be shown in timetable should be named (*NOT WANTED*)."
This is not very FET-like notation. I'll think about it.
Just creating a new field for Activity Tags (eg. "Printable") would be good enough, Liviu?
Quote from: rodolforg on March 03, 2017, 02:54:55 PM
Just creating a new field for Activity Tags (eg. "Printable") would be good enough, Liviu?
This is a good suggestion. There is one thing: there is already a selection, "Print activity tags in timetables". So your "Printable" should print if the main selection is enabled? And another thing: This field (Printable) does not logically belong to timetabling data.
Volker, if the activity tag contains a Boolean value to print or not, is it easy to make this? Where to print or not? In all the timetables, including activity tags timetables (so a whole table might be missing)? You could make an additional hash table for activity tags, with (key, value)=(activity tag, printable true/false).
Also, I am a bit afraid that more suggestions will come, with people asking teachers to be printed or not, and so on. There are too many possible variants to make them all.
rodolforg, so you too need this facility?
hmmm... i guess it isn't very difficult to code. except of one minor thing:
if all activity tags are deselected.
a) if all activity tags are deselected and you print an activity tag timetable. i should detect that situation pretty early, since the timetable will look strange/empty if i don't do it.
b) if all activity tags of an activity are deselected. i am not sure if i should try to detect that pretty early. will be a bit work to code that. if i don't do that the only disadvantage will be opening an html-span fpr the activty tags and closing it immediately even it is not needed at all. (so it is only wasting some file size.)
Quote from: Volker Dirr on March 03, 2017, 05:21:04 PM
hmmm... i guess it isn't very difficult to code. except of one minor thing:
if all activity tags are deselected.
a) if all activity tags are deselected and you print an activity tag timetable. i should detect that situation pretty early, since the timetable will look strange/empty if i don't do it.
b) if all activity tags of an activity are deselected. i am not sure if i should try to detect that pretty early. will be a bit work to code that. if i don't do that the only disadvantage will be opening an html-span fpr the activty tags and closing it immediately even it is not needed at all. (so it is only wasting some file size.)
(a) It does not matter. You can print an empty file, as in the case when the user has no activity tags at all or no teachers, students sets, etc.
(b) It is not elegant. I prefer the hard code.
Quote from: Liviu Lalescu on March 03, 2017, 03:23:01 PM
rodolforg, so you too need this facility?
I needed once, but I workaround it somehow when I saw that every tag would be printed. But I can't recall what I did :D So, ignore me here
I added this in the TODO list ("Printable" Boolean value).
So, Volker, please let me know:
- Could you add it perfectly for (b)?
- Should we hide from the table cell (of other items) and also the whole table (of this item)?
It is for the moment only a talk. I'll tell you if I will begin it.
Quote- Could you add it perfectly for (b)?
i think so. should be possible.
Quote- Should we hide from the table cell (of other items) and also the whole table (of this item)?
hmm... i fear i misunderstand. please ask more detailed.
Quote from: Volker Dirr on March 06, 2017, 12:18:22 PM
Quote- Should we hide from the table cell (of other items) and also the whole table (of this item)?
hmm... i fear i misunderstand. please ask more detailed.
Say hide the activity tag in the teacher's John timetable, and also hide the activity tag's timetable from the table of activity tags. I think both.
I think we only need to add a "Printable" Boolean variable for the activity tags.
So, shall we begin, Volker? Assume activity tags have a Boolean variable named Printable.
The HTML timetables and the PDF ones.
Yes, a bool named printable is fine. But i think if it is true, then i always skip that tag. So i will skip all tables that contain the tag.
i can also skip the activtiy tag timetable itself. that will be consequent(, but i am not sure if it is useful.)
I think we can start that, but i am very busy at the moment. So it will take a few days to finish it. I will start as soon as you sent me a version with the printable bool.
Quote from: Volker Dirr on March 06, 2017, 04:57:50 PM
Yes, a bool named printable is fine. But i think if it is true, then i always skip that tag. So i will skip all tables that contain the tag.
i can also skip the activtiy tag timetable itself. that will be consequent(, but i am not sure if it is useful.)
I think we can start that, but i am very busy at the moment. So it will take a few days to finish it. I will start as soon as you sent me a version with the printable bool.
I think you mean "false", not "true"?
I am almost done, I will let you know. I hope you can do it soon.
sorry. of course it it is false :-)
We added the facility to print or not the activity tags. Please see the forum Snapshots announcement for download link and changelog (FET-5.31.2 snapshot).