Vote for v1.5 Fixes

PrestaShop Forum: Build a free online shop. Count on the Community!

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum: Build a free online shop. Count on the Community!

Jump to content

 
Photo

Add Menu


  • Please log in to reply
9 replies to this topic
Roderick

    PrestaShop Apprentice

  • Members
  • PipPip
  • 37 posts

Posted 21 January 2009 - 09:39 AM

Hello,

Im all new to prestashop, it looks like a great script.
But im missing the basic setup documentation, i need to know how to add,remove,change menu items.
On the top i have contact, sitemap and bookmark, but i want to add Home aswell.
Hope that someone can give me some pointers :-)

Prestashop Rules!!

Top Motion


Dave Egerton

    PrestaShop Apprentice

  • Members
  • PipPip
  • 272 posts

Posted 21 January 2009 - 04:11 PM

Hi Roderick and welcome

Prestashop uses modules to display these things and its the:

Permanent links block v0.1
Adds a block that displays permanent links such as sitemap, contact, etc.

to do this, in the modules (the actual files not backoffice>>modules) you can edit the modules tpl file to make additional changes, open up the tpl file in the Permanent links block and you should see the HTML etc

BTW: Dont have time to open it myself right now - but I think that is the right one

Your global.css file in your theme controls the styling of the site also

Roderick

    PrestaShop Apprentice

  • Members
  • PipPip
  • 37 posts

Posted 21 January 2009 - 04:34 PM

Hello and thank you for your reply.

So there is no easy way, for someone without html,php,javascript nolidge to just ad a button HOME linked to index.php?
I find this very strange, if a client want to go back to the first page he/she cannot navigate back in the website they have to use backbutton of IE or FF.

I this true?

Prestashop Rules!!

Top Motion


Dave Egerton

    PrestaShop Apprentice

  • Members
  • PipPip
  • 272 posts

Posted 21 January 2009 - 11:08 PM

don't forget the main company logo is usually a link back to home page

But I am afraid, if you have no HTML experience, you will need someone to tell you what to add to those links - and depending on your design, if you need an icon etc you will need to alter css.

This is html from the file, as you can see theer are list items , the


  • <!-- Block permanent links module HEADER --><ul id="header_links">    <li id="header_link_contact"><a href="{$base_dir_ssl}contact-form.php" title="{l s='contact' mod='blockpermanentlinks'}">{l s='contact' mod='blockpermanentlinks'}</a></li>    <li id="header_link_sitemap"><a href="{$base_dir}sitemap.php" title="{l s='sitemap' mod='blockpermanentlinks'}">{l s='sitemap' mod='blockpermanentlinks'}</a></li>    <li id="header_link_bookmark">        [removed]writeBookmarkLink('{$come_from}', '{$shop_name|addslashes|addslashes}', '{l s='bookmark' mod='blockpermanentlinks'}');[removed]    </li></ul><!-- /Block permanent links module HEADER -->


    So, its its one language and you want to just add it a home link for this site, just ad another list item and don't worry about the language files, so if you want this at start then add it as here, then style your CSS /add or add icon via css
    (NOTE: This is not the full HTMl, just enough to show hone link as first list item in UL)

    <ul id="header_links">        <li id="home_link"><a href="{$base_dir_ssl}index.php" title="Home">Home</a></li>    <li id="header_link_contact"><a href="{$base_dir_ssl}contact-form.php" title="{l s='contact' mod='blockpermanentlinks'}">{l s='contact' mod='blockpermanentlinks'}</a></li>


    Hopefully that right, as I have not actually tested

    Roderick

      PrestaShop Apprentice

    • Members
    • PipPip
    • 37 posts

    Posted 22 January 2009 - 12:07 PM

    Hello,

    Thank you for your help on this :)

    I did what you said but now my template goes carzy look:
    http://www.dushiwebsites.nl/webwinkel/
    This is my code:
    <!-- Block permanent links module HEADER -->

    <!-- /Block permanent links module HEADER -->

    Prestashop Rules!!

    Top Motion


    Dave Egerton

      PrestaShop Apprentice

    • Members
    • PipPip
    • 272 posts

    Posted 22 January 2009 - 09:01 PM

    if you mean the search bar is now dropped sown so the account info on right is also pushed down behind right column, you need to edit your CSS. With the Home text added, there is no longer enough room to get the search bar on the same line

    You could in modules remove search and put this in side column - but whatever, you need to decide how you want site to look

    Roderick

      PrestaShop Apprentice

    • Members
    • PipPip
    • 37 posts

    Posted 23 January 2009 - 12:12 PM

    Al i want is that there is a button called HOME that links to the index page, how can you make a website without a button home??
    Is there no easy way, i dont know enough about css to do this correct.

    Prestashop Rules!!

    Top Motion


    Dave Egerton

      PrestaShop Apprentice

    • Members
    • PipPip
    • 272 posts

    Posted 23 January 2009 - 01:14 PM

    If you want to add a link into the header as you say and in your theme there is no room, you have no choice but to edit the css -I think that goes for any store

    However, Prestashop has a lot of modules and you have a great deal of freedom to move those around. Maybe you should simply use one of the other links modules, then configure it and just add the home link and choose to display this in your left or right column. Then you don't have to modify anything in the files

    Roderick

      PrestaShop Apprentice

    • Members
    • PipPip
    • 37 posts

    Posted 05 February 2009 - 11:24 AM

    Hi there,

    I have found a solution to this problem.
    I went to the file Modules-> blockcategories -> blockcategories.tpl
    And added changed the code to:
    [removed][removed]<!-- Block categories module --><div id="categories_block_left" class="block">    <h4>{l s='Categories' mod='blockcategories'}</h4>    <div class="block_content">        <ul class="tree {if $isDhtml}dhtml{/if}">        <li id="home_link"><a href="index.php" title="Home">Home</a></li>        {foreach from=$blockCategTree.children item=child name=blockCategTree}            {if $smarty.foreach.blockCategTree.last}                        {include file=$branche_tpl_path node=$child last='true'}            {else}                        {include file=$branche_tpl_path node=$child}            {/if}        {/foreach}        </ul>    </div>    </div>

    Now i have a button on the left with my link to the home page :)

    Prestashop Rules!!

    Top Motion


    jhnstcks

      PrestaShop Fanatic

    • Moderators
    • 2050 posts

    Posted 05 February 2009 - 04:30 PM

    http://www.prestasho...ewthread/11577/
    Don't forget, if you find a post particularly helpful, click the like button to show other members it is helpful.




    0 user(s) are reading this topic

    0 members, 0 guests, 0 anonymous users