Jump to content

New Notification Flash Message template


Recommended Posts

I would like to edit the flash message that pops up with a new notification. Specifically I am wanting to handle the avatar display depending on user group. I've updated userPhoto and userPhotofromData but neither of those manage this section. 


Same for when composing a private message, the autocomplete menu item. 


Where can I edit these?

Link to comment
Share on other sites

The flash message is a javascript template, which you would need to redefine after the default one loads

ips.templates.set('core.notification.flashSingle', " \
	<a href='{{url}}' data-role='newNotification'>\
		<div class='ipsPhotoPanel ipsPhotoPanel_tiny ipsType_medium ipsType_blendLinks'>\
			<img src='{{icon}}' alt='' class='ipsUserPhoto ipsUserPhoto_tiny ipsPos_middle'>\
			<div class='ipsType_left'>\
				<p class='ipsType_reset ipsType_light ipsTruncate ipsTruncate_line'>{{{body}}}</p>\

same with the typeahead

ips.templates.set('core.autocomplete.memberItem', " \
	<li class='ipsAutocompleteMenu_item ipsClearfix' data-value=\"{{value}}\" role='option' role='listitem'>\
		<div class='ipsPhotoPanel ipsPhotoPanel_tiny'>\
			<span class='ipsUserPhoto ipsUserPhoto_tiny'><img src='{{{photo}}}'></span>\
				<span class='ipsType_light'>{{{extra}}}</span>\


Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...