[drupal-devel] generate random urls
Moshe Weitzman
weitzman at tejasa.com
Tue Mar 29 16:34:51 UTC 2005
Maykel Moya wrote:
> I'm trying to make the glossary have a page per letter 'glossary/a',
> 'glossary/b' etc...
>
> I'd even like to have every link available before hand, even if isn't
> content to a given letter.
>
> So a need glossary/[0-9a-z]. Is there other way to achieve this than to
> have a very big array with every case inside the hook_menu?
>
> Regards,
> maykel
>
yes - you just need a handler for 'glossary'. additional arguments get
passed automatically. so your function might be:
function glossary_page($letter = NULL)
More information about the drupal-devel
mailing list