All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

EE 2.5.2 breaking seg2cat category images?

Martyn James 24 Jul 2012 14:05 problem, rejected

Since I upgraded to EE 2.5.2 it looks like seg2Cat (2.6.2) is no longer parsing the {filedir_n} parameter when displaying {segment_n_category_image}

Anyone else encountered this?

Replies

  1. Low 24 Jul 2012 14:08

    It never parsed the {filedir_n} vars. EE changed the field to a proper File field, along with the filedir vars. To parse those would mean extra overhead which isn't always necessary. I recommend using Parse File Paths: http://devot-ee.com/add-ons/parse-fil...

  2. Martyn James 24 Jul 2012 14:11

    That's odd - it was all working on EE 2.3, then I upgraded to 2.5.2 and all the category images broke - looking in firebug revealed that they were all generating img src={fileldir_3}image.jpg

    Was the EE change post 2.3 perhaps?

  3. Low 24 Jul 2012 14:15

    Yep, 2.4.0:

    Changed the category image field to use the new File_field library and image browser.


    http://expressionengine.com/user_guid...

  4. Martyn James 24 Jul 2012 15:23

    Ahhh ...

    Would I just use this as:
    {exp:parse_file_paths}{segment_3_category_image}{/exp:parse_file_paths}

    ?

  5. Low 24 Jul 2012 15:24

    Yeah, that should do it.

  6. Martyn James 24 Jul 2012 15:34

    Unfortunately doesn't seem to work in conjucntion with imgsizer

    {exp:imgsizer:size src="{exp:parse_file_paths}{segment_3_category_image}{/exp:parse_file_paths}" height="50"}

    {/exp:imgsizer:size}

    Returns nothing

    (although if I echo out {exp:parse_file_paths}{segment_3_category_image}{/exp:parse_file_paths} it is correct)

    Maybe I'll post something on the imgsizer forum now...

    Thanks

  7. Low 24 Jul 2012 15:43

    Try this instead:

    {exp:parse_file_paths parse="inward"} 
    {exp:imgsizer:size src="{segment_3_category_image}" height="50"}
    {/exp:parse_file_paths}

  8. Martyn James 24 Jul 2012 16:12

    That did it ... Thanks for your help!