You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I am not wrong the WidgetHolder.ss template is used within the WidgetArea.ss template to wrap the Widgets added to a page:
Here is the WidgetArea.ss
<div class="WidgetHolder $ClassName<% if FirstLast %> $FirstLast<% end_if %>">
<% if Title %><h3>$Title</h3><% end_if %>
$Content
</div>
But if I add $Pos or $TotalItems to the latter the value for both position indicators is always 1 (for all Widgets added - I added 3). This came to my attention because the line
<% if FirstLast %> $FirstLast<% end_if %>
added "first last" every time (in my case for all 3 Widgets).
The documentation points out
$FirstLast: Returns a string, "first", "last", "first last" (if both), or "". Useful for CSS classes.
If it is intended like that how should the logic for <% if FirstLast %> $FirstLast<% end_if %>
work?
The text was updated successfully, but these errors were encountered:
If I am not wrong the WidgetHolder.ss template is used within the WidgetArea.ss template to wrap the Widgets added to a page:
Here is the WidgetArea.ss
and the WidgetHolder.ss:
But if I add $Pos or $TotalItems to the latter the value for both position indicators is always 1 (for all Widgets added - I added 3). This came to my attention because the line
<% if FirstLast %> $FirstLast<% end_if %>
added "first last" every time (in my case for all 3 Widgets).
The documentation points out
$FirstLast: Returns a string, "first", "last", "first last" (if both), or "". Useful for CSS classes.
If it is intended like that how should the logic for
<% if FirstLast %> $FirstLast<% end_if %>
work?
The text was updated successfully, but these errors were encountered: