Hi all
Apologies in advance if this is the wrong place for this post and/or numptiness!
I am developing a search page and would like this to output a sentence of background text for each search result. This is easy for calendar events and standard pages which have a metadata description, but a fair proportion of the standard page assets don't have a metadata description and there are a lot of these assets, so it would be a long task to manually add the metadata.
I'm using keyword modifiers for other Type Formats (for instance %asset_attribute_description^maxwords:80% for calendar events) but would like to know if it's possible to nest keyword modifiers so I have a single line of code that looks for the metadata and if this is empty, get the first 50 words of the asset contents.
The ^empty keyword modiifier looks hopeful and %asset_metadata_Description^empty:asset_contents^maxwords:80% works in my head, but not in Matrix as it just outputs the text 'asset_contents' onto the page.
Have tried adapting it with curly brackets, extra % signs and the replace_keywords modifier, but think I may be barking up the wrong tree.
So I guess it boils down to two questions:
1) Is it possible to nest keyword modifiers and if so, what's the correct 'grammar'?
2) If it's not possible, do you have any ideas for a workaround?
Many thanks in advance
Cheers
David