Basic knowledge of working with Dreamweaver is recommended. Prior experience developing online businesses with the Business Catalyst Platform is not required.
Beginning
Business Catalyst also includes prebuilt modules that enable you to insert complex features directly in your web pages with a few mouse clicks. In this tutorial you'll insert and configure modules, and then use CSS styles and tag attributes to customize the features to suit the specific requirements of an online business.
This article is divided into the following sections:
The Business Catalyst Platform provides the functionality your clients need to run a successful online business. The interactive features, including web forms and search capabilities, engage visitors and encourage participation. And you can configure web forms to use workflows that route the submitted data to moderators via e-mail, so that they can approve user-generated content before publishing it.
Web forms capture the contact details of potential customers in the backend database; later, that information can be leveraged to send targeted e-mail campaigns and promotions that encourage them to subscribe to newsletters, purchase products, and schedule services. By providing this type of two-way communication, you strengthen the company's brand while increasing sales and facilitating the processing of customer service requests.
For the purposes of this article, you'll be creating an online business for a fictitious company named House Swap—a barter-based vacation home sharing service (see Figure 1).
The Business Catalyst extension for Dreamweaver enables you to connect to your remote Business Catalyst site and use Dreamweaver to create and edit templates, pages, and CSS style sheets—as well as manage and upload site files.
If you've never used Business Catalyst before, be sure to keep track of the e-mail address (your user name) and password that you use when you set up your trial site. You'll use these authentication details to log into the Business Catalyst panel in Dreamweaver and the Admin Console (online interface) in a browser.
If you haven't already worked with the Admin Console for a Business Catalyst site, be sure to read Introducing the Business Catalyst Admin Console to learn more.
Download and uncompress the sample files provided on the first page of this article. Save the expanded folder in a convenient location on your drive. After you've installed the Business Catalyst extension for Dreamweaver, you'll also need to launch Dreamweaver, select your trial site from the site list in the Business Catalyst panel, and use the Quick Site Setup wizard to define the site and download the site files so that you can work with the site locally. As you define your site, be sure to choose the sample files folder (named first_bc_site) and set it as your local root folder.
For detailed instructions about defining a site for Business Catalyst, see Using the Business Catalyst extension to edit a site in Dreamweaver.
At this point, when you look at the Files panel in Dreamweaver, you should be connected to your remote site and see all of the site files (the default files that come with the trial site and the sample files in your local root folder) displayed in the Files panel (see Figure 2).
The existing index.htm page is just a placeholder with a "Coming soon" image. Temporarily select Remote view from the menu above the Files panel and select index.htm. Right-click (or Control-click) the file and choose Edit > Delete to delete it. Switch the menu back to Local view and then delete the index.htm file from your local site folder as well.
To make the sample file assets available to the live site, you need to upload them. Follow these steps to upload all of the site files:
Since this project begins from scratch, you'll begin by using one of the included CSS layout files that come with Dreamweaver to build the site's template. These handy HTML/CSS pages make it easy to create XHTML-compliant pages quickly—and with Business Catalyst, you can use any layout you'd like. You can use table layouts, or even hand-code the page layout if you'd prefer. But for the purposes of this article, you'll work with a specific CSS layout that fits the provided source images.
Follow these steps to create the site template:
<p> or a <h1>, <h2> or <h3> tag selected. Move one over to the left in the breadcrumb trail and select <div.content>. Clicking this tag selects the entire center column (see Figure 4).
<div> tag with the content class is selected, choose Insert > Template Objects > Business Catalyst Editable Region. A turquoise label and border surrounds the <div> tag, to define the ContentArea. This is the region where the unique page content will exist, surrounded by the template content that will remain the same for all pages. (Unlike other DWT files you may have created in Dreamweaver, Business Catalyst templates should only have one editable region defined).Next, you'll customize the template so that it reflects the mood and branding of the online business. You'll insert some images and text; you'll also update the page properties to change the template's appearance. Follow these steps:
In the Underline style menu, choose: Show underline only on rollover. Click the B (Bold) icon to make the text links bold.
The recent updates to the template are reflected in the Design view. In this next part, you'll use the CSS Styles panel to update some of the existing rules to add the company logo and change some of the div tag background colors.
The CSS Styles panel is a powerful tool in Dreamweaver. When you use it in conjunction with the tag selector, it makes it easy to access specific rules and make changes quickly.
Follow these steps to continue updating the appearance of the main.dwt template:
.container .header a #Insert_logo
Note: You may need to drag the bottom of the CSS Styles panel down to expand its height in order to see the Properties pane and delete the rules.
<div.header> to select the <div> tag with the .header class assigned (see Figure 7).
.header class are displayed. Click the Edit Rule button (pencil icon) at the bottom of the CSS Styles panel to edit the .header style (see Figure 8).
Take a moment to view the page in Design view to see the recent changes. Next, you'll update a few more rules to add different background colors. Follow these steps:
<div.container> tag. In the CSS Styles panel, click the Current tab (if it is not already selected). The CSS Styles panel displays the current rules applied to the .container class.<div.content> tag. In the CSS Styles panel, the Current tab will still be selected. The CSS Styles panel displays the current rules applied to the .content class.A thin gray border extends past the left side navigation, along the top of the main content area. The design is really shaping up now. There's just a few more styles to update. Follow these steps:
<div.sidebar1> container. In the Properties pane of the CSS Styles panel, select the existing hexadecimal color value (#EADCAE) and replace it with the new color: #658F91. Click the Edit Rule button (pencil icon) to launch the CSS Rule Definition dialog box. In the Box category, set the height field to 785 pixels.<div.sidebar2> container. Click the Edit Rule button (pencil icon) to launch the CSS Rule Definition dialog box. In the Box category, set the height field to 775. In the Background category, set the Background-color to: #658F91 (the same blue as Sidebar 1).ul.nav a, ul nav a:visited. In the Properties pane, replace the existing background color value (#C6D580) with the new color value: #F5E6ACul.nav a:hover, ul.nav a:active, ul.nav a:focus. In the Properties pane, replace the existing background color value (#ADB96E) with the new color value: #52301C. After making these changes, the left-side navigation links will appear yellow on the up state and dark brown (with white text) on the over state. Click Live view to interact with the rollover states and see the new colors.Now that the navigation is set up and the containers are styled to match the design, the last remaining task to build the template is to populate it with new text content. In this part, you'll copy the text from the provided text files and paste it into each container. Follow these steps:
<p> tags inside the sidebar1 <div> tags. While the <p> code is selected, choose Edit > Paste to paste the contents of your clipboard into the sidebar1 area. Click in the Design view area again to see the new text appear.<h4> tag and press the Delete key to remove it. Highlight the remaining paragraph text until the entire sidebar2 text is selected. Press the Delete key to remove it. In Code view, select the remaining empty set of <p> tags in the sidebar2 <div> (see Figure 10).
<p> tags inside the content area (see Figure 11).
<p> tags within the footer container. While still in Code view, choose Edit > Paste to paste in the new footer text.Now that the CSS rules are updated, you'll move the rules from this DWT file into their own external style sheet. Follow these steps:
body) and press and hold the Shift key while you select the last style (a). While all of the styles in the list are selected, right-click the list and choose the option: Move CSS Rules… (see Figure 12).
Note: The remaining empty <style> tags are still in the head section of the main.dwt source code. It's fine to leave this empty tag, but if you'd prefer to remove it, right-click the <style> tag and choose Go to Code in the context menu that appears. The empty set of <style> tags are presented in the Code view; simply highlight the entire set and press the Delete key to remove them. After making this change, the empty <style> tag is no longer listed in the CSS Styles panel.
At this point, the template has been edited and it is ready to use; and the styles are now stored in an external, linked CSS file, making it easier to edit them later. Choose File > Save to save the main.dwt file, and then close it. Now you'll create the index page (Home page) for the site. Follow these steps:
<center> tag to select all of the existing code. Press the Delete key to delete it.<p> tags surrounding the placeholder text and paste the contents of the clipboard to populate the page.In a browser, enter the address for your trial site. You can enter just the domain name, without the index.html, like this (replacing my-site with your site's address):
my-site.businesscatalyst.com
The index page appears, surrounded by the contents of the main.dwt file. Its appearance is dictated by the rules in the linked primary.css file. This is the workflow you'll follow whenever you are building pages that are applied to templates in Dreamweaver. In the next section, you'll use the same template to build out other pages, and insert new functionality using the modules that are included with the Business Catalyst Platform.
The provided sample files (used as the local root folder) contain some prebuilt pages that you uploaded in the previous section. These files located in the pages folder, and they are named bernal.html, castro.html, haight.html and noe_valley.html (representing houses available to swap in different San Francisco neighborhoods). You can examine these pages in Dreamweaver by double-clicking their file names and viewing them in the Document window. Or, if you prefer, you can visit your site and append the file names at the end of the URL in a browser's address bar to preview the pages online. In this example, these prebuilt pages are needed to populate the site, so that you can experiment with the site-wide search functionality that you'll add in this part of the tutorial.
First, use Dreamweaver to create the page that will display the search field and results. Follow these steps:
<p> tags remains in the Code view.<p> tags, type the following:Search homes to swap
Enter a neighborhood name in the search form to find available houses:
<p> tags.<p> tags.To configure and insert the search module, you'll need to access the Admin Console for your site. Follow these steps:
Note: It is a best practice to log into the Admin Console and leave it open in a browser window, so that you can make changes online without logging back in.
Note: By default, the search results appear below the search form. Search results are dynamically displayed based on the placement of the {search_results} tag. If desired, you can configure the search results to display on a separate search results page. For more information, see Working with the Site Search module.
Now it's time to check your work. Follow these steps to preview the new search form and test it.
Now that you've inserted and configured the search feature, it's time to create a new page with a custom web form that enables visitors to submit details about their house to share with the other participants. Proceed to the next section to learn how to use the Webform Builder to create forms.
The fictitious online business is taking shape now. At this point you've created the template, the Home page and the Search page to enable visitors to find homes that are available to swap. In this section, you'll create the Share page that includes a customized web form so that visitors can submit their house and participate in the bartering process.
Although you can create and configure Web Apps (custom content types that gather and display user-generated content, such as recipes, book reviews, camping tips, and more), doing so is outside the scope of this article.
Generally speaking, it is a best practice to follow one of the two strategies when collecting user-generated content to display on the site to help prevent spam:
In this article, you'll use the second strategy and create a web form with a workflow. Follow these steps:
Select the Required option. Enter Bernal Heights in the Item field, and then click the Plus (+) button to add a new item. Repeat this step four more times to add Castro, Haight, Noe Valley and Other to the list options (see Figure 16).
Note: To delete a form element, hover over it in the preview and then click the Delete button (red circle icon). If you need to edit a form element, hover over it and click the Edit button (pencil icon). All of the form elements are completely editable at any time.
Make sure the Required option is not selected, to make this element optional. Click Save.
Select the Required option. Enter Cats OK in the Item field and then click the Plus (+) button to add a new item. Repeat this step two more times to add Dogs OK and No pets allowed. Click Save.
Note: Using the Webform Builder, you can develop forms that are deployed on other, non–Business Catalyst sites. For example, if a business has several sites and only one is hosted with Business Catalyst, you can click the option to Get Web Form HTML Code in the right sidebar, copy the code, and then paste it into any static or dynamic site page. The form will still work as expected, and the data will be captured in the backend database for the Business Catalyst Admin Console where it was created.
Now that the form has been created, switch back to Dreamweaver and create the Share page to insert it using the Business Catalyst panel. Follow these steps:
<p> tags, type the following: Share your homeSelect this line and choose Header 1 as the format in the Property inspector.
<p> tags and type: Enter the details about your house in the form below:<p> tags. Press the Down arrow to move your cursor to the bottom set of <p> tags.The Share page is now live on the remote site. In a browser, visit your site's home page. Click the navigation item named Share Your Home to see the Share page you just created. Test the form's elements by filling in the form and submitting it. In a real-world example, the data that you submit would be forwarded to the moderator via e-mail.
Note: The instructions for setting up users and defining roles are beyond the scope of this article, so in this example the workflow to forward the form data to the moderator is ignored. However, if you are familiar with working with users and roles in other Content Management Systems, it is a fairly straightforward process in Business Catalyst. In the Admin Console, you can choose Admin > Manage Users > Create a new user to add the contact details for a new user of the site. Then, you can choose Admin > Manage Roles > Create a new role to create a moderator role, set permissions and add a user to the role.
Next, you'll learn how to create a contact form on the Contact Us page using the Business Catalyst Platform to make it easy for visitors to contact the business owners and make inquiries. You'll also see how to customize the form with CSS formatting.
In this last section, you'll learn how to insert a contact form, a commonly requested feature from web clients to build out the Contact Us page. You'll also learn about module layouts and how to control both the appearance of modules.
You'll begin by building the Contact Us page. Follow these steps:
<p> tags remains in the Code view.<p> tags, type the following: Contact us. Select this text and use the Property inspector to set the format to Heading 1.<p> tags. Press the Down arrow to move your cursor to the bottom set of <p> tags.
The Contact Us page is now live on the remote site. In a browser, visit your site's home page. Click the navigation item named Contact Us to see the Contact page you just created. Test the form by filling in the fields and submitting it. If you enter a valid email address, you'll receive the default confirmation message indicating your data was received.
Note: As with all the other features in a Business Catalyst site, auto-reply email messages triggered by forms can be completely customized and redesigned. You can even disable the auto-reply messages, if you like.
As mentioned previously, one of the huge benefits of a Business Catalyst online business is that all of the site activity is recorded in the backend database. After submitting the form, log in to the Admin Console in a browser and click Home to see the Dashboard. Scroll down and you'll see all of the site activity recorded in the Live Feed (see Figure 19).
You can click the links in the Live Feed to jump to the contact details for the visitor. This enables you to leverage each potential customer and utilize the user management features to send customized email campaigns, subscribe visitors to secure zones, create customer loyalty programs, apply discount codes to specific products, and much more.
Return to Dreamweaver and the Contact page. In this part, you'll see how easy it is to apply CSS styles and format the form to fit your site's design. Follow these steps:
<form> tag to select the entire region of the contact form.<div.webform> tag. Click the New CSS Rule button to create another new style. In the New CSS Rule dialog box, leave the default setting for the Selector Type (compound) and the other options. Click OK.
In the section on inserting and configuring modules, you edited the search results layout page to control the width of the search results that are displayed on a page. In this part, you'll learn how to use another method for customizing modules. Rather than editing the CSS rules, you'll use the Business Catalyst panel to add tag attributes to layouts to extend the functionality and display of the dynamic data generated by modules.
The tag attribute insert feature is contextual. The interface will only appear when a module layout is currently open in the Document window. And it goes a step further, because different module layouts can use different subsets of tag attributes. The Business Catalyst panel will only display the applicable tags to insert in the layout that you're editing. Follow these steps to learn how to insert tag attributes in a layout file.
tag_counter and tag_name. In the next line, there's a single tag: tag_description. Each of these module tags trigger the database to display specific dynamic data. For example, tag_counter is a numeric value that displays the number of matching search results. The tag named tag_name displays the name of the matching page, with a link to visit the page and the {tag_itemtype} displays a text description of the type of file found in the search results (web page, announcement, or other type). If you don't want the type text description to display, select the tag in Design view to highlight it, and then press the Delete key to remove it (see Figure 21).
Note: If desired, you can also create <div> tags or table cells in the layout pages to control the layout of specific tag data, and position the tags in the desired arrangement.
{tag_image} in the list. This tag displays an icon, alerting the visitor to the type of matching content in the search results (web page, announcement module, etc.).{tag_description} on the second line. In the Tag Attribute Insert menu, select the {tag_image} tag and click Insert. The tag is inserted in the site_search.html layout page.This example just scratches the surface of the flexibility you have when working with modules. As you've seen in this article, you can use templates to maintain the look of web pages, you can use CSS style sheets to format the page elements, and you can use a combination of HTML, CSS and tag attributes to edit the appearance of module data. Every system message, confirmation page, form element, navigation item—everything you see in Business Catalyst—is completely customizable, down to the last pixel.
This example project illustrates the basic workflow you'll use when developing dynamic sites with the Business Catalyst Platform. Using the Business Catalyst extension, you can use the Dreamweaver authoring environment to create templates, edit pages and define the site's design. By leveraging the modules, you can add the features your clients request, and you can use standard HTML and CSS code to control their appearance.
To learn more about working with Business Catalyst, read these other Developer Center articles:
To learn more about working with modules, visit the Business Catalyst Support Central Knowledgebase. And be sure to visit the Business Catalyst Developer Center to get more articles, tips and best practices for building online businesses with Business Catalyst.