Using asset listing to display contents of an asset


(Eric) #1

Hi all,

 

We use 2 asset listings setup in a following way (thanks To Nick)

 

1. asset lsiting 1 - Standard asset listing lists pdf asset type with asset link setup in a following way href="asset_listing2_url?job_id=%asset_id%"

2. asset listing 2 - using root node replacement with Get attribute job_id and results of the asset list set to 1 per page

 

This setup works buetifully thanks Nick

 

I am in need of setting up the same thing again using single/recuring calendar assets, simple right turns out not so much

 

I have setup all the assets and roots in exectly the same way and it's not happening. Can't find a reson. The result is that second listing complains no results, however I have put %root_nodes% keyword in no results page contents page and it displays right ID that gets passed from first listing

 

The only difference between 2 setups is that first is setup under the same website and second (calendar) setup sits under subdomain what it means is that both asset listings sit under subdomain.website.com and root nodes where assets are in under website.com. This shouldn't be a problem right? First listing shows results as expected, but second listing acts like there is nothing to show.

 

Can anyone suggest any solutions or any other way to test where the problem is


(Nic Hubbard) #2

If you are just wanting to link to Calendar events you shouldn't have to use this method. You can just use the normal %asset_url% to take the user there. If you want to apply a paint layout, just apply it to those assets.

 

Should be simple unless I am missing something.


(Eric) #3

Problem is that subdomain is a mobile site that feeds mobile app. I can link events under this new site, but i'd rather not do that as there thousands of them. I can also add URL to normal site and paint layout that URL, but it is an overkill when only 10-20% of assets will be shown on mobile app.

 

Can I create url to tell matrix to display asset under main site with arbitrary paint layout? and will that asset be cashed as I don't want to slow down an app feed.

 

I thought this would be best solution, but I am open to suggestions


(Nic Hubbard) #4

Problem is that subdomain is a mobile site that feeds mobile app. I can link events under this new site, but i'd rather not do that as there thousands of them. I can also add URL to normal site and paint layout that URL, but it is an overkill when only 10-20% of assets will be shown on mobile app.

 

Ah, ok. Then yes, I think your original idea would be the best. It should still work. Not sure why it isn't working for you though. Must be some small setting...


(Eric) #5

Ok I figured out why it's not working, but now please help with the solution.

 

It doesn't work because asset listing is under subdomain.ourdomain.com.au and assets it needs to grab are under ourdomain.com.au

 

These are defined as separate site assets in Matrix and I don't want to link hundreds of assets under subdomain. Any suggestions?


(Aleks Bochniak) #6

Are both of your site assets included as normal root nodes in the second asset listing?


(Eric) #7

No, hmmm

 

I'll try