Function to get email address from authors
This is an open discussion with 1 reply, filed under General.
Search
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.
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