Aller au contenu

Sortie de Textpattern 4.0.7


dragondz

Sujets conseillés

Salut les hubiens.

Juste pour vous signaler la sortie de la version 4.0.7 de textpattern, comme pour les versions antérieures ce n'est pas des changement énormes, mais certaines nouveautés vont nous faciliter pas mal le codage des sites:

- La réécriture du moteur de tag de txp qui permet maintenant de faire des constructions du style:

<txp:if_tag >
un truc
<txp:else />
faire un autre truc
<txp:if_tag>
encore un truc
<txp:else />
encore un autre truc
</txp:if_tag>
</txp:if_tag>

- L'inclusion d'un tag dans un autre comme par exemple:

<txp:article_custom section="<txp:section>" />

- Ajout du tag : txp:variable

il ouvre pas mal de possibilités concernant la définitions de variables utilisables dans les pages (d'ailleurs sur le forum on commence a peine à découvrir ses possibilités)

et bien d'autres petites joyeuseries!

Voila la liste des changements en anglais:

* Parser: full nesting support, allowing unlimited nesting of identical tags.

* Parser: attribute values are parsed when enclosed in single quotes.

* Parser: unquoted attribute values are deprecated and will result in warnings when site status is not set to 'live'. Fix your templates and use double quotes to delimit attribute values.

* Feature: Expiry time for articles, accompanied by related tags

* Speed: various components of the parsing process have been optimized, which compensates the impact of increased parser complexity, resulting in slightly faster parsing speed

* New tags: <txp:expires />, <txp:if_expired>, <txp:if_expires>

* New tag: <txp:if_keywords>

* New tags: <txp:if_first_section>, <txp:if_last_section>

* New tags: <txp:if_first_category>, <txp:if_last_category>

* New tag: <txp:if_variable>

* New tag: <txp:modified />

* New tag: <txp:rsd /> specifies the Really Simple Discovery endpoint for XML-RPC clients

* New tag: <txp:variable />

* Changed tag: <txp:article /> can be used as a container tag

* Changed tag: <txp:article /> allows new attributes 'wraptag' and 'break'

* Changed tag: <txp:article_custom /> can be used as a container tag

* Changed tag: <txp:article_custom /> allows new attributes 'wraptag' and 'break'

* Changed tag: <txp:article_custom /> allows comma separated list for 'id' attributes (this doesn't imply a sort order).

* Changed tag: <txp:category /> applies 'class' attribute to the <a> element when wraptag is empty.

* Changed tag: <txp:category_list /> can be used as a container tag

* Changed tag: <txp:category_list /> accepts a 'children' attribute which limits the list depth to one level below the parent category when set to '0'.

* Changed tag: <txp:file_download_list /> can be used as a container tag

* Changed tag: <txp:if_article_id /> defaults to the current article's id.

* Changed tag: <txp:linklist /> can be used as a container tag

* Changed tag: <txp:recent_comments /> can be used as a container tag

* Changed tag: <txp:recent_comments /> allows new attribute 'offset'

* Changed tag: <txp:search_input /> allows new attribute 'html_id' to set the form's id.

* Changed tag: <txp:section /> applies the 'class' attribute to the <a> element when wraptag is empty.

* Changed tag: <txp:section_list /> can be used as a container tag

* XML-RPC: server now included in main TXP package, disabled by default

* Articles tab: added 'article image' and 'keywords' as search criteria

* Categories tab: categories cannot be accidentally deleted if they are still in use.

* Write tab: Concurrent article edit warning

* Write tab: WYSIWYG preview for draft/pending/hidden articles

* Images tab: added 'alternate text' and 'caption' as search criteria

* Images tab: multi-edit functionality (delete, change category)

* Images tab: setting both thumb width and height to zero or empty values disables auto-thumbnailing

* Links tab: multi-edit functionality (change category)

* Files tab: multi-edit functionality (delete, change category)

* Users tab: multi-edit functionality (delete, reset password, change privilege)

* Users tab: sortable and paginated author list

* Users tab: 'last login' shown in author list

* Plugins tab: User-selectable plugin load order

* Plugins tab: sortable and multi-edit functionality (change order/status, delete)

* More verbose "First Post" article with basic instructions and helpful links.

* Developer: getTree() receives an optional 'table' name, returned array contains 'parent' field.

* Developer: New event 'pretext_set'.

* Developer: new plugin type '3' for admin-only plugins (0=public, 1=admin+public, 2=library)

* Developer: fInput now uses htmlspecialchars on the value parameter (previously only escape_title)

* Developer: pagelinkurl() calls a custom URL handler if present. NB: The custom URL handlers function signature is modified, as an additional flag discerns pagelinks from permlinks.

* Developer: $txpcfg['ftindex_columns'] may contain an arrray of column names defining the fulltext-indexed set. A corresponding MySQL fulltext index must be established previously.

* jQuery 1.2.6

* Ability to connect to the MySQL server through SSL

A+

Lien vers le commentaire
Partager sur d’autres sites

Je vais tenter la migration de la 4.0.6 vers la 4.0.7 dans les prochaines semaines. En tests d'abord puis en prod ensuite. Car il faut que je vois si mes plugins (y compris perso) passent bien, et refaire aussi, je pense, une partie des modules, vus les changements induits

Lien vers le commentaire
Partager sur d’autres sites

Bonne nouvelle que ce remaniement du parser, enfin une release de Textpattern avec de la matière ;)

Ca aurait mérité une autre numérotation, type Textpattern 4.1 vu les changements...

Lien vers le commentaire
Partager sur d’autres sites

Salut David,

comme tu peux le lire sur le post d'annonce: Annonce 4.0.7 Wet a parlé de trouver un nom pour la release en plaisantant :P

Je pense qu'ils gardent cette numérotation car la compatibilité est gardé par rapport aux autres release, car je ne pense pas que la future 4.1 (croquery) soit compatible avec l'actuelle version!

A+

Lien vers le commentaire
Partager sur d’autres sites

Ca ne change pas ce que je disai... 4.0.7, 4.1... la question est celle de la cohérence, l'humour du billet de Wet est sympa mais après X semaines (mois ? :P) sans release vu l'étendu des changements une autre numérotation aurait été plus cohérente...

Ils ont gardé le nom de Zem pour la nouvelle branche (croquery) ?

Et j'espère qu'elle sera compatible ce serait une grosse erreur de ne pas au moins proposer un script de mise à jour...

Lien vers le commentaire
Partager sur d’autres sites

  • 1 month later...

Passage à la 4.0.7 (et même 4.0.8) sans trop de problème, quelques menus adaptations à opérer et, toujours, le problème de la version francisé qui garde son accent dans l'url des catégories. Il faut donc modifier lors de chaque màj du fichier langue

Lien vers le commentaire
Partager sur d’autres sites

Veuillez vous connecter pour commenter

Vous pourrez laisser un commentaire après vous êtes connecté.



Connectez-vous maintenant
×
×
  • Créer...