YOOtheme Pro is here! The best WordPress and Joomla theme. Learn more

Avatar gekroon asked

(SOLVED) Why the url in zoo add the space before the folder?

Hi sorry for this question but I really don't understand where I have to edit for solve it.

I created a test site with joomla 3, zoo, yootheme pro and widjetkit 2 you can see here

I want to use an external component called MagicZoomPlus and for work this component needs that you add a link with a class="MagicZoomPlus" so I edited the zoo blog template and added this code

 <div class="uk-width-1-2@m">  
    <a href="<?php echo $this->renderPosition('linkzoom'); ?>" class="MagicZoomPlus">

        <?php echo $this->renderPosition('images'); ?>

    </a>  
    <br>

</div>

but when the page is create the url has the folder of the site before and this create problems for the component.

 <div class="uk-width-1-2@m">  
    <div class="MagicToolboxContainer" style=""><a id="MagicZoomPlusImagec6a4f2eaaed16d54727937a18a41b58a"  class="MagicZoom" href="/durerarts/ images/artworks/004.jpg " title="Test 0001"><img itemprop="image" src="http://www.testsite-gekroon.cloud/durerarts/media/zoo/images/004_small_5c43d52fbe1eb5e75466711eab5b2dcd.jpg"   alt="Test 0001" width="500" height="570" /></a><div class="MagicToolboxMessage">Move your mouse over image or click to enlarge</div></div>  
    <br>

</div>

How I can solve it?

  • Joomla
  • ZOO

Edited

2 Answers

0

Avatar gekroon answered

I solved it alone this is the solution if someone need it:

I used "trim" and so I have removed the space before the folder in the link:

<a href="<?php echo trim($this->renderPosition('linkzoom')); ?>" class="MagicZoomPlus">


        <?php echo $this->renderPosition('images'); ?></a>
0

Avatar philipp Yootheme answered

Hi,
thanks for the heads up I will mark your answer as the correct one, so that other users with the same problem will find this more easily :)

Kind Regards
Philipp

Know someone who can answer? Share a link to this question via email or twitter.