AeroLogistica Posted November 15, 2022 Share Posted November 15, 2022 Hello fellow Geeks, So as you create documents, they will display on both top menu and footer, how can I exclude one of those documents from the top menu and display it only on the footer? Thanks in advance! Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 15, 2022 Share Posted November 15, 2022 That would certainly depend on the skin. I see that you are using the Crosshatch skin. I also see that the links to the documents are of the form: /index.php?_a=document&doc_id=3 which CC6 generally replaces that with named URLs. So maybe you are using CubeCart 5? In the skin template main.php, there are two places that use the same results from the constructed {$SITE_DOCS} variable. To change the one but not the other, we need to replace the one variable with the HTML code used to construct that variable, making a change to exclude a specific element of the array. In main.php, near line 43, find (yours may not be exactly this): {$SEARCH_FORM} {$SITE_DOCS} Change to: {$SEARCH_FORM} <ul class="documents"> {if isset($DOCUMENTS) && count($DOCUMENTS) > 0} {foreach from=$DOCUMENTS item=document}{if $document.doc_id eq 3}{* skip T&C's *}{continue}{/if} <li><a href="{$document.doc_url}" title="{$document.doc_name}" {if $document.doc_url_openin}target="_blank" {/if}>{$document.doc_name}</a></li> {/foreach} {/if} {if isset($CONTACT_URL)} <li><a href="{$CONTACT_URL}" title="{$LANG.documents.document_contact}">{$LANG.documents.document_contact}</a></li> {/if} </ul> You may need to have CubeCart clear its internal cache. Quote Link to comment Share on other sites More sharing options...
AeroLogistica Posted November 16, 2022 Author Share Posted November 16, 2022 Awesome bsmither, you are indeed correct my friend, cube cart 5 and Crosshatch skin. That's clear enough, I will proceed, thanks! P.S. You seem very technical, are you a CC developer? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.