RenderCategoryBreadcrumbs
Renders a list of parent categories for breadcrumbs navigation

02 May 2019 - 06:19 | Version 1 |

Documentation

If no category breadcrumbs are available, standard ones are created based on BASETOPIC. All information is extracted from BASEWEB.

Parameters
  • CAT: name of category to render the breadcrumbs for, defaults to BASETOPIC
  • SEP: string used as a separator in the breadcrumbs

Implementation

%STARTINCLUDE%%CATINFO{
  web="%BASEWEB%"
  cat="%CAT{default="%BASETOPIC%"}%"
  header="$percntBREADCRUMBS{
      \"%BASEWEB%.%HOMETOPIC%\"
      recurse=\"topicoff\"
      separator=\"%SEP{default=" &#187"}%\"
    }$percnt%SEP{default=" &#187"}%" 
  format="$breadcrumb" 
  separator="%SEP{default=" &#187"}%"
  null="$percntBREADCRUMBS{
    \"%BASEWEB%.%BASETOPIC%\"
    separator=\"%SEP{default=" &#187"}%\"
    }$percnt"
}%%STOPINCLUDE%

Test

Calls to 'RenderCategoryBreadcrumbs'

Copyright

© 2006-2019 Michael Daum http://michaeldaumconsulting.com

This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. For more details read the LICENSE.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, to the extent permitted by law; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Middle Fork Home Wiki? Send feedback
Syndicate this site RSS