Select ribbon tab

Modified on Mon, 5 Oct at 1:54 PM

With BaseExtensions we are able to choose a tab in the ribbon and bring selection to this. Typically, this means bringing the client's custom ribbon tab into selection whenever their templates are opened. Default for MS Office is opening with the Home tab selected.

Module

XML
<Cmd case="BaseExtensions:activate-tabq" id="CommonTabID" ns="CommonNameSpace"/>

Parameters

id and ns

Refers to the TabID and NameSpace values as found in the RibbonConfig.xml-file of the Alloy configuration folder, typically located here:

\ProgramData\OfficeExtensions\Common\Configuration

Example

If Client has Templafy, RibbonConfig.xml will look like this:

XML
<Replaces>
 <PowerPoint>
  <NameSpace>http://schemas.templafy.com/2017/7/addins</NameSpace>
  <TabID>TabTemplafy</TabID>
  <ContextTabID>contextTabID</ContextTabID>
  <ContextGroupID>ContextGroupID</ContextGroupID>
  <ChartLabel>CorporateCharts</ChartLabel>
  <ShowContextChart>false</ShowContextChart>
  <TableLabel>CorporateTables</TableLabel>
  <ShowContextTable>false</ShowContextTable>
 </PowerPoint>
</Replaces>

And module should look like this:

XML
<Cmd case="BaseExtensions:activate-tabq" id="TabTemplafy" ns="http://schemas.templafy.com/2017/7/addins"/>

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article