Lindsayanng Posted April 12, 2011 Share Posted April 12, 2011 I am still getting the hang of the back end of prestashop (an oscommerce transplant) and I just am a little lost. The first question is, where do I go to edit the home page text? I assumed I would go to the modules -> positions and I see the home page text module but, and this brings me to the title question, when I get there I can not click on any of the drop down menus in that screen. I have made no changes to the core files. I have the compile set to true so I can do some design work, and I have edited the CSS, but NOTHING in any of the .tpl files yet. Also, how come in "live edit" mode I can't just move any box anywhere. I currently have the default template installed and it seems I can move sidebar info to sidebars, but I can't take a sidebar block (for instance the top sellers block) and move it to the main content area. I am just a little confused on the blocks I think.. I definitely am very happy with the overall structure, just need to get my feet wet a little moreThanks in advance. Link to comment Share on other sites More sharing options...
Lindsayanng Posted April 12, 2011 Author Share Posted April 12, 2011 Thanks for the quick reply. You nailed everything but the drop down menus. I wasn't talking about the up/down arrowsOn that page, but when you click "edit" on one of the blocks it brings you to a screen where there are some drop downs to choose which block goes where. Link to comment Share on other sites More sharing options...
Lindsayanng Posted April 12, 2011 Author Share Posted April 12, 2011 Ok.. this is the screen I am talking about. It's called the "transplant modules" and it's what I am trying to do.. move the "best sellers" box into the home area. The drop downs are there but I can't select them Link to comment Share on other sites More sharing options...
Lindsayanng Posted April 12, 2011 Author Share Posted April 12, 2011 Ohhh i figured it out.. a little more googling showed me that apparently the "edit" link in that admin screen doesn't work. There's another "transplant module" button at the top of the admin page that brings you to a page that works. Any thoughts as to why this other link doesn't work??I did now figure out, since i got the drop downs working, that some modules just will not move to a specific area no matter what you do because it's not defined in the .php page for that module. For those of you searching (because I had a hard time finding this information) this is what you do. If you apply a module block to a specific hook / page area and it doesn't show up there, thats because the block is not meant to be there. You have to go to the modules folder, then the block you are working in, and then find the blockname.php pageAt the bottom of the page you see something that looks like this: public function hookLeftColumn($params) { return $this->hookRightColumn($params); } To add new hooks /areas, you just copy that whole thing and paste it direction after the last } and change "hookLeftColumn" to the hook you plan on using. For instance, I wanted to put a block that was in the left column into the home hook area. I just added this: public function hookHome($params) { return $this->hookRightColumn($params); } the return $this->hookRightColumn($params); is nessecary to return the parameters defined in the piece of code above it. p.s. this might not work for ALL blocks, but its a good start. Link to comment Share on other sites More sharing options...
Recommended Posts