hostxls Posted August 11, 2016 Share Posted August 11, 2016 Hello, Here is Vincent, a quick short question. How do i place information in the left and right column in the Knowledge base. Check the image Like to hear from you, Thanks 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 11, 2016 Share Posted August 11, 2016 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. 0 Quote Link to comment Share on other sites More sharing options...
hostxls Posted August 11, 2016 Author Share Posted August 11, 2016 Hello, Do I use the ClientAreaPrimarySidebar code? What I wanna do is place an image in the left sidebar 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 11, 2016 Share Posted August 11, 2016 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... 0 Quote Link to comment Share on other sites More sharing options...
hostxls Posted August 11, 2016 Author Share Posted August 11, 2016 (edited) Thanks, it works fine. Thank you for the code Edited August 11, 2016 by hostxls 0 Quote Link to comment Share on other sites More sharing options...
hostxls Posted August 11, 2016 Author Share Posted August 11, 2016 (edited) 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 August 11, 2016 by hostxls 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 11, 2016 Share Posted August 11, 2016 if they're both using the same image, you could combine them into one line... {if $filename eq 'announcements' or $filename eq 'knowledgebase'}<img src="https://hostxls.com/wp-content/uploads/2016/08/Support-logo.png">{/if} 0 Quote Link to comment Share on other sites More sharing options...
hostxls Posted August 11, 2016 Author Share Posted August 11, 2016 That is smart But what if I want to add more than one image? How do I do that in both tpl's announcements and knowledge base. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 11, 2016 Share Posted August 11, 2016 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 ! 0 Quote Link to comment Share on other sites More sharing options...
hostxls Posted August 11, 2016 Author Share Posted August 11, 2016 So you are telling me that <br> is the key Why I didn't think about that. Thanks again 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.