Roderick Posted January 21, 2009 Share Posted January 21, 2009 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 :-) Link to comment Share on other sites More sharing options...
Dave Egerton Posted January 21, 2009 Share Posted January 21, 2009 Hi Roderick and welcomePrestashop uses modules to display these things and its the:Permanent links block v0.1Adds 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 etcBTW: Dont have time to open it myself right now - but I think that is the right oneYour global.css file in your theme controls the styling of the site also Link to comment Share on other sites More sharing options...
Roderick Posted January 21, 2009 Author Share Posted January 21, 2009 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? Link to comment Share on other sites More sharing options...
Dave Egerton Posted January 21, 2009 Share Posted January 21, 2009 don't forget the main company logo is usually a link back to home pageBut 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 --> </pre> <ul> {l s='contact' mod='blockpermanentlinks'} {l s='sitemap' mod='blockpermanentlinks'} [removed]writeBookmarkLink('{$come_from}', '{$shop_name|addslashes|addslashes}', '{l s='bookmark' mod='blockpermanentlinks'}');[removed] </ul> <br><!-- /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) ></pre> <ul> Home {l s='contact' mod='blockpermanentlinks'} Hopefully that right, as I have not actually tested Link to comment Share on other sites More sharing options...
Roderick Posted January 22, 2009 Author Share Posted January 22, 2009 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 --> Home {l s='contact' mod='blockpermanentlinks'} {l s='sitemap' mod='blockpermanentlinks'} [removed]writeBookmarkLink('{$come_from}', '{$shop_name|addslashes|addslashes}', '{l s='bookmark' mod='blockpermanentlinks'}');[removed] <!-- /Block permanent links module HEADER --> Link to comment Share on other sites More sharing options...
Dave Egerton Posted January 22, 2009 Share Posted January 22, 2009 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 Link to comment Share on other sites More sharing options...
Roderick Posted January 23, 2009 Author Share Posted January 23, 2009 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. Link to comment Share on other sites More sharing options...
Dave Egerton Posted January 23, 2009 Share Posted January 23, 2009 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 storeHowever, 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 Link to comment Share on other sites More sharing options...
Roderick Posted February 5, 2009 Author Share Posted February 5, 2009 Hi there,I have found a solution to this problem.I went to the file Modules-> blockcategories -> blockcategories.tplAnd added changed the code to: [removed][removed] <!-- Block categories module --> {l s='Categories' mod='blockcategories'} Home {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} Now i have a button on the left with my link to the home page Link to comment Share on other sites More sharing options...
jhnstcks Posted February 5, 2009 Share Posted February 5, 2009 http://www.prestashop.com/forums/viewthread/11577/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now