Activity Tag Timetable

Started by Vangelis Karafillidis, June 10, 2017, 10:46:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Vangelis Karafillidis

Hello! I checked the activity tag timetable which was exported. So... what happens. When two activities with the same activity tag coincide (when they occupy the same time slot), the timeslot (cell in the html table) is divided into two sub-cells. I would like to have the same information but in a normal single cell, i.e. not divided in two sub-cells. Is there any way to achieve this special form of the timetable? Thanks.


Volker Dirr

Of course 2 activities generates 2 cells.
i can't see an advantage in storing them into a single cell, since you will lose a lot of information by that; because it will be impossible to see which teachers-students-subject-room is connected.
but maybe i missunderstood. maybe you can give us an example and explain why do you think a single cell will be better.

Vangelis Karafillidis

#2
Hello Volker! Thank you for responding.
In normal situations you're right. But, what I'm doing is a "manipulation" (a trick) because of the nature of my problem. I just need this type of formatting. I need the data in a single cell which is not split into two sub-cells. The tags actually (in my real problem) are not tags. For example, I could use Subjects instead of Tags (and again the subjects in my real problem, are not real subjects). So, I don't need the information to be presented in a -let's say- "normal" way. It's quite complicated to analyse my problem in detail. So, if there is any way to achieve this type of formatting (even by writing or modifying some code), please let me know. Thanks again!

Volker Dirr

hmmm... should be possible. i don't have time to test it (and i think i won't test, since this feature is not needed by other users.)

go to file "timetableexport.cpp" in the src/engine direcotry.

check lines 5685 to 5735:
replace all "</tr>" by "<br />".
remove all lines like:
tmp+="XXX";
(XXX are html tags)

Volker Dirr

hmm... the "td" will be still there. you maybe also need to delete the "</td>" stuff and the the html tags in writeStartTagTDofActivities (line 5105 - 5167). i hope this will not conflict with other tables. i haven't got time to check that now.

Vangelis Karafillidis

Thank you for responding. I'm trying to edit the html file with sed. It seems that it works. And it's easier than to compile again FET.