Slideshows - Adding to a Page
This page explains how to add a slideshow that you've created in the control panel to a page in your store, or to any HTML page on any website. Before you can do this, you must have created a slideshow record in the control panel. There are two ways to add a slideshow to a page.
Use this code when you want to add a slideshow to a Squirrelcart Content record, a template file, or a Navigation Block.
Use this code when you want to add a slideshow to a page not controlled by Squirrelcart. This can be used on any web page on any web site you have control over. You can also use this code in Squirrelcart, in any control panel record field that accepts HTML. You can also use this code in Squirrelcart template files.
First, you will need to determine which type of code you wish to use (see section above). Then, refer to the section below for the code type you wish to use.
This code can be inserted into any storefront PHP code controlled by Squirrelcart.
- In the control panel, open the slideshow record corresponding to the slideshow you wish to display
- Locate the Code to Display Slideshow fieldset (if this is a new record, you will need to save it before this fieldset will appear).
- Click in the code box below PHP code. The code will be selected automatically
- Copy the code to your clipboard
- Paste the code where you want the slideshow to appear.
- If placing slideshow in a Content record:
- Open the Content record in the control panel
- Locate the Content field:
- If you have the Rich Text Editor enabled (it is by default) the field will look like the image shown above. If it does, click the Source button in the toolbar. If you do not have a Source button, skip this step.
- Paste the code into the code box
- Save the record
- If placing slideshow in a Navigation Block record:
- Open the Navigation Block record in the control panel
- Paste the code into the Content field
- Save the record
- If placing slideshow in a Squirrelcart template file:
- If you are not familiar with the procedure for modifying template files, read this page first!
- Open the template file you wish to place the slideshow in
- Paste the code into the file
- Save the file
This code can be inserted into any web page that you have control over. It can also be inserted into any field that is used to output HTML in your storefront. This includes Content records, Navigation Blocks, and Product and Category records (via their Description fields).
- In the control panel, open the slideshow record corresponding to the slideshow you wish to display
- Locate the Code to Display Slideshow fieldset (if this is a new record, you will need to save it before this fieldset will appear).
- Click in the code box below HTML embed code. The code will be selected automatically
- Copy the code to your clipboard
- Paste the code where you want the slideshow to appear. To paste in an HTML file, open the file in an editor and paste the code where you want the slideshow, then save the file. To paste into a Squirrelcart control panel field that accepts HTML:
-If that field is using the Rich Text Editor click the Source button in the field's toolbar and paste the code into the code box.
-If the field is not using the Rich Text Editor, you may paste the code directly into the field.
© 2001-2014 Lighthouse Development. All Rights Reserved.