WB Siteforce
WB Siteforce
WB Siteforce
Site.com Workbook
Table of Contents
Wrapping It Up..................................................................................................................................33
i
Table of Contents
ii
About the Site.com Workbook
System Requirements
To use Site.com, we recommend:
• Mozilla® Firefox® or Google® Chrome for best performance. Windows® Internet Explorer® versions 6.0 and 7.0 are not
supported.
• Disabling the Firebug extension for Firefox, if installed, as it can impact performance.
• A minimum browser resolution of 1024x768.
Intended Audience
This workbook is designed for those who have little or no experience using Site.com.
1
About the Site.com Workbook
• Select a view (1) on the Overview tab to view its contents (2).
◊ All Site Content—Create folders to organize your site content. In this view, you can also create pages, templates, and
style sheets, and import assets.
◊ Site Pages—Create site pages, open and edit pages, access page options, create site map links, and organize the site
map. You can also switch between the default site map view ( ) and the list view ( ).
◊ Page Templates—Create page templates to base your site pages on, open and edit existing templates, and access template
options.
◊ Style Sheets—Edit the site’s style sheet or create new style sheets.
◊ Assets—Import and manage assets, such as images and files.
◊ Trash Can—Retrieve deleted items. When you delete a page, template, stylesheet, or asset, it goes into the trash can.
Deleted items remain in the trash can indefinitely. Retrieved items are restored to their original location. If the original
location no longer exists, they are restored to the top-level root directory.
◊ Recent Changes—View information about the most recently modified files.
◊ Publish History—View information about the published files.
◊ Site Configuration—Configure site properties such as the site name, create URL redirects, manage domain information,
and manage user roles.
2
About the Site.com Workbook
◊ Preview your site or generate an anonymous preview link to send to other users.
3
Creating a Site and Importing Assets
Importing Assets
Next, you’ll import the assets from the CirrusAssets.zip file you downloaded to your computer.
1. From the Overview tab, click Import.
2. Click Browse... and locate the CirrusAssets.zip file.
3. Click Open.
4. Select all the boxes in the Import an Asset dialog box.
5. Click Import.
6. Close the Import an Asset dialog box.
7. Click the All Site Content tab to see your assets.
You should see some graphics, two style sheets, and a JavaScript file called jquery.flexslider-min.js. Check your
zipped file to make sure everything imported correctly.
4
Creating A Site Template
6. Click .
7. In the drop-down list, select main.css.
8. Click next to main.css to add it to the template. The background of the panel turns blue.
9. Click to expand the Page Elements pane if you can’t see it.
10. Under Layout, drag a Panel to the page. Make sure to keep it selected.
11. Click the Properties pane, and type header in the ID field.
12. Press ENTER.
Now, that you’ve created your template, created your first panel, and attached the style sheet, you can add the logo, the
navigation menu, and the content area to the template. You’ll use cirrus-logo.png for the graphic and a Menu element
for the navigation menu. The Menu element automatically builds your navigation menu from pages you create in your site.
There are two ways to add elements to a page. You can either drag them onto the page from the Page Elements pane like you
did when adding the header panel, or you can use the Page Structure pane. Sometimes it can be hard to get elements in the
right place when dragging them to the page, especially if you are using a small laptop screen. So, you can also use the Page
Structure pane to add elements. The Page Structure pane looks a lot like an outline. From it, you can select the exact panel
or element you want to change.
1. To add the logo, click the Page Structure pane.
2. Select Panel#header and click Add Page Elements > Image.
3. Select cirrus-logo.png and click Apply.
4. Make sure to leave the graphic selected and on the Properties pane, type logo for the Class Name. Press ENTER.
5. To add a panel for the menu, click Panel#header > > Add Page Elements > Panel.
6. Close the dialog box.
7. Using the Properties pane, type navigation in the Class Name field and press ENTER.
8. Select Panel.navigation and click Add Page Elements > Menu.
9. Close the dialog.
10. From the Properties pane, set the Theme Name to Default.
5
Creating A Site Template
Note: The menu element builds automatically from all existing pages in your site. So, you won’t see the menu
until you create pages in a following chapter.
You now have the header complete, so you can add a section on the page to hold content. You’ll add another panel, but this
time you’ll select the main template to add it at the same level as your header.
6
Creating A Child Template
8. Now, break up the second Panel under Panel#content into three columns. Click Panel > > Add Row and Column
Panels > Add Row and Column Panels.
9. Drag three columns on the table selector.
7
Creating A Child Template
Now, navigate back to the main template, and create another child template called Secondary Template.
1. From the main template, click Page Actions, select Create Child Template, name it secondaryTemplate.
2. You’ll need to unlock the content panel to make changes. Click Panel#content > > Override Parent Content.
3. Click OK at the override message.
4. From the Layout section on the Page Elements pane, drag a panel between the header and footer panels.
5. Using the Properties pane, type secondaryContent in the ID field.
6. Your template should look like this.
Now that you’ve created the templates, you’re ready to create some pages based on the templates.
8
Creating Site Pages
Now you’re going to move the Thankyou and 404 pages to the Landing Pages folder. The menu element builds the menus
from the pages that reside in the Site Map. You don’t want your Thankyou or 404 pages to appear in the menu you’re going
to add in a later lesson. So, move them to the Landing Pages folder.
1. Close all templates and pages.
2. On the Overview tab, click Site Pages. In the center, you should see a list of your pages under the Site Pages section.
3. Drag the Thankyou and 404 pages to the Landing Pages folder.
Now, add some simple text to the Thankyou page.
1. On the Overview tab, click Site Pages.
2. Double-click the Thankyou page to open it.
3. Click the Page Structure pane.
4. You’ll need to unlock the content panel to make changes. Click Panel#content > > Override Parent Content.
5. Click OK at the override message.
6. From the Page Elements pane, drag a content block to the secondaryContent panel.
7. Double-click the content block to open the page editor.
8. Replace the default text with Thank you for visiting our website.
9. From the Style drop-down list, select Heading 1.
9
Creating Site Pages
10
Creating the Slider Using Custom Code
<div class="flex-container">
<div class="flexslider">
<ul class="slides">
<li>
<a href="#"><img src="/ultra-thin-banner.jpg" alt="thin-banner"/></a>
</li>
<li>
<a href="#"><img src="/full-laptop-banner.jpg" alt="full-banner"/></a>
</li>
<li>
<a href="#"><img src="/rugged-banner.jpg" alt="rugged-banner"/></a>
</li>
</ul>
</div>
</div>
<script type="text/javascript">
<script src="/jquery.flexslider-min.js"></script>
<script type="text/javascript">
$(window).load(function() {
$('.flexslider').flexslider({
animation: "slide", controlsContainer: ".flex-container"
});
});
</script>
5. Click Save & Close. Now you need to attach the JavaScript script to the home page.
6. Select Page from the Page Structure pane.
7. On the Properties tab, expand the Scripts section, and click beneath Head Scripts.
8. For script source, choose An imported script.
9. For Select the script, choose /jquery.flexslider-min.js.
10. Click Apply.
11. Click Preview Page. Then try clicking the arrows to change the content.
12. Close the preview.
11
Creating the Slider Using Custom Code
12
Adding Text, Graphics, and Video to the Home Page
Adding Text
1. Click the Page Elements pane and drag a Content Block into the bottom-right cell.
2. Double-click the Content Block to begin editing.
3. Replace the placeholder text with this text: Get amazing savings up to $400 with a free memory
upgrade on select best-selling laptops.
4. Using the Style drop down, assign Heading 1 to the text.
5. Click Save.
Adding Graphics
Next, you are going to add a few graphics to the center column.
1. Drag an image element to the center cell.
2. Select the begin_shopping.png from the list.
3. Click Apply.
4. Repeat the steps to add two more graphics below the first graphic.
• find-a-store.png
• live-chat.png
We won’t do this now, but you could also attach a link to the graphics to make them active.
Adding a Video
With Site.com, you can even add videos to your website.
1. Drag a custom code element into the bottom left cell.
2. Paste this code into the Edit Code window.
13
Adding Text, Graphics, and Video to the Home Page
14
Adding a Custom Object
Picklist Status
Values:
15
Adding a Custom Object
• In Progress
• Published
• Archived
16
Adding Custom Tabs
Note: If you have a lot of tabs in your organization already, you may not see the tabs you just added. Click the plus
sign next to the tabs to add the new tabs.
17
Adding Data to the Custom Objects
ITM01 Basic Laptop In Progress Powerful and affordable Looking for dependable laptop-basic-thumb.png
with all the bells and performance to meet the
whistles for home everyday tasks that school and
entertainment. life present? No worry. Cirrus
Basic, with the brisk
performance of Intel® Core™
i3 processors and up to 4GB
DDR3 memory2, makes
tackling daily projects simple
and quick.
ITM02 Rugged In Progress Ballistic Armor The world can be a tough laptop-rugged-thumb.png
Laptop Protection System for place, but the important work
the toughest terrains on you do can’t stop just because
earth. the conditions are harsh.
Cirrus ruggedized
laptops—from the toughest
military-grade option to
flexible, business-ready
solutions—are designed to
resist spills and drops and to
handle almost any situation. If
you have a tough job in a
tough environment, Cirrus has
the end-to-end solution for
you.
18
Adding Data to the Custom Objects
ITM03 Ultra Light In Progress The world's thinnest Cirrus Ultra-Light delivers the laptop-light-thumb.png
Laptop laptop for professionals power you need inside the
on the go. thinnest 14" PC on the planet.
Easy-to-use software keeps the
things you care about at your
fingertips, giving you the best
of everything while sacrificing
nothing.
19
Changing the Guest User Profile
Now edit the individual fields on the custom objects to make them visible in your table.
20
Creating a Web-to-Lead Form
Note: Because site visitors access your public site using the Guest User license, the drop-down list only displays
objects that are available to guest users. To make other objects available, go to the guest user profile, enable the
relevant object's “Read” and “Create” permission, and refresh the list. Also, be sure to set the Field Level Security
appropriately.
7. Click Save.
8. Make sure you have the form selected and, in the Properties pane, type Keep In Touch for the Form Title.
Now you can set some of the form’s submit behavior. You’ll set the redirect page, select a theme for the page, and then hide
some fields that you don't want to user to see on the form.
Now you can click Preview Page to see the form. To test the form, simply complete the fields and click Submit. Check the
leads to see if your’s was added.
21
Creating a Web-to-Lead Form
Tell Me More...
When working with forms, you can customize what your site visitors see if an error occurs when connecting to the data source.
To learn more about error views, See “The Default, Error, and No Data Views” in the online help.
22
Dynamically Displaying Company News Using a Data Table
23
Adding a Record Counter Using a Data Function
Now you’ll add some descriptive text beside the counter so that the number doesn’t appear all by itself. To do this, you need
to edit the content block that contains the data function’s placeholder tag.
1. In the Page Structure pane, hover over Content Block under the Default View and select and Edit.
2. Position your cursor before the data function’s placeholder tag and type Published News Stories: .
3. Click Save.
4. Click Preview Page to see the new counter. Your screen should look like this:
24
Adding a Record Counter Using a Data Function
Tell Me More...
The Count function counts the number of records that contain a value for the selected field. For example, if an object contains
30 records, but only 25 records have a value in the field you specify, the result is 25. Every record must have an ID, so we chose
the Record ID field above to ensure that every record was included.
25
Dynamically Displaying Data on Your Site
1. Select Data Repeater from the Page Structure tab and click .
2. Click Add Page Elements and select Data Element.
3. Select Title as the field to display.
4. Select Text.
26
Dynamically Displaying Data on Your Site
5. Click Save.
6. Repeat for the Description field.
Your screen should look like this:
Now, create the link that, when clicked, opens the Product Detail page and displays the Title, Description, Long Description
fields as well as a picture of the product.
27
Dynamically Displaying Data on Your Site
28
Dynamically Displaying Data on Your Site
1. In the Page Structure pane, select the data repeater and click > Edit.
2. In the Filters section, select the Record ID field.
3. Set Operator to Equals.
4. Set Source to URL query string.
5. Set Value to Id.
6. Your filter should look like this.
7. Click Save.
Now that the Product Detail page is created, you need to ensure it won’t show up in the navigation menu. On the Overview
tab, drag the Product Detail page into the Landing Pages folder.
29
Dynamically Displaying Data on Your Site
30
Changing Site Properties
Note: To find the anonymous preview link, select View Anonymous Preview from the Preview drop-down list.
You can then copy and send the URL to other users to review and test your changes. You can toggle the Anonymous
Preview feature from the Preview drop-down button or from Site Configuration.
31
Publishing Your Site
32
Wrapping It Up
Wrapping It Up
Congratulations! You've completed the tutorials and should have a good understanding of how to create a basic website.
To learn more about Site.com and keep up with the latest news and features:
33