Wayne B Posted April 4, 2015 Share Posted April 4, 2015 Can someone assist with the correct syntax to display the correct coloured background based on Status of a particular issue in Pages in a 'Bug Tracker' type facility{{if $formValue['new']}} <span class="ipsBadge ipsBadge_style5">{$value}</span> {{elseif $formValue['confirmed']}} <span class="ipsBadge ipsBadge_style7">{$value}</span> {{elseif $formValue['fixed']}} <span class="ipsBadge ipsBadge_style6">{$value}</span> {{elseif $formValue['closed']}} <span class="ipsBadge ipsBadge_style2">{$value}</span> {{endif}}Im using the above but whilst the wording changes the background colour remains as ipsBadge_style5Any help would be greatThanks Link to comment Share on other sites More sharing options...
Wayne B Posted April 4, 2015 Author Share Posted April 4, 2015 Ive worked it out thanks. If anyone needs it here you go{{if $formValue == 'new'}} <span class="ipsBadge ipsBadge_style2">{$value}</span> {{elseif $formValue == 'confirmed'}} <span class="ipsBadge ipsBadge_style7">{$value}</span> {{elseif $formValue == 'fixed'}} <span class="ipsBadge ipsBadge_style4">{$value}</span> {{elseif $formValue == 'closed'}} <span class="ipsBadge ipsBadge_style6">{$value}</span> {{endif}} Link to comment Share on other sites More sharing options...
TravelingPasserby Posted February 20, 2016 Share Posted February 20, 2016 Thanks so much for this, and for posting your answer. This helped me! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.