Search

Hello All,

Sorry for the question, but I am just starting on Symphony CMS.

I would like to have a function which returns me the email address of an author with username="abc".

On the front page I have only username information from authors multiple selection field on my section.

Thanks in advance for your help Gabriel

Welcome Gabriel,

your datasource which returns author data has to contain also the email value (field) and the function then is just about writing a proper xpath (or a xsl:key) in your xsl utility or page to reach the desired email, e.g.:

<xsl:value-of select="/data/authors/author[username = 'abc']/email"/>

What you want is to get familiar with Symphony concepts first, like datasources and other related topics, if you are new to Symphony. But for a total start I would start with the beginning.

The other part of mastering Symphony is to get familiar with XSLT 1.0.

All the best and let know about you success! :)

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