Étendre Radiant CMS, c’est facile…

dans informatique

Comme j’utilise Radiant CMS, pour l’instant, principalement en tant que blog, je me suis demandé quelles fonctionnalités il me manquait par rapport à un Dotclear où à un WordPress et j’ai donc commencé à regarder comment on peut étendre tout ça.

Alors, donc, radiant dispose d’un système de plugins et d’un système d’extensions, j’ai choisi d’implémenter une extension, puisque c’est la manière décrite dans la documentation de Radiant.

C’est d’un premier abord plutôt simple, il y a même des générateurs qui créent les dossiers et écrivent le squelette de l’extension. Par conséquent, on peut dire que ça se présente bien.

Ma première extension à été un remplacement du tag <r:date />, qui, comme ruby utilise bêtement via sa class Time la fonction strftime de la bibliothèque standard et ne permet pas de faire de setlocale, génère de très belles dates, mais en anglais. J’ai donc créé une extension FrenchDate qui définit un tag <r:french_date /> qui fonctionne tout à fait comme le précédent, mais en utilisant une sous classe de la classe Date , qui elle, à une fonction strftime implémentée en ruby, avec de jolis tableaux contenant les noms des jours et des mois qui ne demandent qu’a être modifiés, ce que j’ai fait. Il reste un tout petit problème, c’est que les deux strftime présentées ici ne savent représenter le fuseau horaire qu’en version lettres (UTC, CEST…), où dans une version numérique non compatible avec certaines utilisations (+0200 au lieu de +02:00), mais ça se règlera bien à un momment où un autre.

Comme je n’ai toujours pas envie de laisser les gens mettre des commentaires, je me suis dit qu’ils pourraient utiliser des rétroliens, au cas où ils se mettent à parler de ce que je dis. Je vous parlerai de mon exploration des entrailles de Radiant, et de Radius (son système tags), vous verrez, c’est souvent automagique, ainsi que de la genèse de mon extension Trackback dans un prochain billet.

Posté par Mathieu Arnold le mercredi 12 septembre 2007 à 09:47

Rétroliens (0)

La discussion continue ailleurs…
Adresse du rétrolien : http://w.mat.cc/trackback/15

Commentaires

Le lundi 1 décembre 2008 à 14:53, Greg a écrit :
Ya pas une fonction dans le config de radiant pour definir la locale et la timezone ? Il me semble que oui...
Le mercredi 6 février 2013 à 17:16, Mohammad a écrit :
While we would love to have them, solar panels are such a big unforpt expense that our very limited budget probably wouldn't allow it. Even if we could afford them, I'm not sure that we would be in the house enough years to break even on them, which isn't the only reason to do them, but I'm kind of a miser.
Le vendredi 8 février 2013 à 23:01, okqjxdnw a écrit :
RxjcQw pmhqceejhqjh
Le mercredi 27 février 2013 à 07:24, Kelis a écrit :
You must clean the floor first with a good detergent like Fantastic or 409 to remove any grease or oil and allow the floor to dry until next day. Then you must scrape any clear enamel loosen particles with a metal spatula. Next you must sand the floor to built a bonding surface with like a #300 sand paper attached to a rubber block a dust mask on your face and a vacuum cleaner to suck the dust while you sanding. This is a job that is a little hard and is going to take some time. When you done sanding and the surface is smooth, clean the floor with mineral spirits (found in the paint section ) in stores like Lowes, Home Depot, etc. Buy also clear urethane or enamel and apply few coats with a thin brush allowing to dry between coats. Good luck…! doxycycline auto insurance quotes
Le mercredi 27 février 2013 à 07:25, Gatsy a écrit :
You must clean the floor first with a good detergent like Fantastic or 409 to remove any grease or oil and allow the floor to dry until next day. Then you must scrape any clear enamel loosen particles with a metal spatula. Next you must sand the floor to built a bonding surface with like a #300 sand paper attached to a rubber block a dust mask on your face and a vacuum cleaner to suck the dust while you sanding. This is a job that is a little hard and is going to take some time. When you done sanding and the surface is smooth, clean the floor with mineral spirits (found in the paint section ) in stores like Lowes, Home Depot, etc. Buy also clear urethane or enamel and apply few coats with a thin brush allowing to dry between coats. Good luck…! buying viagra online auto insurance quotes
Le mercredi 27 février 2013 à 07:25, Connie a écrit :
You must clean the floor first with a good detergent like Fantastic or 409 to remove any grease or oil and allow the floor to dry until next day. Then you must scrape any clear enamel loosen particles with a metal spatula. Next you must sand the floor to built a bonding surface with like a #300 sand paper attached to a rubber block a dust mask on your face and a vacuum cleaner to suck the dust while you sanding. This is a job that is a little hard and is going to take some time. When you done sanding and the surface is smooth, clean the floor with mineral spirits (found in the paint section ) in stores like Lowes, Home Depot, etc. Buy also clear urethane or enamel and apply few coats with a thin brush allowing to dry between coats. Good luck…! viagra online auto insurance quotes
Le mercredi 27 février 2013 à 07:25, Doc a écrit :
You must clean the floor first with a good detergent like Fantastic or 409 to remove any grease or oil and allow the floor to dry until next day. Then you must scrape any clear enamel loosen particles with a metal spatula. Next you must sand the floor to built a bonding surface with like a #300 sand paper attached to a rubber block a dust mask on your face and a vacuum cleaner to suck the dust while you sanding. This is a job that is a little hard and is going to take some time. When you done sanding and the surface is smooth, clean the floor with mineral spirits (found in the paint section ) in stores like Lowes, Home Depot, etc. Buy also clear urethane or enamel and apply few coats with a thin brush allowing to dry between coats. Good luck…! doxycycline auto insurance quotes
Le mardi 5 mars 2013 à 07:13, Kellsie a écrit :
Baseboard typically needs 180-degree water on a cold day, which is much hotter than you’d use for your domestic hot water. You’d have to temper the domestic hot water to a bit more than half that temperature before you could use it, which is like driving a car with your foot on the gas and the brake at the same time. You pay to heat it up, only to cool it down.The other issue (and it’s a BIG one) is that the water will lay still in the heating pipes during the warmer months. This becomes a perfect breeding ground for bacteria, and you’ll be breathing that bacteria when you take a shower.If you’re going to use the water heater, dedicate it only to heating and don’t use it to make domestic hot water as well. Also, check with the local authorities; using a water heater for space heating is against the law in some parts of the country. Hope that helps! buy doxycycline auto insurance quotes
Le samedi 26 octobre 2013 à 18:40, Jideofor a écrit :
I can appreciate eaxntordirary writing when I have a look at it. This is truly extremely good writing. You actually come up with sensible and interesting points that you have provided in a special way. This is a fantastic premium quality post.
Poster un commentaire
(facultatif)

« Un film de série B sur ARTE   Le MikroKopter »