Page size presets $select widget has been enhanced:
In addition to listing preset page sizes, it now also includes an “edit list…” item (at the bottom of the list). When you select this item, instead of setting the layout width and height values, it navigates to $:/config/TiddlyTools/PasteUp/Sizes and opens it for editing.
Update to TiddlyTools/PasteUp and $:/config/TiddlyTools/PasteUp/Sizes:
The “Settings” page size preset $select list shows the full text of each line from the $:/config/TiddlyTools/PasteUp/Sizes tiddler, and the format used to specify the width and height have changed so that it is now clear what width and height values are used for each preset.
34 x 44 = US letter (portrait)
44 x 34 = US letter (landscape)
34 x 56 = US legal (portrait)
56 x 34 = US legal (landscape)
42 x 60 = A4 (portrait)
60 x 42 = A4 (landscape)
20 x 20 = square (1:1)
30 x 20 = photo (3:2)
32 x 18 = wide (16:9)
Bacause of the complexity of tracking up to five changes I decided to …
only have REVERT LAST change (based on your code)
and offer RESTORE ALL. Which simply overwrites /Layout with a previously saved backup to restore the starting point.
What do you think? Okay?
Of course now I have to figure out how to individually set Z-INDEX for fields because my layout above can end up with, for example, two overlapping fields with identical Z-Index of 2—with unpredictable results.
Anyway. It’s going well. I could not have got here without your help!
Thanks, TT
“pages” lets you define multiple layout grids in a single PasteUp tiddler. All pages in the same PasteUp tiddler use the same grid size and background settings and share the same /layout and /styles tiddlers, but they are each drawn separately, one after another.
The intended use-case is to permit the creation of multi-page printed output. When printed, each page is automatically output on a separate physical page.
Sure. Just go to the “Settings” popup and change the number of pages. It doesn’t alter the existing “Page 1” layout. It just add more grids for the additional pages. You can then move items from Page1 to any of the additional pages.
However… let’s suppose you set pages=3, and move some items from page1 to page 3. Then, later on, you set pages=2. The items on page3 are automatically shown on page 2 (the last page that is now available). Note that the page number assigned to those items remains “page 3” (unless, of course, you then move those items now shown on page 2, which updates the assigned page number).
When a PasteUp tiddler is unlocked (enabed for editing), a new “toggle toolkit” button appears next to the “lock/unlock” button.
When you click this button, a toolkit for making quick adjustments to the current PasteUp tiddler’s /layout appears on the left side of the layout grid.
Select a field from the drop-list at the top of the toolkit. Note that as you hover over the toolkit panel, the selected field will show a dotted border in the layout grid (and in the field table, if it is visible)
Below the drop-list, the selected field’s current (top,left)-(bottom,right) [widthXheight] layout information is shown.
This status line also shows a “delete field” button which will completely remove the selected field from the PasteUp (after confirmation, of course!)
Below the status line are “-1” and “+1” buttons for adjusting the selected field’s width, height, and layer layout values. Note that the field’s width and height values cannot become less than 1 x 1, regardless of how many times you click the “-1” buttons. Similarly, the field’s layer value cannot become less than 0.
Below the width, height and layer buttons are a cluster of four “move” buttons with directional chevron icons. A click on one of these buttons will shift the position of the selected field by one grid square in the corresponding direction.
Currently, I have not included controls for adjusting a field’s page layout value. I also have not included “bring to front/send to back” buttons for adjusting a field’s layer value. Both of these are possible, but I didn’t want to over-complicate the toolkit interface with too many “bells and whistles”.
@TiddlyTitch: in your mockup, you show a “grid” button and a “tools” section. Can you elaborate on what these would do?
A couple of issues came up–but I’ll comment on them later.
Here I just wanted to show I’m using the new tool to good effect.
Some aspects of “tweaking” layout it really makes easy …