⇒ http://my.opera.com/tech-nova/blog/
Un site qui recense les astuces et évolutions des possibilités de SPIP.
[12429] Use whatever url you like !
Septembre 2008, Par tech-novaDon’t use generer_url_article, auteur, breve, mot, rubique, site : these functions are obsolete, and should be replaced by the unique function
generer_url_entite($id=’’, $entity=’’, $args=’’, $anchor=’’, private=’’, $type=’’)
generer_url_entite($id=’’, $entity=’’, $args=’’, $anchor=’’, private=’’, $type=’’)
For example, generer_url_entite($id, ’article’, $arg, $anchor) replaces generer_url_article($id, $arg, $anchor).
But what makes the difference ?
The 5th argument determinates if the generated url is private ou not, whatever the context (if it’s for ex. called from a filter or a plugin in the private area).
But more important, the 6th argument specifies the url type you want to produce : it overwrites the global variable type_urls ! Now you can mix every form of url (arbo, html, libres, page, propres, propres2, propres_qs, and standard) !
Whoow !
→ Lire la suite sur le site d’origine…
