Search

I am finding myself adding multiple fields for the same purpose (e.g., adding fields “bandmember1,” “bandmember2,” “bandmember3,” etc, so I can bullet them out into list form.

I was wondering if it would be possible to add entries into the same field and separate them using a common symbol (say, a semicolon). Example:

field “bandmembers” with the content, “bandmember1; bandmember2; bandmember3”

And write XSLT to insert a <li> (or whatever) every time it encounters a semicolon. Does anyone know if this is possible? Thanks in advance!

Adam

If I understand you correctly you’d like a function which splits a string and returns xml elements?

If so, this may be useful: str:split template

Ah, thank you!

Or you could also use the Tag List Field, by separating them with commas.

You could also use Nils’ Subsection Manager extension.

@brian/doug - Thanks! Since I am a tool novice, those options look much more appetizing! One day I’ll have some solid knowledge…

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details