labasus Reply #1, 2 years, 4 months ago
I have a problem to make document output by alphabet. Letter buttons must be active only in case the documents are on this letter filter.
Header buttons: ALL | A | B | C | D | ... | Z
-----
Document tree
Makers (49)
Maker1
Maker2
...
ABC (109)
A
B
C
...
Z
Template
-----
-----
Chunk - "abecele"
<li><a href="[~[*id*]~]&ditto_filter=lastname,[+pagetitle+],11">[+pagetitle+]</a></li>
Chunk - "makers"
<li><a href="[~[+id+]~]">[+lastname+] [+name+]</a></li>
-----
All works except active and inactive alphabet button links.
I've tried to make "abecele" chunk:
[+phx:if=`[+total+]`:is=`0`:then=`<li>[+pagetitle+]</li>`:else=`<li><a href="[~[*id*]~]&ditto_filter=lastname,[+pagetitle+],11">[+pagetitle+]</a></li>`+]
But it doesn't work, any suggestions?
Header buttons: ALL | A | B | C | D | ... | Z
-----
Document tree
Makers (49)
Maker1
Maker2
...
ABC (109)
A
B
C
...
Z
Template
-----
-----
Chunk - "abecele"
<li><a href="[~[*id*]~]&ditto_filter=lastname,[+pagetitle+],11">[+pagetitle+]</a></li>
Chunk - "makers"
<li><a href="[~[+id+]~]">[+lastname+] [+name+]</a></li>
-----
All works except active and inactive alphabet button links.
I've tried to make "abecele" chunk:
[+phx:if=`[+total+]`:is=`0`:then=`<li>[+pagetitle+]</li>`:else=`<li><a href="[~[*id*]~]&ditto_filter=lastname,[+pagetitle+],11">[+pagetitle+]</a></li>`+]
But it doesn't work, any suggestions?