Skip to content

Commit d2d04ae

Browse files
author
Pathologic
committed
dlcrumbs
1 parent ccbe786 commit d2d04ae

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

en/03_Extras/DLCrumbs/index.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# DLCrumbs
2+
3+
A snippet to build breadcrumb navigation with DocLister. You may use any of DocLister parameters in DLCrumbs call.
4+
5+
## Parameters
6+
### id
7+
Id of the current page.
8+
9+
Default: the value of $modx->documentIdentifier
10+
11+
### hideMain
12+
Set this parameter to 0 if you need to show the link to home page.
13+
14+
Default: 0.
15+
16+
### showCurrent
17+
Set to 1 to include current page into the end of trail.
18+
19+
Default: 0.
20+
21+
### minDocs
22+
This parameter determines the minimum number of elements to be shown.
23+
24+
Default: 0.
25+
26+
## Templates
27+
### tpl
28+
Template to output a crumb.
29+
30+
Default:
31+
```
32+
@CODE:<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><meta itemprop="position" content="[+iteration+]" /><a href="[+url+]" title="[+e.title+]" itemprop="item"><span itemprop="name">[+title+]</span></a></li>
33+
```
34+
35+
### tplCurrent
36+
Template for the current page in the trail.
37+
38+
Default:
39+
```
40+
@CODE:<li class="active" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><meta itemprop="position" content="[+iteration+]" /><span itemprop="item">[+title+]</span></li>
41+
```
42+
### ownerTPL
43+
Template to wrap output.
44+
45+
Default:
46+
```
47+
@CODE:<nav class="breadcrumbs"><ul class="breadcrumb" itemscope itemtype="http://schema.org/BreadcrumbList">[+crumbs.wrap+]</ul></nav>
48+
```
49+
50+

0 commit comments

Comments
 (0)