Page 1 of 1

Tip: Showing Event Name only the First Time in Grid View

PostPosted: Fri Dec 27, 2013 7:40 am
by John Sindelar
By default our calendar will show the event name in each cell of the grid view. If this is a multi-day event, you may only want it to show up in the first cell. (Scroll the image below to see how the event's display changes after this mod.)

Calexample.png
Calexample.png (124 KiB) Viewed 4643 times


Fortunately this is an easy change to two scripts.

Edit the script "Insert into Calendar - Write additional days ( Date )" and add the following as a script parameter to the line in blue below:
Code: Select all
If (PatternCount ( $$sc_Mode ; "Horiz" ) ; "No Content" )


DaysScript.png
DaysScript.png (90.63 KiB) Viewed 4644 times


Now edit the script "Insert into Calendar - Write additional time" and make a similar change, replacing the script parameter already there with this one:
Code: Select all
If (PatternCount ( $$sc_Mode ; "Horiz" ) ; "No Content" ; $sc_n + 1 )


ScriptTime.png
ScriptTime.png (98.07 KiB) Viewed 4644 times


That's it =)

Re: Tip: Showing Event Name only the First Time in Grid View

PostPosted: Thu Feb 27, 2014 7:06 am
by 3guk
Is it possible to make the text field larger to accommodate this change, as it stands my names are overlapping onto a second line.

Screen Shot 2014-02-27 at 16.05.50.jpg
Screen Shot 2014-02-27 at 16.05.50.jpg (36.31 KiB) Viewed 4510 times

Re: Tip: Showing Event Name only the First Time in Grid View

PostPosted: Thu Feb 27, 2014 7:45 am
by jeffalmquist
Not really I'm afraid. The columns are separate repetitions of a repeating field, so there's no way for the text to "flow" from one column to the next. Just brainstorming here... You might be able to parse your text into chunks and display successive chunks in successive columns, but you'd end up with inconsistent spacing. That would be a pretty complicated mod.