Hi,
in my view I have setup a alphabet links for glossary mode. My view's header looks like
<div class="abeceda">
<a href="http://tvojzvuk.sk/kapely/a">a</a>
<a href="http://tvojzvuk.sk/kapely/b">b</a>
<a href="http://tvojzvuk.sk/kapely/c">c</a>
<a href="http://tvojzvuk.sk/kapely/d">d</a>
.
.
.
</div>
This works fine for adresses like tvojzvuk.sk/kapely/a - it does search for all nodes whose titles begins with 'a' - exactly as I wanted. However, I would like to go further. I would like to be able to enter address tvojzvuk.sk/ab and get all nodes whose titles begins with 'ab'. Is this doable? How?
If I set the glossary mode character limit to any number it always filter the exact count of letters. I would need to get rid of this limitation and if the argument is 'a' want to get all items whose title begins with 'a' and if the argument is 'aba' I want to... All right I think I have made my point.
If can any of you think of some solution, I'll be more than happy.
Thanks a lot.
Pete.
Comment | File | Size | Author |
---|---|---|---|
#2 | glossary_mode.patch | 1.56 KB | brettbirschbach |
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedThere isn't currently a way to do this with arguments unless you write a custom argument handler that can do the trick. Sorry.
Comment #2
brettbirschbach CreditAttribution: brettbirschbach commentedI also wanted the ability to have glossary mode filter dynamically based on the number of characters in the argument. The patch appears quite simple...almost too simple, as in I may be overlooking something. Use at your own risk :).
Comment #3
Kars-T CreditAttribution: Kars-T commentedDon't know if 6.x-2.8 is still of interest but this is a feature request with a patch to be reviewed.
Space at line end so it needs work.
Comment #4
Kars-T CreditAttribution: Kars-T commentedDon't know if 6.x-2.8 is still of interest but this is a feature request with a patch to be reviewed.
Space at line end so it needs work.
Comment #5
MustangGB CreditAttribution: MustangGB commented