Tom Muck

Alpha Dog Blues Band
Home page
All articles
All Extensions | Extension News | Extension FAQs | Customer Login
Books authored or co-authored by Tom Muck
Extensions, books, and other products | Customer Login
Your current cart contents
Tom-Muck.com Blog | CMXTraneous Blog | Flash Remoting Blog
About the site

Pages List



Pages List Server Behavior:

This behavior will allow you to navigate through a recordset that contains a Repeat Region behavior or a Horizontal Looper behavior. It should be used on pages that show only partial recordsets. For instance, if your recordset returns 98 records, and you've chosen 12 per page in a repeated region, or a 4 x 3 grid in a Horizontal Looper behavior, you would have 9 pages of records. By inserting a "Pages List" behavior, you would see the pages as links:

1 * 2 * 3 * 4 * 5 * 6 * 7 * 8 * 9

The delimiter that's used between the links is completely user-defined and can be anything. Styles work with the links, as well. Simply select the behavior in the Server Behaviors menu, or the placeholder on the page, or the code in source view and apply a style to it. The server behavior also has the ability to browse for an image to use as a delimiter between the links, such as this:

1 2 3 4 5 6 7 8 9

To use the behavior you need to do the following:

1. Add your recordset to the page.

2. Add your database columns to the page and apply a repeat region to them choosing the number of records that you want displayed on each page.

3. Pick a spot on the page where you want Pages List to appear and select Pages List from the Server Behaviors >> DWTeam >> Recordset Navigation menu. You'll see the following dialog box:

4. Choose the correct recordset from the dropdown box.

5. Pick a delimiter that will appear between the links. NOTE: If you want a space before and after the delimiter you should add those here as well.

6. If you want something to appear before and after the current page link, it should be filled in. By default, a <b> tag is applied around the current link. This allows the current link to be shown in bold. You can use a <strong> tag if you prefer, or any other code that you define..

7. Click Preview Refresh to see what your link looks like.

8. If any changes need to be made, make the changes and then click the Preview Refresh button once again to see what the link will look like.

9. Click the OK button.

It is best to use the behavior inside of a layer or table cell. You'll find that you can control the output of the link list better that way.

If you find that you have too many page links on a page, you can use the Pages List Limited server behavior instead of the Pages List server behavior.

 

 

Pay me securely with your Visa, MasterCard, Discover, or American Express card through PayPal!
Pay me securely with your Visa, MasterCard, Discover, or American Express card through PayPal!
About | Privacy Policy | Contact | License Agreement | ©2002-2024 Tom Muck | Dreamweaver Extensions