ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Image Previews for Entries

August 06, 2010 6:56pm

Subscribe [2]
  • #1 / Aug 06, 2010 6:56pm

    Deep Shah

    3 posts

    Is there a way I can create a page where I can show images in place of text which link to entries? (Instead of a page with a list of the names of the entries, I want a gallery with images which link to the respective entries)

    I found a page will gives instructions for creating what it calls “gallery entries”, but I’m not entirely sure if this will do what I want. (http://rockatee.com/blog/expressionengine-how-to-create-gallery-entries/)

    Thanks!

    [Mod Edit: Moved to the CodeShare Corner forum]

  • #2 / Aug 07, 2010 4:02pm

    Greg Salt

    3988 posts

    Hi Deep Shah,

    Yes, absolutely. I’ll move this thread into the CodeShare Corner forum so that you can get some community input but the basic procedure would be exactly the same as when outputting any custom field. If, for example, each of your entries has a custom field called ‘entry_image’ which contains the link to an uploaded file, you can wrap a link tag around an img tag with your custom field as its source (simplified example):

    {exp:weblog:entries weblog="my_weblog"}
    <a href="http://{path=%27template_group/template%27}{url_title}" title="{title}">{entry_image}</a>
    {/exp:weblog:entries}

    Cheers

    Greg

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases