网站链接按钮,在InDesign中变网址 [英] Web Link Buttons with Variable URLs in InDesign

查看:345
本文介绍了网站链接按钮,在InDesign中变网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作到很晚一直在开发我们的产品的交互式PDF产品目录是我的上司可以分发数字化,让潜在客户浏览,而无需访问网站的分配。

我们有一个Excel文件,该文件列出了我们产品的所有细节 - 名称,描述,标题,图片,类别等我已经使用的数据合并到创建这个300页的文件,而不是手工复制到每个产品的信息单页。

不幸的是,我现在坚持 - 我已经设计目录以这样的方式,我有我想要一个按钮,如果这个人愿意购买产品的形象,将他们直接在产品页面在线在那里,他或她可以将其添加到购物车中。这是伟大的,但我似乎无法找到一种方法,使图像按钮的链接变量作为页面内容的其余部分。链接到每个产品页面都包含在CSV文件,但没有一个可变的网站链接的方法,我会分别创建了独特的联系,这有点违背了使用数据合并反正目的。

所以,我的问题是 - 有没有办法让一个URL按钮(图像)有一个网络链接功能,可以从一个CSV文件读取和修改每个页面像其他输入的内容?我问在Adobe论坛和我得到的一个答案是,使用JavaScript,因此我来到了这里。如果不是,有另一种方式来自动化的各个环节过程中没有设置它生成的每个网页上?

在此先感谢,

灰粉

解决方案
  1. 我没有测试它,但我认为你首先要确定 HyperlinkPageItemSources 添加() - 方法。这个方法接受一个图像对象,因为它是一个 pageItem 。 (http://jongware.mit.edu/idcs4js/pc_HyperlinkPageItemSources.html)

  2. 然后定义 HyperlinkURLDestinations 添加() - 方法。该方法接受一个URL作为字符串。 (http://jongware.mit.edu/idcs4js/pc_HyperlinkURLDestinations.html)

  3. 定义超链接添加() - 方法。第一个参数是 hyperlinkSource - 这种情况下, HyperlinkPageItemSource - 和第二个是 hyperlinkDestination - 这种情况下, HyperlinkURLDestination 。 (http://jongware.mit.edu/idcs4js/pc_Hyperlinks.html)

有关阅读的CSV文件,并把到一个数组看这里例如(函数parseCSV() ...):的 http://forums.adobe.com/message/3404908#3404908

希望有点帮助!

My work assignment of late has been developing an interactive PDF catalog of our products that my superior can distribute digitally and let potential customers browse without accessing the website.

We have an Excel file that lists all the details of our products - name, description, title, image, category, etc. I have used Data Merge to create this 300 page document rather than hand-copy each product's information to a single page.

Unfortunately I am now stuck - I have designed the catalog in such a way that I have an image that I want to make a button which, if the person wishes to purchase a product, will take them directly the the product page online where he or she can add it to the shopping cart. This is great, but I cannot seem to find a way to make the image button's link a variable as the rest of the page content. Links to each product page are included in the CSV file, but without a variable web link method, I would have to create the unique links individually, which kinda defeats the purpose of using Data Merge anyway.

So my question is this - is there any way to make a URL button (an image) have a web link function that can read from a CSV file and change each page like other imported content? I've asked in the Adobe Forums and the one answer I received was for using JavaScript, so I came here. If not, is there another way to automate the individual link process without setting it up on each generated page?

Thanks in advance,

Asher

解决方案

  1. I didn't test it, but I think you first have to define HyperlinkPageItemSources with the add()-method. This method accepts an image-object, because it is an pageItem. (http://jongware.mit.edu/idcs4js/pc_HyperlinkPageItemSources.html)

  2. Then define HyperlinkURLDestinations with add()-method. The method accepts a URL as string. (http://jongware.mit.edu/idcs4js/pc_HyperlinkURLDestinations.html)

  3. Define Hyperlinks with add()-method. First argument is a hyperlinkSource – for this case a HyperlinkPageItemSource – and second is a hyperlinkDestination – for this case a HyperlinkURLDestination. (http://jongware.mit.edu/idcs4js/pc_Hyperlinks.html)

For reading a csv-file and bringing to an array look here for example (function parseCSV()…): http://forums.adobe.com/message/3404908#3404908

Hope that helps a bit!

这篇关于网站链接按钮,在InDesign中变网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