Results 1 to 11 of 11

Thread: Create link to poster image

  1. #1
    User
    Join Date
    08-04-09.
    Posts
    230

    Default Create link to poster image

    I have created a simple lookup in "define filters"

    I made this auto_item and connected it to an alias. The link works, but how do I name it?
    I entered label in simple lookup, but this is ignored.

    Also, I have created a poster image, which now opens in a lightbox. Is it possible to create a link (like the read more link) to an image?

    Have been trying every possible option, but without luck. I am a bit lost....

  2. #2
    User zonky's Avatar
    Join Date
    11-29-11.
    Location
    Berlin
    Posts
    154

    Default

    you can change the template and clean the lightbox data

  3. #3
    User
    Join Date
    08-04-09.
    Posts
    230

    Default

    Thanks for your help!

    I guess that would be template mm_attr_file

    Would you know what to change it to? Thing is, I do not quit understand how the link/alias works.
    I have one working, but I cannot figure out how it is working. So I cannot peek and see how the links are created.


    Code:
    <li class="<?php echo $arrFile['class']; ?>">
    	<?php if ($this->settings->get('file_showLink')): ?>
    		<?php if ($this->settings->get('file_showImage')): ?>
    			<a class="cboxElement" data-lightbox="<?php echo $arrFile['lb']; ?>" title="<?php echo $strTitle; ?>" href="<?php echo $arrFile['file']; ?>">
    		<?php else: ?>
    			<a title="<?php echo $strTitle; ?>" href="<?php echo $arrFile['url']; ?>">
    		<?php endif; ?>
    	<?php endif; ?>
    				
    	<?php if ($this->settings->get('file_showImage')): ?>
    		<?php if ($arrFile['isGdImage']): ?>
    			<?php echo $this->generateImage($arrFile['src'], $strAlt); ?>
    		<?php endif; ?>
    	<?php else: ?>
    		<img src="<?php echo $arrFile['icon']; ?>" alt="<?php echo $strAlt; ?>" /> <?php echo $strTitle; ?> <span class="size"><?php echo $arrFile['sizetext']; ?></span>
    	<?php endif; ?>
    		
    	<?php if ($this->settings->get('file_showLink')): ?>
    		</a>
    	<?php endif; ?>
    </li>

  4. #4
    User zonky's Avatar
    Join Date
    11-29-11.
    Location
    Berlin
    Posts
    154

    Default

    make a copy with name e.g. mm_attr_file_dl

    PHP Code:
    <li class="<?php echo $arrFile['class']; ?>">
        <?php if ($this->settings->get('file_showLink')): ?>
            <a title="<?php echo $strTitle?>" href="<?php echo $arrFile['url']; ?>">
        <?php endif; ?>
                    
        <?php if ($this->settings->get('file_showImage')): ?>
            <?php if ($arrFile['isGdImage']): ?>
                <?php echo $this->generateImage($arrFile['src'], $strAlt); ?>
            <?php endif; ?>
        <?php else: ?>
            <img src="<?php echo $arrFile['icon']; ?>" alt="<?php echo $strAlt?>" /> <?php echo $strTitle?> <span class="size"><?php echo $arrFile['sizetext']; ?></span>
        <?php endif; ?>
            
        <?php if ($this->settings->get('file_showLink')): ?>
            </a>
        <?php endif; ?>
    </li>
    and choose this template

  5. #5
    User
    Join Date
    08-04-09.
    Posts
    230

    Default

    Thanks a lot for your super quick answer.
    This does remove the lightbox. But this is not quit what I mean.

    I have this poster image from a product in the productlist/overview.
    I want this image to be clickable, and lead the visitor to the detail page of this product. Which is way more logical then having it open in a lightbox.

    I have created a simple lookup in filtersettings for this with the URL parameter auto_item.
    I also created an alias for the poster image. Well.... I tried about a zillion things, but I just cannot seem to create a link.

  6. #6
    User zonky's Avatar
    Join Date
    11-29-11.
    Location
    Berlin
    Posts
    154

    Default

    o.k. - you´ll have a link to the detail page at image?

    so you should make your own metamodels_prerendered template

    pls look at Manual.../de/latest/cookbook/debug/templates.html an you can see all your attributes - sorry, is in german :-(

    [its not possible to insert a Link!?!?]

  7. #7
    User
    Join Date
    08-04-09.
    Posts
    230

    Default

    Thanks for the link to the maual, but it does not make me much wiser :-)

    No it is not possible to insert a link to the image. Only tick lightbox.
    Which seems odd to me, because creating an image link in a list seems basic necessity.

  8. #8
    User zonky's Avatar
    Join Date
    11-29-11.
    Location
    Berlin
    Posts
    154

    Default

    have you a link with the "debug" output? - you can use the PM
    Last edited by zonky; 02/23/2016 at 12:28.

  9. #9
    User
    Join Date
    08-04-09.
    Posts
    230

    Default

    Where can i find the template used to create a link in filter settings (simple lookup/ auto_item)
    with this filter a link to the item is created.

    That way i can have a look and fiddle around in the template mentioned above

  10. #10
    User zonky's Avatar
    Join Date
    11-29-11.
    Location
    Berlin
    Posts
    154

    Default

    I´m not sure, if I understand your goal...

    * you have a FE MM-List with any Items (with text and image)
    * every Item have al Link to the detail-page
    * you will have this link at you image to the detail page

    correct?

  11. #11
    User
    Join Date
    08-04-09.
    Posts
    230

    Default

    That is correct :-)

    Now there is a link at the bottom of each item at the mm-list page.

    I would like to make the image a link. Or the title or whatever attribute I create in this mm-list

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •