View Issue Details

IDProjectCategoryView StatusLast Update
0004554Composrcore_rich_mediapublic2022-08-15 15:47
ReporterChris GrahamAssigned ToChris Graham 
SeverityFeature-request 
Status resolvedResolutionfixed 
Product Version 
Fixed in Version 
Summary0004554: Anchor references to jump inside tabs
DescriptionIt would be nice to have a standard way to open a specific tab, by default with no effort.

Here is a diff I made for it in v10...

diff --git a/themes/default/templates/COMCODE_TAB_HEAD.tpl b/themes/default/templates/COMCODE_TAB_HEAD.tpl
index a1fbc69b..b01ce074 100644
--- a/themes/default/templates/COMCODE_TAB_HEAD.tpl
+++ b/themes/default/templates/COMCODE_TAB_HEAD.tpl
@@ -1 +1 @@
-<a aria-controls="g_{$GET|*,tab_sets}_{TITLE|*}" role="tab" href="#" id="t_{$GET|*,tab_sets}_{TITLE|*}" class="tab{+START,IF,{FIRST}} tab_active tab_first{+END}{+START,IF,{LAST}} tab_last{+END}" onclick="select_tab('g','{$GET|*,tab_sets}_{TITLE|*}'); return false;"><span>{TITLE*}</span></a>
+<a id="{$GET|*,tab_sets}_{TITLE|*}__jump"></a><a aria-controls="g_{$GET|*,tab_sets}_{TITLE|*}" role="tab" href="#" id="t_{$GET|*,tab_sets}_{TITLE|*}" class="tab{+START,IF,{FIRST}} tab_active tab_first{+END}{+START,IF,{LAST}} tab_last{+END}" onclick="select_tab('g','{$GET|*,tab_sets}_{TITLE|*}'); return false;"><span>{TITLE*}</span></a>

However, this could be cleaner. We should review the automatic tab navigation code, which was mainly created for member profile tabs. Ideally it might be possible with something shorter than the "<something>__jump" anchor here, probably just "<something>".

It should also be documented.
TagsNo tags attached.
Time estimation (hours)1
Sponsorship open

Activities

Chris Graham

2021-07-23 00:48

administrator   ~0007108

Implemented for v11.
Not documented as it is obvious it is happening, as it is universal across almost every existing tabset.

Issue History

Date Modified Username Field Change
2021-01-18 22:58 Chris Graham New Issue
2021-03-15 18:26 Chris Graham Tag Attached: Roadmap: v12
2021-07-23 00:48 Chris Graham Assigned To => Chris Graham
2021-07-23 00:48 Chris Graham Status non-assigned => resolved
2021-07-23 00:48 Chris Graham Resolution open => fixed
2021-07-23 00:48 Chris Graham Note Added: 0007108
2022-08-15 15:47 Chris Graham Tag Detached: Roadmap: v12