Menu_normal not outputting redirect page links in sub menus


(Douglas (@finnatic at @waikato)) #1

We're using menu_normal to construct local navigation links within sites - and redirect page assets used to be displayed without any fault in those, allowing us to use redirect pages to provide links outside the current section.

 

That's stopped working for our main design however, with redirect pages now being included only at the top level and not within sub menus.

 

The main design parse file changes were copied from a dev design parse file.  The dev design is displaying redirect pages without any issue at the top level and within sub menus.

 

Any ideas Forums folk?


(Douglas (@finnatic at @waikato)) #2

Alternatively, could someone confirm for me where the following code in the design_file.php for the design is controlled from:

 

"foreach ($GLOBALS['MENU_DATA']['menu__sub_menu'][$menu_row['assetid']] as $menu__sub_menu_row) {

    $menu__sub_menu_current_setting = ($menu__sub_menu_lineage_assetid == $menu__sub_menu_row['assetid']) ? $menu__sub_menu_lineage_setting : 'normal';
    if (in_array($menu__sub_menu_row['type_code'], Array("image", "thumbnail", "data_source_graph", "file", "text_file", "css_file", "word_doc", "mp3_file", "xml_file", "excel_doc", "pdf_file", "xsl_file", "video_file", "image", "flv_file", "powerpoint_doc", "rtf_file", "js_file", "file_folder", "thumbnail", "css_file_folder", "js_file_folder", "data_source_graph", "pdf_file"))) continue ;
    if (!in_array($menu__sub_menu_row['type_code'], Array("page_standard", "paint_layout_page", "page_asset_listing", "page_link_manager", "page_tag_listing", "page_related_asset_listing", "page_online_quiz", "google_map"))) continue ;?>"
 
 
This is appearing in the design_file for the main design (with no customisations) - the parse files however only have:
 
          <MySource_SUB design_area="menu_normal">
            <MySource_SET name="unwanted_asset_types" value="image" />
            <MySource_SET name="show_subs" value="on_current" />
 
so I don't see why and where the complicate if(in_array...)/if(!in_array...) code is coming from.  And editing and updating the parse file for the design doesn't seem to affect the errant code.

(Douglas (@finnatic at @waikato)) #3

NB: I've logged a support request for this to get some assistance.


(Tim Davison) #4

Have you checked if there's any customisations on the sub_menus design areas?  I've been caught out with this before, where you might have updated the parse file but the settings on the customisations remain.  So I'd be looking for an asset type exclusion in one of the design customisations (which you may have already checked).


(Douglas (@finnatic at @waikato)) #5

Hi Tim, yes that's been checked.  Our designs are setup so that each design has a standard customisation, and then that is further customised e.g.

 

I'm seeing the problem with the design set to the standard customisation.  It only has seven custom nested designed areas customised - no menu or sub_menu customisations.