BEA WebLogic User Manual page 43

Mobility server
Hide thumbs Also See for WebLogic:
Table of Contents

Advertisement

Reference Implicit Groups
Use the following tag to reference an implicit group:
<mm-id-ref id="content_id">
where
is the ID assigned to the content.
content_id
Target Content for Specific Devices
Groups and layouts provide a lot of flexibility for customizing the content being delivered to
mobile devices
As you organize your content, you may decide that you want to only use part of the material
within a group. For example, you may have an introductory page with ten paragraphs but you
only want the first, third and final paragraph to be delivered to mobile devices. Alternatively, you
might have a table, from which you want to extract content from specific non-adjacent cells for
the smaller screen devices.
There are two methods for managing such content:
Define content to be included or excluded when a particular device is being targeted.
Link the content together through a series of
Link Content Together
Since a group's content can be spread across a number of locations (such as in different cells in a
table) you need to wrap each element in its own body definition.
To maintain the order in which the content gets displayed, you effectively create a linked list with
the body tags: the first body tag references the heading tag, and each subsequent body tag
references the
attribute of the body tag preceding it.
id
<mm-group id="introduction" grouptitle="Introduction">
<mm-head id="hd_introduction" useradded="no">Introduction</mm-head>
<!-- Note the first body is linked to the heading -->
<mm-body id="bd_1" idref="hd_introduction">
<p>This is paragraph 1</p>
</mm-body>
<p>This is paragraph 2</p>
<!–- Note the 3rd paragraph is linked to the 1st paragraph -->
<mm-body id="bd_3" idref="bd_1">
<p>This is paragraph 3</p>
</mm-body>
<p>This is paragraph 4</p>
<p>This is paragraph 5</p>
<!–- Note the 6th paragraph is linked to the 3rd paragraph -->
<mm-body id="bd_6" idref="bd_3">
<p>This is paragraph 6</p>
</mm-body>
</mm-group>
This technique is also useful if you want to extract specific content from a table. Wrap the table in
a group and then, for each cell that you want to extract, wrap its contents within
Again, the order in which you link definitions together will determine the order in which they are
displayed. You could, for example, have the content of the last cell appear before the contents of
the middle cell.
Part III Fundamentals of Mobile Content
elements.
<mm-body>
BEA WebLogic Mobility Server User Guide - 39
<mm-body>.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the WebLogic and is the answer not in the manual?

This manual is also suitable for:

Weblogic mobility server

Table of Contents