Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Click button Actions > Run tool
  • Default templates are: Avery Standard Labels and Basix 55-459-007 (do not delete those)
  • I started creating template for 3AMK label (Finn-ID 38mm x 25mm), but it is unfinished. And I need help with the code!  / 12.6.2020 jmiettunen
[% FOREACH item IN items %]

...


    [% IF loop.index % 1 == 0 %]

...


        [% SET label_index = 1 %]

...


        [% UNLESS loop.first %]

...


            </span>

...


        [% END %]

...


        <span class="page">

...


    [% END %]

...



    <div class="label label[% label_index %]">

...


        [% item.

...

<br/>

[% item.itemcallnumber %]

<br/>

...

itemcallnumber %]
    </div>
    [% IF loop.last %]</span>[% END %]

...


    [% SET label_index = label_index + 1 %]

...


[% END %]


  • I created a layout for 3AMK label (Finn-ID 38mm x 25mm)

html, body, div, span, h1 {
  margin: 0;
  padding: 0;
  border: 0;
}

body {
  width: 8.5in;
}

.page {
  padding-top: 1.18in; /* Height from top of page to top of first label row */
  margin-left: 0.098in; /* Width of gap from left of page to left edge of first label column */

  page-break-after: always;
  clear: left;
  display: block;
}

.label {
  width: 1.5in; /* Width of actual label */
  height: 0.98in; /* Height of actual label */
  margin-right: 0in; /* Distance between each column of labels */

  float: left;

  text-align: left;
  font-weight: bold;
  overflow: hidden;
}

  /* Uncomment for testing and debugging */
  /* outline: 1px dotted; */
}

.page-break  {
  clear: left;
  display: block;
  page-break-after: always;
}
  • I made one batch with 5 items, so it can be used to print using the template and layout.
  • ButAlso, I have no idea how to set Printer profiles, because there is no example for it. / 12.6.2020 jmiettunen

...