Jump to content

How do I......Knowledge base


hostxls

Recommended Posts

Vincent,

 

on the left, by using a sidebar hook... or, as a last resort, by editing the sidebar.tpl template...

on the right, I don't think that's a separate space there, it's just that the kb articles are truncated to 100 characters... so I would imagine if you changed the truncation value to '200' in the template, then the article detail would reach over to the right-hand side.

Link to comment
Share on other sites

Do I use the ClientAreaPrimarySidebar code?

What I wanna do is place an image in the left sidebar

where you've drawn your box on the left, it would be more suitable to use ClientAreaSecondarySidebar hook...

...or if you want to add it using Smarty in a template - edit footer.tpl and change...

 

            <div class="col-md-3 pull-md-left sidebar">
               {include file="$template/includes/sidebar.tpl" sidebar=$secondarySidebar}
           </div>

to...

            <div class="col-md-3 pull-md-left sidebar">
               {include file="$template/includes/sidebar.tpl" sidebar=$secondarySidebar}
                   {if $filename eq 'announcements'}<img src="https://i.imgur.com/a1ke1vK.png">{/if}
           </div>

whichever you feel most comfortable doing... :idea:

 

8LWY4rS.png

Link to comment
Share on other sites

Hi,

 

To add the same in knowledge base this works fine for me ;)

 

<div class="col-md-3 pull-md-left sidebar">

{include file="$template/includes/sidebar.tpl" sidebar=$secondarySidebar}

{if $filename eq 'announcements'}<img src="https://hostxls.com/wp-content/uploads/2016/08/Support-logo.png">{/if}

{if $filename eq 'knowledgebase'}<img src="https://hostxls.com/wp-content/uploads/2016/08/Support-logo.png">{/if}

</div>

 

 

But what if I want to add more than one image?

How do I do that in both tpl's announcements and knowledge base.

Edited by hostxls
Link to comment
Share on other sites

you mean..

 

{if $filename eq 'announcements' or $filename eq 'knowledgebase'}<img src="https://hostxls.com/wp-content/uploads/2016/08/Support-logo.png"><br><img src="https://hostxls.com/wp-content/uploads/2016/08/Support-logo.png">{/if}

you'd probably want to use css instead of a break return, but you get the idea ! :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated