Tom Muck

Alpha Dog Blues Band
Home page
All articles | DWTeam | Flash Remoting | Basic-Ultradev | Community MX
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

Links List Limited

Links List Limited 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 "Links List" behavior, you would see the pages as a list of links (links are inactive in this help file):

1-12 | 13-24 | 25-36 | 37-48 | 49-60 | 61-72 | 73-84 | 85-96 | 97-98

Links List can sometimes take up more space on the page, if you have a lot of records returned, as shown here:

1-20|21-40|41-60|61-80|81-100|101-120|121-140|141-160|161-180|181-200|201-220|221-240|241-260|261-280|281-300|301-320|321-340|341-360|361-380|381-400|401-420|421-440|441-460|461-480|481-500|501-520|521-540|541-560|561-580|581-600|601-620|621-640

This is where the Links List Limited server behavior comes in. It allows you to decide how many links you want displayed, shown here in combination with the Previous X Pages and Next X Pages server behaviors, which are also part of the suite:

... [previous 20 pages] ... 261-280 | 281-300 | 301-320 ... [next 20 pages]...

The center link is shown highlighted here. This is user-defined and defaults to <b> tags around the current link.

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 Links List LImited to appear and select Links List Limited from the Server Behaviors >> DWTeam >> Recordset Navigation menu.

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. Choose how many links you want displayed. An odd number works better, because the middle link is going to be the current page link. So if you have 5 links shown, the third link will be the current page.

7. 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..

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

9. 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.

10. Click the OK button.

If you don't need to limit the number of links shown, you should use the standard Links List behavior, which uses code that is more concise.

After applying the Links List Limited behavior to the page, you'll find that you need a way to jump to specific pages. The suite also contains the following server behaviors to aid in this process:

Jump to Page
Previous X Pages
Next X Pages

 

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-2017 Tom Muck | Dreamweaver Extensions