Difference between revisions of "How to Make a New Content Module"

From Phoenix Cart User Guide
Line 11: Line 11:
 
In this example a new footer content module is made to show a link to the new information page that was made here - <big>'''[[How to Make a New Page]]'''</big>
 
In this example a new footer content module is made to show a link to the new information page that was made here - <big>'''[[How to Make a New Page]]'''</big>
  
 +
The new module is made by cloning the existing
  
 +
In this example a new information page is made by cloning the existing '''privacy.php''' information page.
  
 +
*On your local computer, find and open the downloaded and unzipped (extracted) CE Phoenix folder or download and unzip a new one.
 +
*Find the '''privacy''' file.
 +
*Open the file in a file editor to see this:
 +
<div class="mainpage_box">
 +
[[File:Vscprivacy.png|link=|1500px]]
 +
</div>
 +
*There are only 2 references to the file name '''privacy''' - shown in the example on lines 15 and 17.
 +
*Change both instances of '''privacy''' to the new file name - '''information''' is used here just as an example.
 +
*In the file editor menu, go to and click '''File &rarr; Save as...'''
 +
*Enter the new file name ('''information''') and click '''Save'''
  
 
<hr>
 
<hr>
 
{{Page_In_Progress}}
 
{{Page_In_Progress}}
 
{{Contribute}}
 
{{Contribute}}

Revision as of 16:21, 27 November 2019

<historylink type="back">🠈 Back</historylink> 🠉 FAQS TIPS & TRICKS


It is a common requirement for shop owners to want additional content modules specific to their shop e.g. an additional navbar or footer content module to link to new information pages.

This is easily achieved by making a clone of an existing module that already performs a similar function.

The same process can be applied to any module if required, not only navbar and footer modules.

In this example a new footer content module is made to show a link to the new information page that was made here - How to Make a New Page

The new module is made by cloning the existing

In this example a new information page is made by cloning the existing privacy.php information page.

  • On your local computer, find and open the downloaded and unzipped (extracted) CE Phoenix folder or download and unzip a new one.
  • Find the privacy file.
  • Open the file in a file editor to see this:

Vscprivacy.png

  • There are only 2 references to the file name privacy - shown in the example on lines 15 and 17.
  • Change both instances of privacy to the new file name - information is used here just as an example.
  • In the file editor menu, go to and click File → Save as...
  • Enter the new file name (information) and click Save

Construction.png
This page is in progress
Please visit again soon for additions and changes

Phoenix Cart User Guide, like CE Phoenix Cart, is free to use but is maintained by unpaid volunteers.

Code references are licensed under a Commons Attribution-NonCommercial-ShareAlike 2.0 UK: England & Wales License.
All other content is the reserved Intellectual Property and Copyright of phoenixcart.org