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.

CommentFileSizeAuthor
#2 glossary_mode.patch1.56 KBbrettbirschbach
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

merlinofchaos’s picture

Status: Active » Closed (won't fix)

There isn't currently a way to do this with arguments unless you write a custom argument handler that can do the trick. Sorry.

brettbirschbach’s picture

Status: Closed (won't fix) » Active
FileSize
1.56 KB

I 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 :).

Kars-T’s picture

Category: support » feature
Status: Active » Needs work

Don't know if 6.x-2.8 is still of interest but this is a feature request with a patch to be reviewed.

+++ sites/default/modules/modified/views/handlers/views_handler_argument_string.inc	(working copy)
@@ -137,7 +137,11 @@
+    $limit = intval($this->options['limit']); ¶

Space at line end so it needs work.

Kars-T’s picture

Don't know if 6.x-2.8 is still of interest but this is a feature request with a patch to be reviewed.

+++ sites/default/modules/modified/views/handlers/views_handler_argument_string.inc	(working copy)
@@ -137,7 +137,11 @@
+    $limit = intval($this->options['limit']); ¶

Space at line end so it needs work.

MustangGB’s picture

Issue summary: View changes
Status: Needs work » Closed (won't fix)