I have 2 different sites using Levels where the error messages array doesn't seem to be working on NTFD. <mvt:if expr="l.settings:messages:error_message_count EQ 0"> Is always 0, so the default message is always displayed. Even if I change the expression to NE 0, the messages array is empty. The messages item is assigned to the page.
I have another site using Devino and the error messages work as expected. So I copied the NTFD page template from Devino to Levels and made sure the exact same page items are assigned to the sites using Levels. The messages still don't work. The only difference I can think of between the 3 sites is that the 2 Levels sites where the error messages don't work are using URI Management. The Devino site is using Legacy SEO.
Is there any reason why this works with Legacy SEO settings but not URI Management? That's the only difference I can find...
I have another site using Devino and the error messages work as expected. So I copied the NTFD page template from Devino to Levels and made sure the exact same page items are assigned to the sites using Levels. The messages still don't work. The only difference I can think of between the 3 sites is that the 2 Levels sites where the error messages don't work are using URI Management. The Devino site is using Legacy SEO.
Is there any reason why this works with Legacy SEO settings but not URI Management? That's the only difference I can find...
Code:
<mvt:if expr="l.settings:messages:error_message_count EQ 0"> <p class="message message-warning">The item you requested is not available at this time.</p> <mvt:else> <mvt:foreach iterator="message" array="messages:error_messages"> <mvt:if expr="'page' CIN l.settings:message"> <p class="message message-warning">We're sorry but it appears that the "&mvte:global:Screen;" page is not available at this time.</p> <p>Please <mvt:item name="cssui_links" param="screen:SFNT">click here</mvt:item> to return to our home page.</p> <mvt:elseif expr="'category' CIN l.settings:message"> <p class="message message-warning">We're sorry but it appears that the "&mvte:global:Category_Code;" category is not available at this time.</p> <p>Please <mvt:item name="cssui_links" param="screen:SFNT">click here</mvt:item> to return to our home page.</p> <mvt:elseif expr="'product' CIN l.settings:message"> <p class="message message-warning">We're sorry but it appears that product "&mvte:global:Product_Code;" is not available at this time.</p> <p>Please perform a Search to find a similar product.</p> <form method="post" action="&mvte:urls:SRCH:rr;" class="whole medium-one-third"> <div class="form-row"> <label for="l-ntfd-search">Search For:</label> <input type="search" name="Search" value="&mvte:global:Product_Code;" id="l-ntfd-search" /> </div> <div class="form-row align-right"> <mvt:item name="buttons" param="Search" /> </div> </form> <br class="clear" /> <mvt:else> <p class="message message-warning">&mvte:message;</p> </mvt:if> </mvt:foreach> </mvt:if>
Comment