OK.. I'm getting a head start on this (haven't looked at which template or the contents of it once I find it) but was wondering - the sidebar for recent posts, etc do not reflect the prefix (or in BB parlance Labels) in them. For the way that I'm using prefixes, it makes the post topic a little cryptic - I'm frequently using the prefix as the OS name. How to add the prefix in the sidebar areas shown?

add prefix to sidebar template
- Tracy Perry
- Thread is marked as Resolved.
-
-
Hmmm. coming up on 2 days and no replies.. guess it can't be done.
-
It is missing the data, so there are no labels that could be displayed and additionally the available space in the sidebar is very limited, you will massively cut titles if you do.
Edit: On second thought, I think they are actually loaded, need to check it myself.
-
@Tracy Perry Okay, I got it. You basically need to create a copy of the template dashboardBoxLatestPosts to work with and make these changes:
Code
Display More<li class="box24"> // insert the content below this line {capture assign=__primaryThreadLabel} {assign var=__threadLabel value=$latestPost->getLabels()} {if !$__threadLabel|empty} {assign var=__threadLabel value=$__threadLabel|reset} <span class="label badge{if $__threadLabel->getClassNames()} {$__threadLabel->getClassNames()}{/if}">{$__threadLabel->label|language}</span> {/if} {if $latestPost->getLabels()|empty}{/if} {/capture} // insert the content above this line // a little further down you'll see a section starting with this: <div class="sidebarBoxHeadline"> <h3><a href= // alter it to read this: <div class="sidebarBoxHeadline"> <h3>{@$__primaryThreadLabel}<a href=
I've attached a screenshot that shows how it looks like.
-
I've attached a screenshot that shows how it looks like.
Woot Woot!
Works a treat.. if it was XF, I wouldn't have had as hard of a time... I'm more familiar with their templating syntax/system.. but I'm learning!! -
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!