FET Forum

FET Support (English) => Get Help => Topic started by: xtzetzias on October 09, 2023, 09:29:02 PM

Title: Skip printing some information
Post by: xtzetzias on October 09, 2023, 09:29:02 PM
Hello,
I'm trying to reduce the size of the html timetables. For this, i would like to change two things:
1) in teachers timetables, when a teacher teaches the activity alone, his name is not printed. However, if he/she has a co-teacher, then both teachers' names are printed, making the shell too wide. How can i skip printing the names?
2) in teachers timetables, when a specific classroom is used, it is printed in the shell. How can i skip it?
I've read the instructions here, but i couldn't find the way to do it (shouldn't be there a span for the teachers field, so that i ask not to print it?)

Thank you for your time
Title: Re: Skip printing some information
Post by: Liviu Lalescu on October 09, 2023, 09:36:52 PM
Hello,

Volker knows better than me. However, I am attaching the modified CSS file. I generated with HTML level 7 (colors) - I think it works for level >= 3. Use a diff program like KDiff3 to see what I did.
Title: Re: Skip printing some information
Post by: xtzetzias on October 10, 2023, 01:12:40 PM
This seems to be a solution, indead. Thank you!
Title: Re: Skip printing some information
Post by: Liviu Lalescu on October 10, 2023, 03:17:29 PM
You're welcome! :)
Title: Re: Skip printing some information
Post by: xtzetzias on October 16, 2023, 08:10:10 PM
Could you also please tell me,
Is there a way to skip printing the same information as above when printing through the fet's interface?
 
Title: Re: Skip printing some information
Post by: Liviu Lalescu on October 16, 2023, 08:18:13 PM
No, unfortunately Volker did not design this. It might be possible as a customization.
Title: Re: Skip printing some information
Post by: xtzetzias on October 16, 2023, 08:24:04 PM
Ok, thanks!
Title: Re: Skip printing some information
Post by: Liviu Lalescu on October 16, 2023, 08:49:29 PM
Thinking some more, it might be a great idea to be added in the official FET, I think. We might make it, if Volker agrees with me.
Title: Re: Skip printing some information
Post by: xtzetzias on October 16, 2023, 08:51:19 PM
That would be nice!
Title: Re: Skip printing some information
Post by: Volker Dirr on October 16, 2023, 09:00:38 PM
The problem is that QTextducument doesn't support all html and css features. So it might be a bit more complicated. Only adding a few additional css information by the interface might not work.
Title: Re: Skip printing some information
Post by: Liviu Lalescu on October 16, 2023, 09:04:38 PM
No, Volker, just add a Boolean like for tags, and modify the export code.
Title: Re: Skip printing some information
Post by: Volker Dirr on October 16, 2023, 09:28:19 PM
Look like there are many places that must be modified in that case.
hmm... let me think a bit.
Title: Re: Skip printing some information
Post by: Liviu Lalescu on October 17, 2023, 07:58:04 PM
We implemented it and I hope it will be ready as a new official version in 1-2 days. Stay tuned.
Title: Re: Skip printing some information
Post by: Liviu Lalescu on October 20, 2023, 04:46:17 PM
Hello, @xtzetzias ,

The new version is ready, with this new feature (hopefully implemented correctly, because it was done by me, not by Volker, who is the main author of the timetables export/print).

Thank you for the good suggestion!
Title: Re: Skip printing some information
Post by: xtzetzias on October 20, 2023, 10:32:39 PM
It seems to work fine. Thank you!