Jump to content

How to display static link with existing html code in center column ?


Recommended Posts

I have a external html code (gallery of images from a client who doesn't want to change it) and I need to display this html in the center column or displayHome in my shop when I click the specific button in the top menu tha I created.

 

In my version, I can show the html code, but only in complete screen

 

I'm getting stuck... and lost...

Please any help???

 

my prestashop 1.5.3.1

 

thanks!

Link to comment
Share on other sites

hmm i don't understand what you exactly expect.

 

You've got homepage, where you want to display gallery. So, for this place is "home" hook. This is the only way to attach module to the homepage.

 

maybe you want something else? Can you explain it?

 

regards

Link to comment
Share on other sites

Sorry, maybe I didn't explain myself well.

In my top menu, I have a button called "Images", when I click this button I need his content (html with dinamic images) to be displayed in the center column, I don't know... is called DisplayContent...??

 

For example, when you click in a category in your left column, a list of your items are displayed in the center column.

I would like the same for my button. But, I'm not allowed to modify anything of my html, so I would like to load into the center column directly.

 

thanks!!

Link to comment
Share on other sites

separate page? what does mean?

 

I know about css, html5, java and only few notions of php and javascript

But I don't know how to create a module, which files I need, and moreover, what code I need to load this html in the center column.

I looked some tutorials, but they are very complex, I would need a simply module and then I can do it more complex if I need

 

Any suggestion ??

I'll appreciate any help

Link to comment
Share on other sites

I did this about 5 minutes ago (at least I think this is what you would like).

 

1. Add the CSS used by your HTML (if any) to the global.css file of your theme and upload it.

 

2. Create a new CMS page with the name you would like (in your case "images").

 

3. When editing the page, switch over to HTML mode instead of the "text editor".

 

4. Paste your HTML code in and click update.

 

5. Save the page and test it out (it should work).

 

For images, either use definite paths or use the prestashop root img folder, for example if your shop is in the root of your domain/hosting use "/img/+" where + is whatever you have used as sub folder or file name.

 

Hope that makes sense.

  • Like 1
Link to comment
Share on other sites

I did this about 5 minutes ago (at least I think this is what you would like).

 

1. Add the CSS used by your HTML (if any) to the global.css file of your theme and upload it.

 

2. Create a new CMS page with the name you would like (in your case "images").

 

3. When editing the page, switch over to HTML mode instead of the "text editor".

 

4. Paste your HTML code in and click update.

 

5. Save the page and test it out (it should work).

 

For images, either use definite paths or use the prestashop root img folder, for example if your shop is in the root of your domain/hosting use "/img/+" where + is whatever you have used as sub folder or file name.

 

Hope that makes sense.

 

you've got right this is the easiest way to do that in this case

 

regards

Link to comment
Share on other sites

×
×
  • Create New...