Jump to content

Put sitemap link in footer


Recommended Posts

Hi mariner,

In your modules/blockcms/blockcms.tpl file, please back up the file and then try replacing

 

<!-- MODULE Block footer -->
<ul class="block_various_links" id="block_various_links_footer">
 {if !$PS_CATALOG_MODE}<li class="first_item"><a href="{$link->getPageLink('prices-drop.php')}" title="{l s='Specials' mod='blockcms'}">{l s='Specials' mod='blockcms'}</a></li>{/if}
 <li class="{if $PS_CATALOG_MODE}first_{/if}item"><a href="{$link->getPageLink('new-products.php')}" title="{l s='New products' mod='blockcms'}">{l s='New products' mod='blockcms'}</a></li>
 {if !$PS_CATALOG_MODE}<li class="item"><a href="{$link->getPageLink('best-sales.php')}" title="{l s='Top sellers' mod='blockcms'}">{l s='Top sellers' mod='blockcms'}</a></li>{/if}
 {if $display_stores_footer}<li class="item"><a href="{$link->getPageLink('stores.php')}" title="{l s='Our stores' mod='blockcms'}">{l s='Our stores' mod='blockcms'}</a></li>{/if}
 <li class="item"><a href="{$link->getPageLink('contact-form.php', true)}" title="{l s='Contact us' mod='blockcms'}">{l s='Contact us' mod='blockcms'}</a></li>
 {foreach from=$cmslinks item=cmslink}
  {if $cmslink.meta_title != ''}
   <li class="item"><a href="{$cmslink.link|addslashes}" title="{$cmslink.meta_title|escape:'htmlall':'UTF-8'}">{$cmslink.meta_title|escape:'htmlall':'UTF-8'}</a></li>
  {/if}
 {/foreach}
 {if $display_poweredby}<li class="last_item">{l s='Powered by' mod='blockcms'} <a href="http://www.prestashop.com">PrestaShop</a>™</li>{/if}
</ul>
<!-- /MODULE Block footer -->

 

with

<!-- MODULE Block footer -->
<ul class="block_various_links" id="block_various_links_footer">
 {if !$PS_CATALOG_MODE}<li class="first_item"><a href="{$link->getPageLink('prices-drop.php')}" title="{l s='Specials' mod='blockcms'}">{l s='Specials' mod='blockcms'}</a></li>{/if}
 <li class="{if $PS_CATALOG_MODE}first_{/if}item"><a href="{$link->getPageLink('new-products.php')}" title="{l s='New products' mod='blockcms'}">{l s='New products' mod='blockcms'}</a></li>
 {if !$PS_CATALOG_MODE}<li class="item"><a href="{$link->getPageLink('best-sales.php')}" title="{l s='Top sellers' mod='blockcms'}">{l s='Top sellers' mod='blockcms'}</a></li>{/if}
 {if $display_stores_footer}<li class="item"><a href="{$link->getPageLink('stores.php')}" title="{l s='Our stores' mod='blockcms'}">{l s='Our stores' mod='blockcms'}</a></li>{/if}
 <li class="item"><a href="{$link->getPageLink('contact-form.php', true)}" title="{l s='Contact us' mod='blockcms'}">{l s='Contact us' mod='blockcms'}</a></li>{/if}
 <li class="item"><a href="{$link->getPageLink('sitemap.php', true)}" title="{l s='Sitemap' mod='blockcms'}">{l s='Sitemap' mod='blockcms'}</a></li>
 {foreach from=$cmslinks item=cmslink}
  {if $cmslink.meta_title != ''}
   <li class="item"><a href="{$cmslink.link|addslashes}" title="{$cmslink.meta_title|escape:'htmlall':'UTF-8'}">{$cmslink.meta_title|escape:'htmlall':'UTF-8'}</a></li>
  {/if}
 {/foreach}
 {if $display_poweredby}<li class="last_item">{l s='Powered by' mod='blockcms'} <a href="http://www.prestashop.com">PrestaShop</a>™</li>{/if}
</ul>
<!-- /MODULE Block footer -->

 

and let me know if that works for you.

 

-Mike

  • Like 2
Link to comment
Share on other sites

  • 4 months later...

Can you please post your URL so that I can take a look at this for you?

 

-Mike

even i have done the same process you have mentioned above , but still its not showing sitemap in footer.

i have also seen the MODULE--> CMS BLOCK and TOOLS-->CMS , but no results.

plz , sudjest any way to figure it out

Link to comment
Share on other sites

even i have done the same process you have mentioned above , but still its not showing sitemap in footer.

i have also seen the MODULE--> CMS BLOCK and TOOLS-->CMS , but no results.

plz , sudjest any way to figure it out

hey , i have figure out this problem :D i think...

in above code u have written

<li class="item"><a href="{$link->getPageLink('sitemap.php', true)}" title="{l s='Sitemap' mod='blockcms'}">{l s='Sitemap' mod='blockcms'}</a></li>

 

 

but this section isnt there in blockcms , or if u create it tht will be the stationary page with text writen on it and no linking to other page.

for this u have to write " blockvariouslink " inplace of " blockcms " as sitemap is present there.

 

it works in mine case , hope u'll get ur problem solved.

Link to comment
Share on other sites

×
×
  • Create New...