Results 1 to 3 of 3

Thread: Catalog - display only path to image

  1. #1

    Default Catalog - display only path to image

    Hi.
    I've made custom layout for catalog_full where i'm displaying fields like that:
    Code:
    <?php echo $entry['data']['pageDescription']['value']; ?> or <?php echo $entry['data']['pageDescription']['label']; ?>
    Now when I want to display only image in catalog list I do like that:
    Code:
    <?php echo $entry['data']['pageGallery']['value']; ?>
    When I put that code, Catalog module generates all the necessary code (a href, lightbox id) that picutre is displayed in lightbox.

    In my case I only want to get image path, because I want that the image is displayed as link which would redirect to item and not to lightbox.

    Thanks...thyon :D
    Web design agency - EDsolution.si Izdelava spletnih strani

  2. #2
    User MacKP's Avatar
    Join Date
    06-19-09.
    Location
    Duisburg (Germany)
    Posts
    211

    Default Re: Catalog - display only path to image

    Hi wotanskrieg,
    you should read this -> http://code.google.com/p/typolight-cata ... esTutorial
    there you will find a way to look at the array of an item.
    Each picture has more Informations in that array, like the path. So you should get it with
    Code:
    <?php echo $entry['data']['pageGallery']['meta']['0']['src']; ?>
    You can make that within an inserttag for images, with all other information like width, height and so on.

    regards
    Mediendepot Ruhr
    For real-time chat the (inofficial) Chatroom in IRC:
    -> irc.freenode.net #contao | irc.freenode.net #contao.de

  3. #3

    Default Re: Catalog - display only path to image

    Ou yea...Thank you very much MacKP. It works like charm
    Web design agency - EDsolution.si Izdelava spletnih strani

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
  •