## Macro: pageContentNavigation() ## Author: Michael Fienen ## Date: 08.09.19 ## Version: 1.0 ## E-mail: fienen@gmail.com ## Website: http://www.supersatellite.com/ ## Description: Creates a "Previous/Next" style navigation after calling the pageContent() macro ## ## Required Parameters: ## $currentPage - Integer value for the current page number. ## ## Optional Parameters: ## $prevPageTxt - Text for the previous page link. Default: "« Previous Page" ## $nextPageTxt - Text for the next page link. Default: "Next Page »" ## $showPageNum - Show the page number between the navigation links. Default: "false" ## $pageLinkVar - Any necessary parameters to pass to the page for the query. Should end with an "&". ## $pageVarName - Variable name in the URI for the page number. Default: "page" ## $pageNavClass - Customizable CSS class name for the navigation and its elements. Default: "pageContentNav" ## #macro(pageContentNavigation $currentPage) #if(!$UtilMethods.isSet($pageVarName)) #set($pageVarName = "page") #end #if(!$UtilMethods.isSet($prevPageTxt)) #set($prevPageTxt = "« Previous Page") #end #if(!$UtilMethods.isSet($nextPageTxt)) #set($nextPageTxt = "Next Page »") #end #if(!$UtilMethods.isSet($pageNavClass)) #set($pageNavClass = "pageContentNav") #end