Quote from: sottwell at Jan 03, 2011, 03:07 AM
Could you use one call with a tpl that you can position with css? I’m sure getResources supplies enough placeholders to be able to identify each "block" for the CSS placement.
Well that’s what I thought of first, but I don’t know whether it’s possible with GetResources. Rather than relying on TPL to generate an array loop, is there anyway to retrieve a specific result from a getResource call? For example, I only want to retrieve the content and TV information from getResource’s 8th result.
Quote from: OpenGeek at Jan 03, 2011, 12:09 PM
Why does it need to be uncached?
I tried calling them cached, but the result is only from the last getResource call.
Quote from: Dimmy at Jan 03, 2011, 04:45 PM
one thing that will speed up is when you are using tv’s but do not need to parse them set parse tv to false. tv parsing takes a lot of cpu and db time
Dimmy
I will try disabling TV parsing (though I’ll need to retrieve TVs and content). Update: I’ve disabled TV processing and looks like it still works, but now a little faster

.
To better illustrate what I’m doing, imagine I’ve got the following squares in the page:
[story_summary_size_1x1][story_summary_size_2x1]
[story_summary_size_1x1][story_summary_size_1x1][story_summary_size_1x1]
[[story_summary_size_3x1]
[story_summary_size_1x1][story_summary_size_1x1][story_summary_size_1x1]
They’re all pregrouped horizontally.
I put in child documents within the section that has a radio TV group that lets the user select the type of block size they want the story to appear as (ex. 1x1, 2x1, 3x1).
I use getResources for each horizontal group and each block size type.
So to achieve the above:
[!getResources? filters 1x1 stories with an offset of 0] [!getResources? filters 2x1 stories with an offset of 0]
[!getResources? filters 1x1 stories with an offset of 1]
[!getResources? filters 3x1 stories with an offset of 0]
[!getResources? filters 1x1 stories with an offset of 4]
Anything else I can use for this sort of scenario? I guess the ability to be able to use the output in a non list-like loop manner is what I’m trying to achieve here.