Objective: An advanced feature of the Zmags Auto Links tool is the ability to run a Regular Expression to create multiple links within your Publication.
- The automated linking process doesn’t lend itself to be able to add icons or call to actions when creating the links. This article showcases a few extra steps where you can replace your product id’s or automated URLS with an image that has been uploaded to your account.
- Using a Call to Action will make it that much more intuitive and easy to browse your
Publication and identify links
- Regular Expressions are a powerful and flexible tool for pattern recognition, supported by our Auto-Linker for the purpose of adding links to your publications en masse:
After running the Auto-Linker on your publication, follow the steps below to add a call-to-action:
1) First, choose any link and set up the appearance the way you want them all to look:
Note that the "external source" above is an image which was previously loaded to the Media folder in Publicator.
2) Secondly, export all links to CSV, using the window menu (see below). After you have done so, you will get a "Save File" prompt that will allow you to choose a location to save the CSV to your local disk.
3) Next, open the file up in Excel. The file is currently pretty unreadable, so start by performing a Text-to-Columns operation. Select column A by clicking on the light-grey A button at the top of the window, and then perform the operation as demonstrated in the screenshot below:
(Be sure to use a semicolon for the 'other' box.)
4) Now things should be more presentable. You will see that one of the rows is different from the rest. This is the single link whose appearance you set up in step 1.
Using copy (CTRL+C) and paste (CTRL+V), change the rest of the values in the columns indicated above (width, height, opacity, external source) to match the 'different' row. (Tip: The fastest wan to accomplish this is to change several values, and then copy the whole block that has been changed. Then you can start pasting the larger block instead of just a single value at a time.) It should look like this when finished:
Save this file (CTRL+S), and click 'Yes' when asked whether to remain in CSV format. Return to the Zmags Enriched platform now.
5) Use the CSV manager to re-import the newly updated CSV file, as demonstrated in the screenshot below:
If the CSV is able to import successfully, flip through a few pages with the arrow > button and ensure the links are there. Click "place links on page" and take a look at them to ensure they are correct. After you have confirmed this, remove the old links from the publication by clicking 'File', 'Delete', "All Links" and wait for the Enriched Tools to reload.
After that's done, re-import the CSV file using the procedure outlined in the screenshot above. Once the CSV is imported, simply re-add the newly updated links to all pages by alternately clicking the "place links" and " > " buttons:
FINISHED: Your regex links should now all have the appearance you set up in step 1!
Note: This article utilizes high-resolution images. If you are having trouble reading the text parts of images, use the 'Zoom' feature of your web browser by pressing CTRL and the plus (+) symbol together. You can return to normal later by pressing CTRL and zero (0) together.