0

Having a small problem with images from an Assets fieldtype ... that is in a Matrix field ... that is in a Low Variable ... showing on a second MSM site.

All the other Matrix fields (basic text fields) list okay ... it's just that the Assets field that is not showing.

So on the second 'MSM' site I've got the following code:

{exp:low_variables:pair var="site_1:lv_sites"}
    <p>{image}</p>
    <p>{description}</p>
{/exp:low_variables:pair}

If I put the same code on "site_1" the {image} tag comes out fine. On "site_2" the {image} tag comes out blank. I've tried using {image:server_path} and {image:url} and it's still coming out blank.

Running EE 2.5.5, Assets 2.1.3 and Low Variables 2.3.4.

Any thoughts are welcome!

Cheers.

8
  • Does adding the parameter site="site_1" (so Matrix knows it needs to pull data from a different site too) help at all?
    – Low
    May 30, 2013 at 11:37
  • Hmm. Good thought, but didn't seem to make any difference. I do think it's an issue with the site name/id in the Assets field. May 30, 2013 at 11:45
  • Check the output profiler and look up and DB queries that target the Assets table. Can you see a site_id in the where clause?
    – Low
    May 30, 2013 at 11:55
  • Strange, but it's finding the item in the Assets table fine (I copied and pasted the SQL into Sequel Pro and it ran fine) - SELECT * FROM (exp_assets_files) WHERE file_id = '21'; SELECT DISTINCT a.* FROM exp_assets_files AS a INNER JOIN exp_assets_folders AS af ON af.folder_id = a.folder_id INNER JOIN exp_assets_selections AS ae ON ae.file_id = a.file_id WHERE ae.var_id = 16 AND ae.col_id = "23" AND ae.row_id = "95" AND ae.is_draft = 0 ORDER BY ae.sort_order May 30, 2013 at 12:10
  • Looking at just the output of the profiler, it's listing "Returning No Results Content" for what I think is the 5 {image}{url}{/image} tags I'm testing with in the LV parse tag. WEIRD! May 30, 2013 at 12:14

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.