Child Categories
ExpressionEngine 1.x, ExpressionEngine 2
Back to this add-on's main page
View Other Add-ons From Laisvunas
Outputting Entry Image paths via CE Image or IMGsizer
Support Request
Brick
|
Posted: 01 May 2012 01:07 PM |
|
|
|
We’re loving the the flexibility and output possibilities with Child Categories and Field Values. However, we’ve run into quite a snag with image outputs for entries. We’d like to use CE Image or IMGsizer but it looks like the parse orders are won’t for them to work. My very direct question is this:
Is there a way to parse CE Image or IMGsizer plugins within Child Categories and Field Values?
Here’s an example of what we’re working with:
{exp:child_categories parent="{segment_2_category_id}" parse="inward" child_categories_sort_by="custom" child_categories_sort_direction="asc" show_empty="no" entries_sort_by="date" entries_sort_direction="asc" } {parent_category_start} <h1>{parent_category_name}</h1> {parent_category_end} {child_category_start} <div id="{child_category_url_title}"> <h2>{child_category_name}</h2> </div> {child_category_end}
{entries_start} {product_catalog} {exp:field_value entry_id="{entry_id}"} <a href="/products/{segment_2}/{url_title}">{title}</a> {field_value_product_image_file}<br> {exp:ce_img:single src="{field_value_product_image_file}"} {/exp:field_value} {entries_end} {/exp:child_categories}
The first {field_value_product_image_file} renders a full URL. The second renders nothing. Here’s the debug reference:
(0.109337 / 17.75MB) *** CE Image debug: Base path: '/Applications/MAMP/htdocs/local.site.com/' (0.109361 / 17.75MB) *** CE Image debug: Source image: '{field_value_product_image_file}', Fallback image: '' (0.109368 / 17.75MB) *** CE Image debug: Source image is not readable or does not exist: '{field_value_product_image_file}'. (0.109375 / 17.75MB) *** CE Image debug: Fallback source image is not readable or does not exist: ''.
Thanks.
|
|
|
Laisvunas
|
Posted: 02 May 2012 05:37 AM |
# 1
|
|
Developer
|
Hi,
It seems that the parse order should be this:
1) exp:child_categories tag
2) exp:field_value tag
3) exp:ce_img:single tag
To get parsing in this order add parameter
parse="inward"
to exp:field_value tag.
|
|
|