EE 2.5.2 breaking seg2cat category images?
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?
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
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...
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?
Low 24 Jul 2012 14:15
Yep, 2.4.0:
http://expressionengine.com/user_guid...
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}
?
Low 24 Jul 2012 15:24
Yeah, that should do it.
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
Low 24 Jul 2012 15:43
Try this instead:
Martyn James 24 Jul 2012 16:12
That did it ... Thanks for your help!