Hi,
I'm using an asset listing with various different type formats to generate a list of assets and generate a link through to simple edit.
I have the following code to generate the link <a href="%asset_url%/_edit?asset_ei_screen=details" >Edit</a>.
This code works fine for standard pages, however when I use the same code for image or file format the edit link does not work when the image is live.
The edit link becomes /__data/assets/file/0020/10586/mp3a.mp3/_edit? - and we receive a 404 error. However, if the image or file is under construction then the edit link is ok and the item can be edited.
Is the keyword %asset_url% supposed to be different for image and file types when the status is live?
Since file assets that are public read and live are serverd by apache and have a __data URL, you need to enter simple edit in a different way. You need to reference the asset ID using the limbo_assetid option.
So, you would form your file edit links like:
%asset_name%
It does not matter which URL on your site you append the /_edit?limbo_assetid to, you just need to be sure you pass in the correct asset id. Doing this will take you to simple edit for files. :)
This reminds me a question I was meaning to ask. On asset limbo editing where does the paint layout get inherited from? Is it from the asset getting called by the id? Or the referring asset it's 'rooted' from?
The design and paint layout should come from the asset at the URL you are using.
So if you use www.example.com/_edit?limbo_assetid=123 you'll get the site design and paint layout.
If you do something like www.example.com/tools/edit-interface/_edit?limbo_assetid=123 you can set a consistent paint layout and design for files and have it changed from one place.
Right that clears it up. Thanks Greg.
What manual can tell me more about limbo_assetid ?
[quote]
The design and paint layout should come from the asset at the URL you are using.
So if you use www.example.com/_edit?limbo_assetid=123 you'll get the site design and paint layout.
If you do something like www.example.com/tools/edit-interface/_edit?limbo_assetid=123 you can set a consistent paint layout and design for files and have it changed from one place.
[/quote]
I have done something similar on my site, and have noted how the url can change the design used for the file. However, is there a way to specify which edit layout is used?
Yes, you can create your own layouts and set them in the layout manager for particular assets and asset screens. Layout manager is in the system management folder.