Code: Select all
<li>
<a href="{U_WATCH_TOPIC}" class="watch-topic-link" title="{S_WATCH_TOPIC_TITLE}" data-ajax="toggle_link" data-toggle-class="icon <!-- IF S_WATCHING_TOPIC -->fa-check-square-o<!-- ELSE -->fa-square-o<!-- ENDIF --> fa-fw" data-toggle-text="{S_WATCH_TOPIC_TOGGLE}" data-toggle-url="{U_WATCH_TOPIC_TOGGLE}" data-update-all=".watch-topic-link">
<i class="icon <!-- IF S_WATCHING_TOPIC -->fa-square-o<!-- ELSE -->fa-check-square-o<!-- ENDIF --> fa-fw" aria-hidden="true"></i><span>{S_WATCH_TOPIC_TITLE}</span>
</a>
</li>
Code: Select all
data-toggle-class="icon <!-- IF S_WATCHING_TOPIC -->fa-check-square-o<!-- ELSE -->fa-square-o<!-- ENDIF --> fa-fw"
Code: Select all
<i class="icon <!-- IF S_WATCHING_TOPIC -->fa-square-o<!-- ELSE -->fa-check-square-o<!-- ENDIF --> fa-fw"
data-toggle-class
is when the template has logic to swap icons based on IF S_WATCHING_TOPIC
anyway. I'll test it later.Code: Select all
<i class="icon <!-- IF S_WATCHING_TOPIC -->fa-square-o<!-- ELSE -->fa-check-square-o<!-- ENDIF -->
Code: Select all
<i class="icon <!-- IF S_WATCHING_TOPIC -->fa-check-square-o<!-- ELSE -->fa-square-o<!-- ENDIF -->
D. K wrote: Wed Apr 09, 2025 7:59 pm Our users when they see in the "tool" pull down the "checked check box" next to "subscribe topic" they believe they are going to get an email notice. They don't realize they have to actually click "subscribe topic" to get subscribed.
It would be better if the "subscribe topic" really worked as a checkbox.
Is this something we can change or is it a development issue?
Code: Select all
<!-- IF U_WATCH_TOPIC -->
<li>
<a href="{U_WATCH_TOPIC}" class="watch-topic-link" title="{S_WATCH_TOPIC_TITLE}" data-ajax="toggle_link" data-toggle-class="icon fa-check-square-o fa-fw" data-toggle-text="{S_WATCH_TOPIC_TOGGLE}" data-toggle-url="{U_WATCH_TOPIC_TOGGLE}" data-update-all=".watch-topic-link">
<i class="icon fa-square-o fa-fw" aria-hidden="true"></i><span>{S_WATCH_TOPIC_TITLE}</span>
</a>
</li>
<!-- ENDIF -->
Yes, but only as long as the page isn't reloaded.Gumboots wrote: Thu Apr 10, 2025 9:14 pm I replied on GitHub. It works perfectly with just the classes in the template. I have tested it on local. Everything changes on click, just as it should.
S_WATCHING_TOPIC
.Code: Select all
<!-- IF U_WATCH_TOPIC -->
<li>
<a href="{{ U_WATCH_TOPIC }}" class="watch-topic-link" title="{{ S_WATCH_TOPIC_TITLE }}" data-ajax="toggle_link" data-toggle-class="icon fa-{{ !S_WATCHING_TOPIC ? 'check-' }}square-o fa-fw" data-toggle-text="{{ S_WATCH_TOPIC_TOGGLE }}" data-toggle-url="{{ U_WATCH_TOPIC_TOGGLE }}" data-update-all=".watch-topic-link">
<i class="icon fa-{{ S_WATCHING_TOPIC ? 'check-' }}square-o fa-fw" aria-hidden="true"></i><span>{{ S_WATCH_TOPIC_TITLE }}</span>
</a>
</li>
<!-- ENDIF -->