opengeek/getResources — Issue #59: Filling TV Placeholders when resource is in another context
Author: scottborys
Created: 2011-12-26 17:43:13+00:00
State: open

I think I've uncovered a bug. Here is the getResources call located in the "web" context:

[[getResources? &parents=`5,128` &tpl=`gr.splash_event_li` &includeTVs=`1` &processTVs=`1`]]

Here is the gr.splash_event_li chunk:

[[+start_time_event]]

[[- try without prefix]]

[[+tv.start_time_event:strtotime:date=`%d`]]

[[+pagetitle:ellipsis=`50`]]

[[+introtext:strip_tags:ellipsis=`150`]]

Full Event Details

The result when called from the "web" context:

Page Title

Lorem ipsum dolor...

Full Event Details

The result when called from the "bc" context where the event is located:

11

Page Title

Lorem ipsum dolor...

Full Event Details

Interestingly, it appears that the date is passed through strtotime() and date(), but the image does not appear to be passed through [[phpthumbof]] (typically, phpthumbof would link to a cache hash with an ugly name)

Is this a bug? There appears to be a discrepancy in whether TVs are placed into placeholders based on what context you're calling from.

I've attempted using &context=`0`, &context=``, &context=`bc`. Of course, the last one would not be ideal, as I'm pulling events from multiple contexts.

Let me know if there's any more information that I can provide. Thanks!