advancedmorelink

Date: 13-04-2007 13:17 Views: 2590 Author: Colin Polonowski

Description:

Used in conjunction with the advanced index functionality to automatically generate a link that calls the advancedmore.php script to display the next set of records of a particular content type.

There are three parameters:

1. template - the template for the advancedmore.php script to use to display the further content. Note, this template name is prefixed by More: in the software so for example, if you wish to have a page with more news, you'd create a template called More:News and pass in News through this parameter
2. startflag - specify whether or not the start record is included in the link. By default this value is included - any entry in this parameter will turn it off. (optional)
3. display - specify whether or not the number of records to display is included in the link. By default this value is included - any entry in this parameter will turn it off. (optional)

Syntax:

[advancedmorelink|template|startflag|displayflag]

Examples:

  • [advancedmorelink|News]
    Creates the following string:
    advancedmore.php?page=News&start=14&display=14

  • [advancedmorelink|News|1]
    Creates the following string:
    advancedmore.php?page=News&display=14

  • [advancedmorelink|News||1]
    Creates the following string:
    advancedmore.php?page=News&start=14

  • [advancedmorelink|News|1|1]
    Creates the following string:
    advancedmore.php?page=News
Hints and Tips

Advanced Indexes create a flag called 'moreavailable' in the content array if there are further data elements for the advanced index to display. You can use this flag in conjunction with the optionalelse function to determine whether or not to display a link.

Example
  • (optionalelse|Link:More|moreavailable)
    The above will display the Link:More template if the moreavailable flag is set. The Link:More template would then call the advancedmorelink function to display the link.


Note
This functionality is ONLY available in version 0.6.0 and later.