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.

Gallery and Weblogs

March 19, 2008 7:44pm

Subscribe [3]
  • #1 / Mar 19, 2008 7:44pm

    leadsuccess

    408 posts

    Hi created a gallery group and uploaded my photos.  The thing is I want certain photos in my weblogs.  So I created 3 custom weblog fields so I could pick and choose what photo goes where.  I go to the weblog and choose the photos I want, my custom weblog fiels are as follows sportphoto1, sportphoto2, sportphoto3.  When I go to edit the template and place {sportphoto1} {sportphoto2} {sportphoto3} between the weblog tag I get this output.

    2 3 4

    that’s it, that is all I get, the photos are there in the gallery directory and I believe I did everything correct.  Am I missing something?

  • #2 / Mar 19, 2008 8:40pm

    Bruce2005

    536 posts

    The custom field name tag gives photo id.

    Assuming you are using related entries-gallery, then the code to have the images is:
    docs related entries - gallery part way down.

    {related_entries id="gallery"}
       <a href="{image_url}wtd1lDqJqy2IVHSMRomRAaCCZ9Gc2d76typography_img_src_end width={width} height={height} alt={title} title={title} ">{image_url}wtd1lDqJqy2IVHSMRomRAaCCZ9Gc2d76typography_img_src_end width={width} height={height} alt={title} title={title} </a>
       <h3>{title}</h3>
    <p>   {caption}<br />
    {/related_entries}

    id=“field_name”
    For thumb:

    <a href="{thumb_url}wtd1lDqJqy2IVHSMRomRAaCCZ9Gc2d76typography_img_src_end width={thumb_width} height={thumb_height} alt={title} ">{thumb_url}wtd1lDqJqy2IVHSMRomRAaCCZ9Gc2d76typography_img_src_end width={thumb_width} height={thumb_height} alt={title} </a>

    Can also add link to full size img as wanted.
    .

  • #3 / Mar 19, 2008 9:21pm

    leadsuccess

    408 posts

    Ahhh thanks!  That was just what I needed!

  • #4 / Mar 19, 2008 9:43pm

    leadsuccess

    408 posts

    I have another related question to this.

    I adjusted the image resize in pref. to 65 x 65 but when the thumbnail shows it’s showing at 75 x 75, no matter number I put in prefs.  it still comes out 75 x 75?  Is this a bug?

  • #5 / May 15, 2008 5:16am

    Marks

    100 posts

    Thanks guys, this thread really helped me. I had the same problem and I am now sorted out.

    Regards,
    Marks

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

ExpressionEngine News!

#eecms, #events, #releases