Hi,
I've set up an asset listing page to list the uploaded files.
Some files have public access, so the path looks like "http://www.myweb.com/0003/83838/filename.pdf"
Some files have restricted access, so the paths like "http://www.myweb.com/subsite/filename.pdf"
Now the problem is, the ways to access these two type of files are different. In that case how can I put the links to the simple edit interfaces in one asset listing page?
May I have some suggestion?
:rolleyes:’ /> <img src=‘http://forums.matrix.squiz.net/public/style_emoticons/<#EMO_DIR#>/rolleyes.gif’ class=‘bbc_emoticon’ alt=':rolleyes:
Robin
Instead of listing their URL with a keyword, list the asset ID in the URL:
www.myweb.com/_edit?limbo_assetid=%asset_assetid%
That limbo_assetid query string var tells Matrix to ignore the rest of the URL and print the simple edit interface for that asset instead. So it doesn't matter what URL you actually use. You can hard-code it to the site's URL, or just use the URL of the current asset:
%globals_asset_url%/_edit?limbo_assetid=%asset_assetid%
[quote]Instead of listing their URL with a keyword, list the asset ID in the URL:
www.myweb.com/_edit?limbo_assetid=%asset_assetid%
That limbo_assetid query string var tells Matrix to ignore the rest of the URL and print the simple edit interface for that asset instead. So it doesn't matter what URL you actually use. You can hard-code it to the site's URL, or just use the URL of the current asset:
%globals_asset_url%/_edit?limbo_assetid=%asset_assetid%[/quote]
Thank you Greg!
The more I use Matrix the more I love it.
:lol:’ /> <img src=‘http://forums.matrix.squiz.net/public/style_emoticons/<#EMO_DIR#>/laugh.gif’ class=‘bbc_emoticon’ alt=':lol: