Add-on RM Extra buttons

ChrisTERiS

Well-known member
Hello,

Is there any addon that allows to add more button links in sidebar? Except the build in "Discussion" I want to add a couple of buttons.

Thank you
Chris
 
I don't know if there is any add-on for that, but you can get it easily by adding a little code to template. (use template modification to not loose it in upgrade cases)

Open "resource_view" template and search for:
Code:
<xen:hook name="resource_view_sidebar_below_support_button" params="{xen:array 'resource={$resource}'}" />
above it, add this:
Code:
<a class="callToAction" href="your url"><span>your title</span></a>

as many as you need. For example I added 3 of it and:
btn.webp
and if you want to also add that small text as well:
btn-2.webp

then use this code:
Code:
<a class="callToAction" href="your url"><span>
        your title
        <small class="minorText">here is small text</small>
</span></a>
 
@Dadparvar
Thank you very much. Really appreciate it. This helps me a lot.
As the data should be dynamic (not all products should have all the buttons), I'll extend it by adding:
1.- Some fields to product table which I'll manually fill from phpMyAdmin.
2.- I should place conditions in template like:
Code:
<xen:if is="{$resource.link1}">
      <a class="callToAction" href="$resource.link1"><span>
       {$resource.link1_title}
       <small class="minorText">{$resource.link1_text}</small>
       </span></a>
</xen:if>

$resource is for demo purposes, I'll check the real array name.

Again thank you.
PS: I've marked some of your mods to buy, but still i'm in the design of homepage. Tomorrow I'll starts with forums and RM.
 
Back
Top Bottom