Been a while since I have done any work with paint layouts
What I want to do is a Asset Listing of a number of assets, if an asset has a certain metadata value of "Y" display and image.
Is that possible.
Can it be done?
Anybody got pointers on how to do it?
(a quick search of the forum got me up to speed, but I am still having problems)
This topic might help: http://forums.matrix.squiz.net/index.php?showtopic=5276&hl=
Hi Nic, that was the post I was following till I got stopped in my tracks by
Fatal error: Call to a member function getStylesheets() on a non-object in /data/matrix/core/assets/bodycopy/bodycopy/bodycopy_edit_fns.inc on line 100when trying to edit type format, trying to find a solution to that was causing me big problems and asset listing just disappeared.
Time to upgrade to 3.18.3 (which has new features on paint layouts and hopefully fixed strange happenings like this)
[quote]Hi Nic, that was the post I was following till I got stopped in my tracks by
Fatal error: Call to a member function getStylesheets() on a non-object in /data/matrix/core/assets/bodycopy/bodycopy/bodycopy_edit_fns.inc on line 100when trying to edit type format, trying to find a solution to that was causing me big problems and asset listing just disappeared.
Time to upgrade to 3.18.3 (which has new features on paint layouts and hopefully fixed strange happenings like this)[/quote]
You should submit a bug report so this can be checked out and fixed.
Need to upgrade to 3.18.3 1st to see if that fixes the problem. Changing the design (to the non-customised one version) on the paint layout and that resolved the problem for me.
Still no luck in getting paint layout working for me, time to experiment a little more.
OK all working now thanks Nic.
Just needed to know amongst other things, you customise Default Format not Asset Listing Page Format to customise individual assets.
[quote]OK all working now thanks Nic.
Just needed to know amongst other things, you customise Default Format not Asset Listing Page Format to customise individual assets.[/quote]
In the type format of the asset listing, you need to add %asset_contents%, and then in the paint layout type format, you add your customization code.
Is this what you were asking?
No, I worked that out by a little trial and error, it was I needed to edit the asset listing in default format not asset listing page format. Now swearing because half my metadata does not want to play (either by print or by Conditional Keywords).
Why %asset_metadata_Australian% and %asset_metadata_URL% works, but not %asset_metadata_fulltext% and %asset_metadata_searchURL%.
Looks like a quick change the metadata first character to Caps may help.
Except just realised %asset_metadata_provider% is working
Regenerating the metadata fixed that problem