MG 2.0 Change Media Slider's link?

Edit template xfmg_widget_media_slider

Find:

Code:
<h3 class="block-minorHeader">

                <a href="{$link}" rel="nofollow">{{ $title ?: phrase('xfmg_latest_media') }}</a>

            </h3>


All you need to do is to replace {$link} with a custom link.


But if you have more than one widget than use conditional statements.

My current template, three widgets, Latest video, Random pictures and Latest pictures :

Code:
<xf:if is="$widget.key == 'xfmg_Latest_video'">

                     <h3 class="block-minorHeader">

                         <a href="/media/categories/filmovi.4/" rel="nofollow">{{ $title ?: phrase('xfmg_latest_media') }}</a>

                     </h3>

               </xf:if>


                <xf:if is="$widget.key == 'xfmg_random_slide'" >

                   <h3 class="block-minorHeader">

                      <a href="/media/" rel="nofollow">{{ $title ?: phrase('xfmg_latest_media') }}</a>

                    </h3>

                </xf:if>

              

              <xf:if is="$widget.key == 'xfmg_latest_media'" >

                    <h3 class="block-minorHeader">

                         <a href="{$link}" rel="nofollow">{{ $title ?: phrase('xfmg_latest_media') }}</a>

                      </h3>

                </xf:if>
 
Back
Top Bottom