Displaying the allow_unrestricted flag


(Andrew Harris) #1

Matrix Version: 5.4.1.3

OK, quick question.
I want to be able to view/detect the allow_unrestricted attribute of a file asset, using something like:
%asset_attribute_allow_unrestricted%

Actually, I’ll be using a variable, but same same.
%globals_get_assetid^as_asset:asset_attribute_allow_unrestricted%

Why won’t this work?


(Bart Banda) #2

Probably because there is no keyword developed for that attribute yet. As of 5.4.2.0 you can use the %asset_data% keyword to extract it (fyi).

Another method of checking might be to do a check on the URL? So, check if %asset_url% contains “/__data/” ? Would only work for Live file assets so not sure if that covers the requirement?


(Andrew Harris) #3

Ah, OK.
Roll on 5.4.2 then!

…and while the “/__data” is possible, I’d rather the test was definitive.
I can wait! :slight_smile: