[development] General token parser (API), does it exist?
Nathaniel Catchpole
NCatchpole at brookehouse.ac.uk
Wed Dec 6 16:23:21 UTC 2006
The thing with this though - I'm not a coder, although I try to do things properly as much as possible (hence why I lurk and occasionally interlope on this list). My first point of call would be the pathauto module for this functionality - on my site that'd give me 11,000 url aliases for something that "can be done with very little bit of custom code, in a custom_url_rewrite function." Presumably it's exactly the same for my c. 4-5,000 taxonomy/term url aliases. If there is (or can be) a cleaner way of doing it that'd be amazing.
Nat
-----Original Message-----
From: adrian rossouw [mailto:adrian at bryght.com]
Sent: 06 December 2006 15:11
To: development at drupal.org
Subject: Re: [development] General token parser (API), does it exist?
On 06 Dec 2006, at 4:05 PM, Nathaniel Catchpole wrote:
I guess a similar thing would be something like an option to change what's used for /node/ from core (say to /article/[nid] or /story/[nid]) rather than aliasing. If that's the same thing that Bèr mentioned I could see it being really useful.
this can be done with very little bit of custom code, in a custom_url_rewrite function.
--
Confidentiality: This email and its attachments are intended for the addressee only and may be confidential or the subject of legal privilege. If this email and its attachments have come to you in error you must take no action based on them, nor must you copy them, distribute them or show them to anyone.
Please contact the sender to notify them of the error.
Security: Security Warning: Please note that this e-mail has been created in the knowledge that e-mail is not a 100% secure communications medium. We advise that you understand and observe this lack of security when e-mailing us.
Viruses: This email and any attached files have been scanned for the presence of computer viruses. However, you are advised that you open any attachments at your own risk. Please note that electronic mail may be monitored in accordance with the Telecommunications (Lawful Business Practices) (Interception of Communications) Regulations 2000.
Disclaimer: Any views or opinions presented are solely those of the author and do not necessarily represent those of B6 Sixth Form unless explicitly stated otherwise
-----------------------------------------------------------------------
This message has been inspected by DynaComm i:mail
-----------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20061206/6666291b/attachment.htm
More information about the development
mailing list