smozgur
Well-known member
It already exists in the controller, and works with the router. I implemented it as simple template modification, and no additional query cost.
Why not implementing this in the core template?
Edit: This is how I implemented it with template modification by the way:
Template:
Find:
Replace:
Phrase:
Why not implementing this in the core template?
Edit: This is how I implemented it with template modification by the way:
Template:
forum_view_type_question
Find:
HTML:
<a href="{{ link('forums', $forum, $questionTabs.yourQuestions.filters) }}" class="tabs-tab {{ $questionTabs.yourQuestions.selected ? 'is-active' : '' }}">{{ phrase('your_questions') }}</a>
HTML:
<a href="{{ link('forums', $forum, $questionTabs.yourQuestions.filters) }}" class="tabs-tab {{ ($questionTabs.yourQuestions.selected && !$filters.unsolved) ? 'is-active' : '' }}">{{ phrase('your_questions') }}</a>
<a href="{{ link('forums', $forum, array_merge($questionTabs.yourQuestions.filters, $questionTabs.unsolved.filters)) }}" class="tabs-tab {{ ($questionTabs.yourQuestions.selected && $filters.unsolved) ? 'is-active' : '' }}">{{ phrase('your_unsolved_questions') }}</a>
'your_unsolved_questions' => 'Your unsolved questions'
Last edited:
Upvote
6