Brackets not appearing around Under Construction menu items


(Glovegro) #1

Matrix Version:5.3.2.1

It appears the double parentheses that should enclose menu items with the status ‘Under Construction’ are not showing making it unclear to admins which pages are live - in preview.

Are these parentheses controlled via some master setting and/or could there be another problem why they might not be showing?

Many thanks in advance
Gavin


(Bart Banda) #2

Hi Gavin,
You might be viewing a cached version of the page perhaps? Admins that have access to under construction pages in the menu should definitely see them with the double brackets around them.

Any more info you could share on how your design and menu area are set up, including your users permissions etc?


(Glovegro) #3

Hi Bart,

On further investigation, one of our team suggested the issue may be coming from the use of a keyword replacement in the design parse file:

<a href="<MySource_PRINT var="asset_href" />"><MySource_PRINT var="asset_short_name^replace: and : &amp; " /></a>

Our older system which did show the brackets does not have the ^replace: and : & appended to asset_sort_name
<a href="<MySource_PRINT var='asset_link' />"><MySource_PRINT var="asset_short_name"/></a>

Could this be the core of the problem?

Cheers
Gavin


(Bart Banda) #4

Yep, that would do it.

I can replicate in latest 5.3. Have submitted a bug report (https://squizmap.squiz.net/matrix/10639) to investigate further, double brackets shouldn’t be affected by the keyword modifier, but maybe that’s intentional for some reason.


(Glovegro) #5

Hi Bart,

Has there been any progress been made on this issue of the keyword modifiers preventing the brackets appearing around ‘Under Construction’ menu items?

Many thanks
Gavin


(Bart Banda) #6

No update yet, it has been marked as Accepted but not scheduled in yet. I’ve assigned it now though and put it into a developer’s queue so that it will hopefully be out soon.


(Bart Banda) #7

Workaround is to use asset_attribute_x:

<a href="<MySource_PRINT var="asset_href" />"><MySource_PRINT var="asset_attribute_short_name^replace: and : &amp; " /></a>