Unwanted asset types in menu

Hi,


I'm trying to hide some CSV Data Source assets from the left menu of a site I'm currently working on. While I can go through and make each one Type 2, I'd much prefer to set it in the parse file as I don't ever want them to show.



I know I can also set it via customisations (I've tried that and it works), but there are about 6 customisations so I'd rather set it in the parse file than in each of those if I can.



I've set the unwanted_asset_types in the menu design area to 'data_source_csv' but they're still displaying. The first portion of the menu code is below:



[codebox]

<MySource_AREA id_name="top_menu" design_area="menu_normal">

<MySource_SET name="level" value="0"/>

<MySource_SET name="settings.class.normal" value=""/>

<MySource_SET name="settings.class.current" value=" class='selected'"/>

<MySource_SET name="unwanted_asset_types" value="data_source_csv" />

[/codebox]



If I replace 'data_source_csv' with 'page_standard', all the standard pages in the menu are hidden.



I've also tried using 'data_record', 'data_source', and 'data_source_record_set' but none of those worked. I also tested 'page_redirect' and that didn't work either.



I'm using version 3.18.11.



Should I report this on the bug tracker? I don't think I've missed anything, given that 'page_standard' works…



Thanks!



Margaret

Yes, I'd log a bug, especially as you've tried the more generic assets and they still don't work.

Thanks Daniel - I've reported it: http://bugs.matrix.squiz.net/view_bug.php?bug_id=3591

It turns out it wasn't a bug.


Our menu contains multiple levels, which is created by using the 'MySource_SUB' design area, within the main menu design area.



You have to apply the unwanted asset types to each of those sub-menus too.



So it was a bit of a /facepalm moment for me, but on the other hand I don't think it was unreasonable to assume that the setting would apply to the entire menu. I don't see the 'MySource_SUB' sections as separate design areas - just sections of the main menu design area. Technically I guess they are though, so it does make sense to me now. Perhaps this should be pointed out in the documentation though? :blink:



On the positive side, thanks for adding this feature in 3.18 - it's very handy!