8 Working with Mobile Device Content

Create websites for mobile devices using the Mobility feature of WebCenter Sites. You can create, copy, and edit the assets and site navigations of your mobile websites. You can also preview and approve your mobile websites for various devices.

8.1 About Mobile Websites

A mobile website, like your Default website for viewing on desktop/laptop devices, is represented by a site navigation node in the Site Tree of the Oracle WebCenter Sites: Contributor interface. Each node has a different icon which helps you differentiate a site's assets from those of other sites.

Figure 8-1 Site Navigations for the avisports Sample Site

Description of Figure 8-1 follows
Description of "Figure 8-1 Site Navigations for the avisports Sample Site"

At the top, you can see the Default site navigation node for desktop and laptop devices, which was created by default when the site was created. Below are the mobile site navigation nodes named Touch and NonTouch. Those nodes were created by an administrator who then assigned them to Device Groups, that is a group of devices with similar features, such as a group of touchscreen phones.

The Touch site navigation node is assigned to Device Groups for mobile touchscreen devices. The NonTouch site navigation node is assigned to Device Groups for mobile devices with a QWERTY keypad. Under each site navigation node is a set of placed Pages which represent the site navigation. Whereas administrators create the site navigations, contributors place the Pages. Placed Pages can be viewed and edited in the context of a mobile device.

8.1.1 How do I create mobile websites?

To create mobile websites, you create a mobile site navigation under a mobile site navigation node by placing Pages. You can either create content assets and Pages or copy and edit existing content assets and Pages. See About Creating a Mobile Website.

8.1.2 How do I edit mobile websites?

You can edit the Page and content assets of your mobile website just as you would for the Default website in Form View and Web View. In addition, you have the option to edit Pages and content assets in the context of a mobile device, as described in Editing Assets in the Context of a Mobile Device.

8.1.3 How do I preview mobile websites?

You can preview the Page and content assets of your mobile website in the context of either a single mobile device or multiple mobile devices (associated with the same device group), as described in Previewing Assets in the Context of a Mobile Device.

Figure 8-2 Preview of a Page Asset Displayed on a Single Device

Description of Figure 8-2 follows
Description of "Figure 8-2 Preview of a Page Asset Displayed on a Single Device"

Figure 8-3 Preview of a Page Asset Displayed on Multiple Devices

Description of Figure 8-3 follows
Description of "Figure 8-3 Preview of a Page Asset Displayed on Multiple Devices"

8.1.4 How do I approve mobile websites for publishing?

To make a mobile website available for publishing, you must approve its site navigation (Site Navigation asset), content assets, placed Pages, and Device Groups. Since Device Groups are dependent on one another, when you approve one Device Group, you must approve them all. To publish the mobile website to a management system, you must also approve all Device assets associated with that mobile website. See About Approving a Mobile Site Navigation for Publishing.

8.2 About Creating a Mobile Website

Creating a mobile website's navigation is much like creating the navigation for a default website, for viewing on desktop/laptop devices. First, you either create assets and Pages or copy and edit existing assets and Pages for your mobile website. You then create the mobile website's navigation by either placing Pages under the mobile site navigation or copying the navigation and pasting it under another mobile site navigation.

For information about creating a mobile website, see these topics:

8.2.1 About Creating or Copying the Content for the Mobile Website

To create the content for your mobile website, you can:

8.2.2 About Creating or Copying the Navigation for the Mobile Website

The navigation of your mobile website is determined by the placement of the Page assets under a site navigation in the Site Tree of the Contributor interface. You can either place Pages under the mobile site navigation from the Unplaced Pages node, or copy the navigation and paste it under the mobile site navigation. You can also create a page directly in the mobile site navigation by right-clicking any node in the site tree and selecting New Page. See Defining Website Navigation.

Note:

WebCenter Sites offers multiple ways to create a website's navigation. Your site design determines the way in which your website's navigation is created. This section is for users whose site design is configured to allow them to create their website's navigation using the Site Tree in the Contributor interface. For information about how the navigation for your website is created, see your site developers.

8.3 Editing Assets in the Context of a Mobile Device

Editing an asset in the context of a mobile device is the same as editing an asset in Web View, with one difference; your asset is shown on a Device asset representing a mobile device. When you edit the asset in the context of a mobile device, you can edit its content, change the web page layout, change the content layout of a slot, and edit the asset's associations.

