0
Welcome Guest! Login
0 items Join Now

Duplicate link value Promo Image particle

  • Duplicate link value Promo Image particle

    Posted 8 years 3 months ago
    • I override the code PROMOIMAGE particule adding a link on the image (Line 12) and title (Line 17) like this :
      {% extends '@nucleus/partials/particle.html.twig' %}
      
      {% block particle %}
      
      	{% if particle.title %}<h2 class="g-title">{{ particle.title|raw }}</h2>{% endif %}
      
      	<div class="g-promoimage {{ particle.class|e }}">
      	    <figure class="g-promoimage-effect">
      	    	<span class="g-promoimage-iconbutton {{ particle.iconbutton|e }}"></span>
      	        <a href="{{ promoimageicon.link }}"><img src="{{ url(particle.image)|e }}" alt="{{ particle.title|e }}"></a>
      	        <div class="g-promoimage-caption">
      	            {% if particle.promoimagetitle %}<div class="g-promoimage-title">{{ particle.promoimagetitle|raw }}</div>{% endif %}
      	            <div class="g-promoimage-icon">
      					{% for promoimageicon in particle.promoimageicons %}
      					    <a href="{{ promoimageicon.link }}"><span class="{{ promoimageicon.icon }}"></span></a>
      					{% endfor %}  	                
      	            </div>
      	            {% if particle.desc %}<div class="g-promoimage-desc"><a href="{{ promoimageicon.link }}">{{ particle.desc|raw }}</a></div>{% endif %}
      	        </div>           
      	    </figure>
      	</div>
      
      {% endblock %}
      

      But unfortunetly It does not work. An idea ? (see the screen capture attached)
    • Last Edit: 8 years 3 months ago by Laurent BRIERE.
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: Duplicate link value Promo Image particle

    Posted 8 years 3 months ago
    • promoimageicon is a variable set in the for loop as it is item specific - so using it outside of that (on line 10) will not work.

      If you need more help, Please would you post your URL, superuser id and pswd in the secure tab of your post and i'll have a look for you. Also, Please post your FTP logon, password and FTP URL in the secure area of your post.


      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.

Time to create page: 0.035 seconds