Hisashi Posted June 28, 2021 Share Posted June 28, 2021 Hello, I want to add a message in marked area, does anyone know where I can edit the template? Link to comment Share on other sites More sharing options...
Solution Nathan Explosion Posted June 28, 2021 Solution Share Posted June 28, 2021 (edited) core -> front -> forms -> popupTemplate Right after the opening "<form..." line, add: {{if $id == "coverPhoto"}} YOUR STUFF {{endif}} Edited June 29, 2021 by Nathan Explosion Hisashi 1 Link to comment Share on other sites More sharing options...
Hisashi Posted June 28, 2021 Author Share Posted June 28, 2021 (edited) 7 minutes ago, Nathan Explosion said: core -> front -> forms -> popupTemplate Right after the opening "<form..." line, add: {{if $id = "coverPhoto"}} YOUR STUFF {{endif}} It's affecting profile photo. Don't have a way to separate? Edited June 28, 2021 by Hisashi Link to comment Share on other sites More sharing options...
Nathan Explosion Posted June 28, 2021 Share Posted June 28, 2021 (edited) 16 hours ago, Hisashi said: It's affecting profile photo Show your code. <form accept-charset='utf-8' class="ipsForm {$class}" action="{$action}" method="post" {{if $uploadField}}enctype="multipart/form-data"{{endif}} {{foreach $attributes as $k => $v}}{$k}="{$v}"{{endforeach}} data-ipsForm> {{if $id == "coverPhoto"}} YOUR STUFF {{endif}} Works fine for me - why? The 'Edit cover photo' link produces a form with the $id of 'coverPhoto' while the link beside the profile photo produces a form with the $id of 'profile_photo' Edited June 29, 2021 by Nathan Explosion Link to comment Share on other sites More sharing options...
Hisashi Posted June 28, 2021 Author Share Posted June 28, 2021 (edited) 2 hours ago, Nathan Explosion said: Show your code. <form accept-charset='utf-8' class="ipsForm {$class}" action="{$action}" method="post" {{if $uploadField}}enctype="multipart/form-data"{{endif}} {{foreach $attributes as $k => $v}}{$k}="{$v}"{{endforeach}} data-ipsForm> {{if $id = "coverPhoto"}} YOUR STUFF {{endif}} Works fine for me - why? The 'Edit cover photo' link produces a form with the $id of 'coverPhoto' while the link beside the profile photo produces a form with the $id of 'profile_photo' I put it as informed, and it's appearing in both <form accept-charset='utf-8' class="ipsForm {$class}" action="{$action}" method="post" {{if $uploadField}}enctype="multipart/form-data"{{endif}} {{foreach $attributes as $k => $v}}{$k}="{$v}"{{endforeach}} data-ipsForm> {{if $id = "coverPhoto"}} YOUR STUFF {{endif}} <input type="hidden" name="{$id}_submitted" value="1"> {{foreach $hiddenValues as $k => $v}} Edited June 28, 2021 by Hisashi Link to comment Share on other sites More sharing options...
Nathan Explosion Posted June 29, 2021 Share Posted June 29, 2021 Thanks Go with == instead of = Hisashi 1 Link to comment Share on other sites More sharing options...
Hisashi Posted June 29, 2021 Author Share Posted June 29, 2021 7 hours ago, Nathan Explosion said: Thanks Go with == instead of = Thanks, it worked! Link to comment Share on other sites More sharing options...
Recommended Posts