Note:

You can also edit the assets of a mobile website in Form View and Web View just as you would for an asset of your Default website. .

To edit an asset in the context of a mobile device:

  1. From the Contributor interface, select the site containing the mobile website whose assets you want to edit.

  2. Find and open the asset you want to edit in the context of a mobile device.

  3. Select the device on which you want to edit the asset's content:

    1. In the asset's toolbar, click the Show/Hide Devices icon.

      The device selection panel opens to the right of the asset.

      Figure 8-4 Device Selection Panel Open to the Right of an Asset

      Description of Figure 8-4 follows
      Description of "Figure 8-4 Device Selection Panel Open to the Right of an Asset"
    2. In the device selection panel, select the device on which you want to edit the asset.

      The Edit view of the asset is shown on the screen of the selected device.

      Figure 8-5 Asset Displayed on the Screen of a Mobile Device

      Description of Figure 8-5 follows
      Description of "Figure 8-5 Asset Displayed on the Screen of a Mobile Device"

      At this point, you can edit the asset as you would an asset for your Default website.

  4. Point to the different areas of the asset's Edit view to determine which areas contain modifiable content. Areas that support drag and drop functionality and other content management actions are highlighted when you point to them.

    Note:

    The types of editable areas you see and how those areas are displayed when you edit an asset in the context of a mobile device are determined by how your developers have coded the asset's web page layout (template).

    For information about the different types of editable areas, see Creating an Asset in Web View.

  5. Edit the content of the asset by clicking in a text area to display either a simple text field or a WYSIWYG-enabled text field. Then, modify the content displayed in the field.

  6. Change the asset's web page layout. For instructions, see Changing Web Page Layout.

  7. Change the content layout of a slot. For instructions, see Changing Content Layout.

  8. Edit the asset's associations:

  9. To save your changes, do one of the following:

    • In the asset's toolbar, click the Save icon.

    • In the menu bar, select Content, then select Save.

  10. To inspect the asset, do one of the following:

    • In the asset's toolbar, click the Inspect icon.

    • In the menu bar, select Content, then select Inspect.

  11. Preview the asset in the context of a mobile device.

8.3.1 Using Placed Page Assets for Mobile Devices

Use the Site Tree in the navigation pane:

  1. In the navigation pane, click the Site Tree bar.

    The navigation pane displays the Site Tree.

  2. In the Site Tree, expand the site navigation associated with the type of mobile device on which you want to edit the asset.
  3. In the expanded site navigation, right-click the asset and select Edit from the context menu.

    A tab opens displaying the Page asset's Edit view in the context of a mobile device associated with the site navigation.

    Note:

    When the Page (or Content) assets are opened for editing, the site navigation icon appears on the left of the asset names on the tabs. This feature is useful when several assets are opened for editing simultaneously. The site navigation icon helps you to identify to which site an asset belongs.

8.4 Choosing Your Preferred Devices for Preview

You can choose one or more devices as your preferred devices in whose context you would like to preview your site. Once you have set up your preferred devices, they are available in the Devices panel in the Contributor interface. You can also use your preferred devices for editing content in the context of these devices in Web View.

To choose your preferred devices:

  1. On the applications bar, click your user name link which is displayed on the right side just before the site drop-down field.
  2. On the Edit Profile page, scroll down to the Sites Preferences section.
  3. In the Preferred Devices section, from the Available Devices box, move your preferred devices--in whose context you would like to preview your site--to the Preferred Devices box.

    Figure 8-6 Preferred Devices

    Description of Figure 8-6 follows
    Description of "Figure 8-6 Preferred Devices"
  4. Click Save and Close to save your preferred devices and return to the Contributor interface.
  5. In the Contributor interface, click Show/Hide Devices to display the Devices panel if it is not already displayed.
  6. In the Devices panel, notice that the devices you preferred for your profile are displayed first, followed by rest of the devices.

    Figure 8-7 Preferred Devices on the Devices Panel

    Description of Figure 8-7 follows
    Description of "Figure 8-7 Preferred Devices on the Devices Panel"

    Note:

    Preferred devices are available in Web View as well as for single preview. You cannot use them to preview your site in multiple devices simultaneously. That is, preferred devices cannot be used with the multi-device preview functionality.

8.5 Previewing Assets in the Context of a Mobile Device

