1. John McPeek
  2. Printing
  3. Thursday, 27 July 2017
  4.  Subscribe via email

I am having trouble with an existing template on the new print engine. This is a chairman template that has the midweek meeting schedule with boxes to write in for the meeting preview, student talks, etc. Instead of printing each week on a different page it is now printing them all together.  I am unsure what i should change in my template code to fix this.  I have included a jpg that shows 2 midweek meetings on the same page. Also, i have included my template. Unfortunately, my experience with html is limited so not exactly sure what command would force the next meeting to print on another page.

  Hannibal, OH, USA
Visit 
Comment
  1. Marc
  2. 2 years ago
  3. #561
The quick solution to this is select the same dates in both the From Date / To Date boxes in the bottom right corner of the print dialogue. It will give you a single document for a single week, so a little hassle, but for now it would produce nice prints. But you know that I suppose.
The page break issue is not too difficult, but then not something I'd do in 5 seconds. I am not that kind of a whizzkid. That said, it is already very late over here, and I promised myself an evening walk before tucking myself in. Yawn...
I'll be back.
  1. Budar Bogdan
  2. 2 years ago
  3. #581
hy some one solved this templates to work? please send it to me because i dont now how to make it work.

please dear brothers! bbudar@gmail.com
There are no comments made yet.
Accepted Answer
Marc
Members
Accepted Answer Pending Moderation
0
Votes
Undo

The page breaks for this paper size are defined in line 27 of your template: div#week:nth-of-type(2n+2) { page-break-after: always; }

Change this into:  div#week {page-break-after: always; } 

(A bit of theory: the way it is now, it tells to insert a page break, every time the document arrives at the end of a "week" section that is number 2n+2 in a sequence. With n counting up from 0, a page break will be introduced after 2*0+2, 2*1+2, etc, which is after week section 2, 4, (6-8- etc)
So the number that n should be multiplied with, specifies how many of these sections there are between page breaks, and the number that should subsequently be added specifies the first time a page break occurs. So a page break after 1, 4, 7, 10, 13, etc would look like 3n+1
Anyway: you change that into page break always after every week section. Maybe you can even leave the instruction out, as a page break may be implied. That bit I don't know)

Honestly, this is probably not your solution. You need smaller type. That's easy to fix: in the print dialogue, bottom left hand corner click the TT sign left of the 100% button. This decreases font size. The one to the right increases font size.
But even then you wouldn't fit the template on one page, except in the week of 'this month's presentations'. I do not know how you fixed that before.

And finally: I always wonder what is wrong with the Worksheet template. Plenty of room for comments unless you write REALLY big. Introductory and closing comments on the back. I'd say... But that is a personal choice of course. I just mention it, because I get the impression this template is often overlooked. (3rd option under Midweek Meeting in the print section)

https://www.theocbase.net/support-forum/1097-donations.html

For accessing the database my personal preference is http://sqlitebrowser.org/

For editing templates I like to use http://brackets.io/ 

 

Comment
  1. Budar Bogdan
  2. 2 years ago
  3. #582
hy some one solved this templates to work? please send it to me because i dont now how to make it work.

please dear brothers! bbudar@gmail.com
  1. Budar Bogdan
  2. 2 years ago
  3. #585
please help me
  1. Marc
  2. 2 years ago
  3. #588
what part of your template is not working?
  1. Budar Bogdan
  2. 2 years ago
  3. #589
when i want to print is show on multiple page the are shifded!
i want to print this template o single page peer week if is possible !
thank you very much
  1. Budar Bogdan
  2. 2 years ago
  3. #591
please if you solved this template to show on single page peer week please send me on email bbudar@gmail.com if you want this

and sorry for my poor english :( :( :(
There are no comments made yet.
  1. more than a month ago
  2. Printing
  3. # Permalink
Andrea
Members
Accepted Answer Pending Moderation
0
Votes
Undo

Is it possible reduce the comment box?

Comment
  1. Marc
  2. 2 years ago
  3. #570
Yes it is.
  1. Marc
  2. 2 years ago
  3. #571
I guess you want to know how? ;-) You will have to identify the particular box you want to downsize.
The sizes for the various boxes are given in lines 44, 45 and 46. Their heights are 17, 22 and 17 rem respectively. Change those values.
There are no comments made yet.
  1. more than a month ago
  2. Printing
  3. # 1
Marc
Members
Accepted Answer Pending Moderation
0
Votes
Undo

I include a version that has reduced comment boxes and reduced letter size so as to fit a week on a page. It also has a title for every week. The title is the combined congregation name and meeting title on one line, so as to reduce space. These were some of the things that were suggested and which I tried to pick up.

I know I keep repeating myself, but I do that on purpose: the Worksheets that are provided by the developers of this software are much nicer (imho). But then I am just another user, so I hope I have been of help to some of you

At the same time I will not be developing this any further. I do not like this template very much for myself.

As a suggestion: if you want to modify a template, use a copy of the template outside of the default template folder to modify. (the folder permissions of the default template folder will not allow you to store changes into its files). You may want to define an additional custom template folder in TheocBase Settings.

I always use the Brackets software. You may also use Blue Griffon, Notepad++ or CodeWriter which comes with Windows 10, and I have seen some other users using even different software. On the other hand WordPad, Notepad and MS Word do not work properply or do not work at all.

Attachments (1)

https://www.theocbase.net/support-forum/1097-donations.html

For accessing the database my personal preference is http://sqlitebrowser.org/

For editing templates I like to use http://brackets.io/ 

 

Comment
There are no comments made yet.
  1. more than a month ago
  2. Printing
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!