Adding page number only to odd pages. - xmpie-users/uStore-js GitHub Wiki

There are various solutions to this:

  1. If you are using InDesign's "facing page" feature, you can use the master page and apply the page number only to the left or right page as required, then apply the master page to the pages that are used for mold pages by uCreate Print.

  2. The JavaScript for the Page Numbering Text can use the modulo or remainder operator to return either empty string or the page number text:

if (state.pageIndex % 2 == 0) {
  return state.pageIndex + " of " + state.pageCount;
} else {
  return "";
}
  1. You can set the Page Numbering Text to show the page number all the time:
return state.pageIndex + " of " + state.pageCount;

         And use the Page Numbering Visibility feature to turn on/off the text box that has the page numbering applied.

return (state.pageIndex % 2) == 0;