 |
|
ss
Oracle Tips by Burleson |
Using
the Templates You Have Created
Now it is time to create an application page that
uses the two templates created in the previous sections. The page
will be created in the Easy HTML DB Book application so it can be used
for reference in the future.
1.
Navigate to the Application home page.
2.
Click on the Create Page button.
3.
Choose Blank Page and click Next.
4.
Page: 1130 and click Next.
5.
For page name, enter Template Samples and click Next.
6.
No Tabs and click Next.
7.
Click Finish.
8.
Click the Edit Page icon.
9.
Click the Create Region icon.
10.
Choose the HTML option and click Next.
11.
For the page Title, enter Page Information and click Next.
12.
For HTML Text Region Source, enter some text to be displayed in
the region and click the Create Region button. Later the template
will be changed to the easyRegion template.
The text can look something like this:
<p>This is a custom
region template created for the
Easy HTML DB Book. It uses a custom cascading style sheet
to define the look of the region.</p>
<p>The cascading style sheet file is named
<b>easy_region.css</b>.</p>
13.
On the Page Definition page, click on the Page Information link
for the new region.
14.
On the Edit Region screen, change the Template to easyRegion
and click the Apply Changes button.
At this step, the easy_region.css
will not be linked into the current page. The next steps will take
care of that as well as change the page template.
15.
Back on the Page Definition page, click on the Edit Attributes
button.
16.
On the Edit Page screen:
Enter the following text
in the HTML Header to link in the easy_region.css style sheet.
<link
rel="stylesheet" href="#WORKSPACE_IMAGES#easy_region.css"
type="text/css"
/>
§
Click the Apply Changes button.
17.
Run the page.
The page that was just created should look like
Figure 13.11.
The above book excerpt is from:
Easy HTML-DB
Oracle Application Express
Create
Dynamic Web Pages with OAE
ISBN 0-9761573-1-4
Michael Cunningham & Kent Crotty
http://www.rampant-books.com/book_2005_2_html_db.htm
|