Hide global print variabls

Is it possible to wrap global print variabls in a mysource_area tag so that I can hide and print them in specific customizations?

    


I would like to be using the global asset name tag in my parse file, but only want it for specific customizations. I know I could use the actual %asset_name% keyword in the page body copies of all the pages I want the title on, but I don't want to paste that into all the body copies. And I don't think I would want to use a paint layout for this....

Yes, you can wrap them in a (pretty much) meaningless <mysource_area>. :slight_smile:


Meaningless, but I can still use print="no", right?

Indeedy. I use this trick all the time. :)

Matrix is warning me about needing a design area name if I use <mysource_area> tags…

I've done that before, but used CSS to hide content (display:none) which worked very well. It was alot easier than using a customisation or adding mysource codes. Good luck.


Maybe I will try that, even though I hate having extra code in my file that is not being used....

The problem with this method is that it only works with visual/sighted browsers. A lot of braille/voice browsers will still read content that has been "hidden" with display: none. It is always best to remove all unnecessary content from the output completely.

[quote]Yes, you can wrap them in a (pretty much) meaningless <mysource_area>[/quote]

So, how do I get by with using a meaningless <mysource_area> tag when matrix requires me to add a design area name?

I usually use an asset_lineage area for this. You do have to provide a design_area type, but you don't have to provide any actual settings for the design_area itself.