Adobe
Products

Top destinations

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • SiteCatalyst
  • Students
  • Elements family

Adobe Creative Cloud

  • What is Adobe Creative Cloud?
  • Design
  • Web
  • Photography
  • Video
  • Students
  • Teams
  • Enterprise
  • Educational institutions

Design and photography

  • Photoshop
  • Illustrator
  • InDesign
  • Adobe Muse
  • Lightroom

Video

  • Adobe Premiere
  • After Effects

Web development and HTML5

  • Edge Tools & Services [opens in a new window]
  • Dreamweaver
  • Gaming [opens in a new window]

Adobe Marketing Cloud

  • What is Adobe Marketing Cloud?
  • Digital analytics
  • Social marketing
  • Web experience management
  • Testing and targeting
  • Media optimization

Analytics

  • SiteCatalyst
  • Adobe Discover
  • Insight

Social

  • Adobe Social

Experience Manager

  • CQ
  • Scene7

Target

  • Test&Target
  • Recommendations
  • Search&Promote

Media Optimizer

  • AdLens
  • AudienceManager
  • AudienceResearch

Document services

  • Acrobat
  • EchoSign [opens in a new window]
  • FormsCentral [opens in a new window]
  • SendNow [opens in a new window]
  • Acrobat.com [opens in a new window]

Publishing

  • Digital Publishing Suite

  • See all products
Business solutions

By business need

  • Digital analytics
  • Digital publishing
  • Document management
  • Media optimization
  • Social marketing
  • Testing and targeting
  • Video editing and serving
  • Web development [opens in a new window]
  • Web experience management
  • See all business needs

By industry

  • Broadcast
  • Education
  • Financial services
  • Government
  • Publishing
  • Retail
  • See all industries
Support & Learning

I need help

  • Products
  • Adobe Creative Cloud
  • Adobe Marketing Cloud
  • Forums [opens in a new window]

I want to learn

  • Training and tutorials
  • Certification [opens in a new window]
  • Adobe Developer Connection
  • Adobe Design Center
  • Adobe TV [opens in a new window]
  • Adobe Marketing Center
  • Adobe Labs [opens in a new window]
Download
  • Product trials
  • Adobe Flash Player
  • Adobe Reader
  • Adobe AIR
  • See all downloads
Company
  • Careers at Adobe
  • Investor Relations
  • Newsroom
  • Privacy
  • Corporate Social Responsibility
  • Customer Showcase
  • Contact us
  • More company info
Buy
  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers
  • Adobe Marketing Cloud sales [opens in a new window]
Search
 
Info Sign in
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Welcome,
My Adobe
My orders
My information
My preferences
My products and services
Sign out
My cart
Privacy My Adobe
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out Privacy My Adobe
Preorder Estimated Availability Date. Your credit card will not be charged until the product is shipped. Estimated availability date is subject to change. Preorder Estimated Availability Date. Your credit card will not be charged until the product is ready to download. Estimated availability date is subject to change.
Qty:
Purchase requires verification of academic eligibility
Subtotal
Promotions
Estimated shipping
Tax
Calculated at checkout
Total
Review and Checkout
Adobe Developer Connection / Digital publishing /

Styling the HTML library template with Dreamweaver

by Derek Lu

Derek Lu
  • Adobe

Content

  • Getting started
  • Viewing the files in Dreamweaver
  • Changing styles in Dreamweaver
  • Where to go from here

Created

14 January 2013

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
Digital Publishing Suite, En...DreamweaverInDesign
Was this helpful?
Yes   No

By clicking Submit, you accept the Adobe Terms of Use.

 
Thanks for your feedback.
Prerequisite knowledge
Experience working with the Adobe Digital Publishing Suite is required. This article assumes you have published public folios and have read HTML implementation of the default library.

User level: Intermediate

Required products
  • InDesign (Download trial)
  • Digital Publishing Suite, Enterprise Edition
  • Dreamweaver CS6 (Download trial)

Other required products

  • Mac OS X - Used to view the template on the desktop with Safari.

Documentation
Adobe DPS - JavaScript Library API

Sample files
default_library.zip
By downloading software from the Adobe Web site you agree to the terms of our license agreement. Please read it before downloading.

The sample files in the article HTML implementation of the default library contain an HTML library custom slot implementation that can be used in the DPS viewer. The template enables you to add a custom tab in the viewer that functions as a library using version 2 of the library and store APIs. This functionality is available to all enterprise customers of the Adobe Digital Publishing Suite through the use of custom navigation slots. As of DPS r22, publishers can replace the default library using their own implementation. These custom slots are implemented using HTML, CSS, and JavaScript. Using code, you can access APIs that allow you to duplicate e-commerce functionality found in the default library and customize it to fit your project. This article will provide tips on how to style the library using Dreamweaver.

Getting started

Begin by downloading the sample files that are provided in the HTML implementation of the default library article. The sample files contain the HTML implementation of the default library. See Figures 1-3  from that article for the various views of the library from the DPS viewer.

Viewing the files in Dreamweaver

  1. Launch Dreamweaver CS 6 and open index.html.
  2. Comment out or remove line 10:
    <script src="AdobeLibraryAPI.js"></script>
    This include is for the DPS library API, which contains a bridge protocol that prevents the page from displaying. The API is used to retrieve folio data, preview images, and conduct transactions. On the desktop, when the API is removed, folio data is returned from the DPS fulfillment XML feed and transactions are not enabled.
  3. To view your folios on the desktop, open Config.js and locate FULFILLMENT_URL. Change the value after "accountId=" to match your accountId. If you need help finding your accountId, see the section titled "Connecting to fulfillment" in Building a custom storefront. You do not need to change the accountId if you would like to use the published folios from the provided account. Keep in mind that this accountId is for desktop testing and is not used in the viewer.
  4. In the document toolbar, click "Live" to view a live rendering of the template (see Figure 1). If your document toolbar is not open, select View > Toolbars > Document.
Figure 1. The live view in Dreamweaver.
Figure 1. The live view in Dreamweaver.
  1. At the bottom of the live panel, select 100%, the Tablet size icon and 768x1024 from the window size menu (see Figure 2).
Figure 2. View properties at the bottom of the live panel.
Figure 2. View properties at the bottom of the live panel.

Changing styles in Dreamweaver

To change the styles in Dreamweaver, verify that your CSS Styles panel is open. If it is not, select Window > CSS Styles. To change a style in Dreamweaver, select the item in the live view and then update the style you would like to change. The following are a few examples of how to change certain parts of the view.

Changing the title

If you would like to change the styles for the "Local" title, click the word and the CSS Styles panel will update (see Figure 3). To change the actual title, open AppView.js and navigate to line 127.

Figure 3. Styles for the "Local" title.
Figure 3. Styles for the "Local" title.

Changing the right banner image

If you would like to change the right banner image, click the right portion of the banner and the CSS Styles panel will update (see Figure 4). To update the image, double-click url("banner_right.png") and browse to the image with which you would like to replace it. Alternatively, you can replace the image on the file system. Keep in mind that the dimensions for the image are 458×140 pixels unless you change it.

Figure 4. Styles for the right side of the banner.
Figure 4. Styles for the right side of the banner.

Changing the grid background

If you would like to change the background of the grid, click anywhere in the grid and then, in the lower left corner of the window, click <div#grid> from the Tag selector (see Figure 5), which will update the CSS Styles panel. To update the image, double-click url("bg_portrait.png") and browse to the image with which you would like to replace it. Alternatively, you can replace the image on the file system. Since a different background is used for portrait and landscape orientations, you will need to switch orientations for the page and turn off or on Live view by toggling the Live button to refresh the styles.

Figure 5. Tag selector in the lower left corner of the Dreamweaver window.
Figure 5. Tag selector in the lower left corner of the Dreamweaver window.
Figure 6. Styles for the grid.
Figure 6. Styles for the grid.

Where to go from here

This article gave you an introduction on modifying the template's CSS using Dreamweaver. To learn more about Dreamweaver and CSS, go to the Dreamweaver Developer Center for CSS.

Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License+Adobe Commercial Rights

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe.

Products

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • Digital Publishing Suite
  • Elements family
  • SiteCatalyst
  • For education

Download

  • Product trials
  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR

Support & Learning

  • Product help
  • Forums

Buy

  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2013 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy | Cookies

Ad Choices

Reviewed by TRUSTe: site privacy statement