0
Welcome Guest! Login
0 items Join Now

SOLVED mosaic Grid image linking

  • SOLVED mosaic Grid image linking

    Posted 7 years 8 months ago
    • Quick question regarding the mosaic grid. I'd love to be abel to make the images the link instead of any text. To do this would I have to add in custom css to make the button clear or can we add css to just make the image the link? If I have to make the button clear thats ok but can you give me what i would need for the css? Thanks
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED mosaic Grid image linking

    Posted 7 years 8 months ago
    • Actually what you need to do is to create a particle override for the mosaicgrid particle and then alter the TWIG code to wrap the link around the image instead of the text.

      To learn how to override a particle in Gantry 5 please see our documentation here http://docs.gantry.org/gantry5/tutorials/overriding-particle-settings#overriding-particle-source-files .

      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.
  • Re: SOLVED mosaic Grid image linking

    Posted 7 years 8 months ago
    • Did I do this right? It doesnt seem to be working.

      <div class="g-mosaicgrid-image">
      {% if item.titleURL %}<a target="{{ item.titleTarget|default('_self')|e }}" href="{{ item.titleURL|e }}">{% endif %}<img src="{{ url(item.img)}}" {{ item.img|imagesize|raw }} alt="{{ item.title|e }}">{% if item.titleURL %}</a>{% endif %}
      </div>

      I copied from this...


      {% if item.titleText %}
      <div class="g-mosaicgrid-item-title">
      {% if item.titleURL %}<a target="{{ item.titleTarget|default('_self')|e }}" href="{{ item.titleURL|e }}">{% endif %}
      {{ item.titleText|raw }}
      {% if item.titleURL %}</a>{% endif %}
      </div>
      {% endif %}
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED mosaic Grid image linking

    Posted 7 years 8 months ago
    • 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.

      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.
  • Re: SOLVED mosaic Grid image linking

    Posted 7 years 8 months ago
    • This message contains only secure information that is visible to MrT, moderators and administrators
  • Re: SOLVED mosaic Grid image linking

    Posted 7 years 8 months ago
    • Did you get my login info?
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED mosaic Grid image linking

    Posted 7 years 8 months ago
    • Please be aware that moderators work in different timezones throughout the world and that these may not match your own. We try to answer most posts within 48hrs but at busy times and weekends it may take a little longer.

      I get a 403 forbidden on your admin panel - I guess that you have some geo-blocking in place?

      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.
  • Re: SOLVED mosaic Grid image linking

    Posted 7 years 8 months ago
    • Yes we do. We have been targeted by several countries. How can I get around that? I'm willing to work through code myself.
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED mosaic Grid image linking

    Posted 7 years 8 months ago
    • This message contains only secure information that is visible to Mark J Kilcoyne, moderators and administrators
    • 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.
  • Re: SOLVED mosaic Grid image linking

    Posted 7 years 8 months ago
    • Try it now. Your in the allow list

Time to create page: 0.048 seconds