Re: [development] General token parser (API), does it exist?
This sounds related to a feature request I put in on the taxonomy module this afternoon: http://drupal.org/node/101697 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. Nat -- 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 -----------------------------------------------------------------------
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.
Op 6-dec-2006, om 16:10 heeft adrian rossouw het volgende geschreven:
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.
I know this has got to work, but the problem is that this isn't documented somewhere. And if it is, only the base is documented and not some more complex methods. I'm trying to find out how to get more complex things working with custom_url_rewrite() since Goba introduced the function in drupal. Unfortunatly I never was able to let it work how I want it to... Stefan
participants (3)
-
adrian rossouw -
Nathaniel Catchpole -
Stefan Nagtegaal