Linking Dynamic Pages

Discusses the major dynamic pages in the public site

Four of the major dynamic pages used in the public site are:

  1. Registration for Counseling or Events reg.aspx
  2. Center Map:  displays center and training event locations, with an interactive map. mapresults.aspx
  3. Event Search: displays upcoming events and allows public to search and filter the results events.aspx
  4. Center Location Page: displays information about a particular counseling or training location center.aspx

Registration for Counseling: reg.aspx

A direct link to register for counseling requires the center and sub location number and mode=counsel
/reg.aspx?mode=counsel&center=123456&subloc=0

Registration for Event: reg.aspx

The direct link to register for an event requires the event number and mode=event
/reg.aspx?mode=event&event=12345678

Center Map mapresults.aspx

The centers and training event locations are entered on the locations page, and are dynamically shown with an interactive map on the page mapresults.aspx.   This page is where the public is able to find nearby counseling centers or training events.  This page have several parameters that can be added to customize it for various purposes.

Mapresults.aspx Parameters

zip=xxxxx Sorts the centers by approximate distance from the zip code. By default, it will limit the map and list to the nearest 50 miles from the zip code, unless the showall=y parameter is also added.
showall=y Overrides the zip code limit of 50 miles as discussed above. This should almost always be included when linking, as the zip code is stored and used even without including the zip code parameter.
area=areaname

Filters the map to all locations that have the area set.
For example: mapresults.aspx?area=southwest&showall=y
Shows all locations where the area is 'southwest'. showall=y overrides the zip code limit of 50 miles in case the zip code has been set previously

hideeventonly=y Forces list to hide locations where counseling is not checked, meaning it is a event only location. Include this to limit list to counseling locations only and hide event locations.
groupby=area,location,title,building,address Neatly groups the list into sections for one of the following:area, location, title, building, address. Locations with the same values for each field will be grouped together with a heading.Most common is groupby=area when showing a statewide map. For example:
mapresults.aspx?groupby=area&showall=y
Would show all locations in a state, grouped and sorted by area.

 Examples of html for linking to the center map page:

<a href=mapresults.aspx?zip=32501>Locations within 50 miles of zip code 32501</a>
<a href=mapresults.aspx?area=southwest&groupby=area&showall=y>Locations in southeast area</a>
<a href=mapresults.aspx?hideeventonly=y&groupby=area&showall=y>All counseling locations statewide</a>
<a href=mapresults.aspx?groupby=location&showall=y>All counseling locations, grouped by location (city)</a>

 

Event Search: events.aspx

The event search page dynamically lists all published future events on a page called events.aspx.  The public can use this page to locate events by distance, topic, or date range.

Events.aspx Parameters

mode=0,1,2,3, or 4 Search Mode.0or missing= all, 1 = Online, 2 = Zip Code, 3 = Area, 4 = Center
zip=xxxxx&mode=2 Search for events near thiszip code. Use with mode 2. Example: events.aspx?zip=12345&mode=2
miles=xxx Radius for zip code mode search. Example: events.aspx?zip=12345&mode=2&miles=100 will limit to 100 mile circle around zip code 12345.
center=xxxxx&mode=4 Sets the page to only show events from a single center. Example: events.aspx?center=41010&mode=4 will only show events from locations under center 41010.
area=abcde Searches for events only in locations with matching area. Use with mode 3. Example: events.aspx?area=southwest&mode=3 will show events from locations where area is 'southwest'
days=7,14,30,60,90,120,365 Sets the time range to default to the number of days specified. Must be one of 7,14,30,60,90,102 or 365. Example: events.aspx?days=120 will set the date range to default to 120 days and show events only in that time range.
topicnum=xx Shows events for a particular public topic. Example: events.aspx?topicnum=4 will show events with topic code 4.
sort=T or L Sort and group list by topic (T) or location (L), Topic is the default sort.

 

Center Location Page: center.aspx

The center location page shows details about a particular location, such as the address, services offered, dynamic event listing, and a dynamic map. 

To link to this page, use parameters center and subloc.  Example: center.aspx?center=47050&subloc=1 will go to center 47050, sublocation 1.  If you leave off subloc parameter, it will default to the main location of the center. 

You can hide the map with parameter hidemap=y. 

You can show events and hide the request for counseling and center long description with parameter mode=s.  Conversely, you can hide the events and show just the request for counseling and center logn description with parameter mode=e.

For the main location, all events are shown for all locations.  For the sub locations, only the events at that location are shown.

Updated 8/24/2022 4:29:53 PM | Chris Willis