Hi,
I am having problems with the assign_variable functionality. Depending on the segment_3, I am assigning |-delimited email addresses to the variable notifyemail.
Although the if/else… construct works, notifyemail is not correct. Moreover, it omits the first part, i.e.
If segment_3 is ‘news’, notify_email is “|test.test.com”.
This is the code:
{exp:weblog:entries weblog="{segment_3}" dynamic="off" disable="categories|member_data|pagination|trackbacks" limit="1" url_title="{segment_4}"}
{if segment_3 == "people"}
{assign_variable:notifyemail="{mail}|[email protected]"}
{assign_variable:subjectline="Website contact with {title}"}
{if:elseif segment_3 == "offices"}
{assign_variable:notifyemail="[email protected]|[email protected]"}
{assign_variable:subjectline="Website contact with {title} office"}
{if:elseif segment_3 == "news"}
{assign_variable:notifyemail="[email protected]|[email protected]|[email protected]"}
{assign_variable:subjectline="Website contact regarding article: {title}"}
{if:else}
{assign_variable:notifyemail="[email protected]"}
{assign_variable:subjectline="Website Contact"}
{/if}
{segment_3} - {notifyemail}Should this not be possible, please state as to how I can solve this.
juro