Forum Discussion

ebroyles's avatar
12 years ago

Is it possible to move the display of labels on the TKB Article Page to the bottom of the article?

I have a request from several of our community managers to display the TKB labels at the bottom of the TKB article (on the TKB Article Page) rather than at the top.  I've looked at the TKB Article Page and the components on it as well as the TKB Message page and its components but I don't see one that is specific to the labels.  My guess is that the message-header component in the tkb-message-v2 quilt contains the labels.

 

Can this be done?

 

Thanks,

Eric

  • YuriK's avatar
    YuriK
    Khoros Expert

    Hey Eric,

     

    The TKB Labels are actually in the TKB Article Page Header page. You will have to remove the following component from the header and move it to wherever you want on the TKB Article Page.

     

        <component id="tkb.widget.labels-for-article"/>

     

    Hope this helps,

     

    Yuri

    • ebroyles's avatar
      ebroyles
      Maven
      Hi Yuri,

      This is helpful, however it appears that the TKB Article Page Header page is not even in use on our TKB Article Page page. Instead the internal Lithium component "article" is being used. I checked it in the Toolbelt Inspector and it indicates that it cannot be modified in Studio.

      I tried swapping the "article" component for the "TKB Article Page Header" quilt, but that removes the article itself from the display.

      What component can I use to show simply the article body itself without using the internal "article" component so that I can fully control the layout of the TKB Article Page?

      Thanks,
      Eric
      • YuriK's avatar
        YuriK
        Khoros Expert

        Hey Eric,

         

        in TKB v2 the article component contains within it a TKB Message quilt. The labels are part of the message-header inside TKB Message. However, the title is also part of the message-header. You have a few options here:

         

        1) Use css to hide the labels in the article component and then add them the way I specified in my previous post

        2) Remove the message-header from the TKB Message quilt and either create a custom component that has just the portions of the header that you want.

         

        Option 1 is the simplest one to go with although it is not the most elegant. Option 2 will probably require a bit of work to get lookin right.

         

        Hope this helps,

         

        Yuri