Jump to content

Publisher - Data merge for each page in a document


Recommended Posts

I sell bundles of digital papers on Etsy, and need to create "sets" with varying numbers of images per page (ie one set with 2 images per page, another with 4, another with 8 etc).

At the moment, I have each of these layouts as a different document, and run the same csv (with the paths to each of the images in the bundle) on them separately. Each bundle contains anywhere from 20 to 60 images.

It would be a nice little time saver if I could run the data merge just once to create all of the sets for each bundle.

I've tried adding the layouts for each set to one document - but running the data merge on it doesn't create a "set" for each page. It adds the first two images to page 1, the next four images on page 2 etc.

Is it possible to get the data merge to run through the entire csv for EACH page in the document, before moving onto the next page?

And is there a tutorial or guide that goes through all the different settings in the reference fields panel?

Thanks!

Link to comment
Share on other sites

Welcome to the Affinity forums, @Andara.

What you want to accomplish doesn't match with how Data Merge works, I'm afraid, and I'm pretty sure that using separate documents is the only way to accomplish it.

For the Fields panel, I would suggest starting with the Help if you haven't already (https://affinity.help/publisher2/en-US.lproj/pages/Panels/fieldsPanel.html) and the "See also" references at the bottom of that page. That includes a section on Data Merge. Then, please feel free to ask questions.

Or, perhaps the 3 Data Merge topics in the Legacy V1 Publisher Tutorials will help.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Link to comment
Share on other sites

You're welcome.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Link to comment
Share on other sites

Thanks for the response, @walt.farrell. I did half expect that it wasn't possible  😞

I've already checked out the Help section, but to be honest, its a bit light on. I still have no idea on what half of those options actually do, or how to use them! I feel like I'm not really using the data merge to it fullest potential.

Link to comment
Share on other sites

1 hour ago, Andara said:

I feel like I'm not really using the data merge to it fullest potential.

There's are some good non-Serif tutorials about Data Merge on YouTube, too, easily found by searching, if the official Serif Help and tutorials don't cover something.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Link to comment
Share on other sites

4 hours ago, Catshill said:

I produced a programme that contained three different product lists.
I ran a data merge on three separate APu Documents. I then placed each of the three output documents into the main document.

That sounds like an interesting approach; thanks for mentioning it.

I'm curious what method you used to combine them in the end. You mention "placed" but do you mean Place, or Add Pages from ...? 

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Link to comment
Share on other sites

On 8/22/2024 at 5:47 AM, Andara said:

At the moment, I have each of these layouts as a different document, and run the same csv (with the paths to each of the images in the bundle) on them separately. Each bundle contains anywhere from 20 to 60 images.

It is possible to have multiple different data merge layouts on top of each other on one page. In other words you could have your layouts in different 'Layers' on each page of the document. Note: these Layers are basically just containers (or groups).

Which image goes into which Layer is configured in the CSV. That way you can merge different numbers of images on each page.

I assume the setup is a bit challenging but if it works the result could speed up the process just as you are looking for.

I could try to create a sample document but this may take a little.

d.

Affinity Suite on Windows (V2) and iPad (V2). Beta testing when available.

Windows 11 64-bit - Core i7 - 16GB - Intel HD Graphics 4600 & NVIDIA GeForce GTX 960M
iPad pro 9.7" + Apple Pencil

Link to comment
Share on other sites

1 hour ago, dominik said:

I could try to create a sample document but this may take a little.

I looked into what I have on mind but, indeed, it is not an easy thing to set up. I'll come back.

d.

Affinity Suite on Windows (V2) and iPad (V2). Beta testing when available.

Windows 11 64-bit - Core i7 - 16GB - Intel HD Graphics 4600 & NVIDIA GeForce GTX 960M
iPad pro 9.7" + Apple Pencil

Link to comment
Share on other sites

On 8/23/2024 at 9:32 AM, walt.farrell said:

There's are some good non-Serif tutorials about Data Merge on YouTube, too, easily found by searching, if the official Serif Help and tutorials don't cover something.

Yes, I've watched a few YT videos on it now. Most are fairly basic, and I haven't found any that cover all the settings in the field panel.

15 hours ago, dominik said:

It is possible to have multiple different data merge layouts on top of each other on one page. In other words you could have your layouts in different 'Layers' on each page of the document. Note: these Layers are basically just containers (or groups).

Which image goes into which Layer is configured in the CSV. That way you can merge different numbers of images on each page.

I assume the setup is a bit challenging but if it works the result could speed up the process just as you are looking for.

I could try to create a sample document but this may take a little.

d.

This sounds like an interesting approach. It probably wouldn't work though, as the layouts aren't all the same page size and orientation.

 

20 hours ago, Catshill said:

I produced a programme that contained three different product lists.
I ran a data merge on three separate APu Documents. I then placed each of the three output documents into the main document.

That pretty much sounds like what I'm currently doing - and by the looks of it , will need to continue to do!

Link to comment
Share on other sites

1 hour ago, Andara said:

It probably wouldn't work though, as the layouts aren't all the same page size and orientation.

No, it won't work with different page sizes. I've been working on it but haven't got it to work completely. Basically it does but I somehow mixed up something in my data source.

Most likely @Catshill's solution could be your solution. Good luck.

d.

Affinity Suite on Windows (V2) and iPad (V2). Beta testing when available.

Windows 11 64-bit - Core i7 - 16GB - Intel HD Graphics 4600 & NVIDIA GeForce GTX 960M
iPad pro 9.7" + Apple Pencil

Link to comment
Share on other sites

 

On 8/23/2024 at 7:29 AM, Catshill said:

I produced a programme that contained three different product lists.
I ran a data merge on three separate APu Documents. I then placed each of the three output documents into the main document.

Tips:

When you create the three product source files in APu make sure the page sizes, styles* and master pages match the main document they will be merged into. The easiest way to do this is to copy the main document three times.

Filename: Use the suffix ‘unmerged’ for these documents e.g. “unmerged Product 1” and when you have run the merge, save them as “merged Product 1” and so on.

Use the merged versions to import into the main document. As these are linked any changes will be automatically incorporated into the main document. 

In order to keep version control sane, make changes to the unmerged versions and run the merge again, otherwise you run the risk of having mixed up products. If you do edit the merged version, don’t use the unmerged one again or run a merge again for this product.

By setting up customised *styles based on each other for each product you can vary their appearance so that each product has its own characteristic.

Finally, it takes longer to explain than to do 😀

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.