Developer forum

Forum » CMS - Standard features » Custom TAB in Rapido website->productpage

Custom TAB in Rapido website->productpage

David Löfqvist
Reply

Is it possible in Rapido to make/build a Custom TAB in website->productpage after "Detail fields layout" and "Category fields layout"?

So for example i would like to have a new TAB like below in BOLD

<div class="grid__col-12 product__info product__info--tabs tabs dw-mod">
                <input type="radio" class="tabs__trigger" name="productTabs" id="CustomFields" onchange="bLazy.revalidate()" checked="">
                <input type="radio" class="tabs__trigger" name="productTabs" id="DefaultF" onchange="bLazy.revalidate()">
                <input type="radio" class="tabs__trigger" name="productTabs" id="CommonF" onchange="bLazy.revalidate()">
                <input type="radio" class="tabs__trigger" name="productTabs" id="PartF" onchange="bLazy.revalidate()">
               <input type="radio" class="tabs__trigger" name="productTabs" id="CustomTab" onchange="bLazy.revalidate()">


        <div class="tabs__list dw-mod">
                <label for="CustomFields" class="tabs__label dw-mod">Details</label>
                <label for="DefaultF" class="tabs__label dw-mod">Default F</label>
                <label for="CommonF" class="tabs__label dw-mod">Common F</label>
                <label for="PartF" class="tabs__label dw-mod">Part F</label>
                <label for="CustomTab" class="tabs__label dw-mod">CustomDetails</label>
        </div>
.....

Regards, David

 


Replies

 
Aki Ruuskanen
Aki Ruuskanen
Reply

+1

 
Aki Ruuskanen
Aki Ruuskanen
Reply

Figured it out.

Example :    

BlocksPage customProductBlocks = BlocksPage.GetBlockPage("Product");
var tabsBlock = customProductBlocks.GetBlockById("Tabs");

    Block newTab = new Block()
    {
        Name = "TestTab",
        Id = "TestTab",
        SortId = 41,
        Design = new Design
        {
            RenderType = RenderType.Tab
        }
    };

    tabsBlock.Add(newTab);
   

 

You must be logged in to post in the forum