Previewing an asset in the context of a mobile device is much like previewing an asset as it would look on a desktop/laptop device, with one difference; the preview of the asset is shown on a single Device asset or multiple Device assets which represent actual mobile devices. In addition, you can rotate the device to view the preview of the asset in landscape mode and zoom into and out of the asset's preview.

You can access an asset for preview on a mobile device the same way as you would for an asset of your Default website. The only difference being when you use the Site Tree to access a Page asset under a mobile site navigation, the Page is automatically displayed in a mobile device associated with that site navigation.

To preview an asset in the context of a mobile device:

  1. From the Contributor interface, select the site containing the mobile website whose assets you want to preview in the context of a mobile device.
  2. Find and open the asset you want to preview on a mobile device.
  3. In the asset's toolbar, click the Preview icon.

    The preview of the asset opens.

  4. In the asset's toolbar, click the Show/Hide Devices icon.

    The device selection panel opens to the right of the asset.

  5. In the device selection panel, navigate to and select the device on which you want to preview the asset.

    Note:

    If you accessed the asset by using the Search function or the Content Tree, the panel displays a list of devices from all available Device Groups on your system. If you accessed a Page asset from the Site Tree, the panel displays only the devices associated with the site navigation under which that Page is placed.

    The preview of the asset is shown in the context of the device you selected.

  6. (Optional) Click the Show/Hide Devices icon to close the device selection panel.
  7. To rotate the preview, click Rotate.

    The preview of the asset is shown on the mobile device in landscape mode.

    Figure 8-8 Asset Preview Displayed on a Device in Landscape Mode

    Description of Figure 8-8 follows
    Description of "Figure 8-8 Asset Preview Displayed on a Device in Landscape Mode"
  8. To preview the asset at different sizes, use the Scale tool to zoom into and out of the asset's preview.
  9. To preview how the asset would look on the screen of a different mobile device:
    • If the device selection panel is not displayed, click the Show/Hide Devices icon to open it.

      The device selection panel opens to the right of the asset.

    • In the device selection panel, select a mobile device.

      The preview of the asset is shown on the screen of the selected mobile device.

  10. To preview the asset in a new window, in the menu bar, select View, then select Preview in New Window.

    A new browser window opens displaying the preview of the asset in the exact pixel ratio that is configured for the device asset. For example, the Samsung Galaxy S3 device asset is configured with a 720x1280 pixel ratio. Therefore, the preview of the asset in the browser window is shown at the exact same pixel ratio.

    Figure 8-10 Preview of an Asset Displayed in a New Browser Window

    Description of Figure 8-10 follows
    Description of "Figure 8-10 Preview of an Asset Displayed in a New Browser Window"
  11. To preview the asset on multiple devices, either click the Multi-Device Preview icon in the asset's toolbar or, in the menu bar, select View, then select Multi-Device Preview.

    The tab displays the Multi-Device Preview of the asset.

    Figure 8-11 Asset's Preview Displayed in the Context of All iPhone Devices

    Description of Figure 8-11 follows
    Description of "Figure 8-11 Asset's Preview Displayed in the Context of All iPhone Devices"

    The devices that you see belong to the same device group (iPhones device group in this example). If you first previewed the asset on a single device, Multi-Device Preview shows the preview of the asset in the context of all devices belonging to the same device group as that single device.

    To preview the asset on the devices of a different device group, in the Device Groups drop-down list, click the down-arrow icon and then select a device group.

    Figure 8-12 Device Groups Drop-Down List

    Description of Figure 8-12 follows
    Description of "Figure 8-12 Device Groups Drop-Down List"

    The tab displays the Multi-Device Preview of the asset on the devices associated with the selected device group.

For more information about previewing assets, such as previewing an asset as it will look on the website at a future date, previewing an asset with a different page layout, or previewing an asset with segments, see Previewing Assets.

8.6 About Approving a Mobile Site Navigation for Publishing

Approving a mobile site navigation for publishing is the same as approving a site navigation for your Default website. Before a mobile website can be published, its Site Navigation asset must be approved for publishing along with its placed Pages (site navigation) and associated content assets. Approving a mobile website also requires you to approve all the Device Groups on your system. Device Groups are dependent on one another –when you approve one Device Group, you must approve them all. If you are approving the mobile site navigation for publishing to a management system, you must also approve the Device assets associated with that mobile site navigation. See Approving a Site Navigation for Publishing.