Difference between revisions of "Info Pages"

From Phoenix Cart User Guide
Line 38: Line 38:
 
The links to new pages can be shown in the shop by appending to an existing content module or new content modules can be created to display them.
 
The links to new pages can be shown in the shop by appending to an existing content module or new content modules can be created to display them.
  
For example, using the Example Page, from admin go to [[File:adminnavbartools.png|link=]] '''Tools → Define Languages'''  
+
For example, using the Example Page, add a link to the page to the list of '''Information''' links shown in the footer.
 +
 
 +
From admin go to [[File:adminnavbartools.png|link=]] '''Tools → Define Languages'''  
  
 
Find and open '''modules/content/footer/cm_footer_information_links.php'''
 
Find and open '''modules/content/footer/cm_footer_information_links.php'''
Line 48: Line 50:
 
Add
 
Add
  
'info.php?pages_id=4' => 'Example Page',
+
<pre>'info.php?pages_id=4' => 'Example Page',</pre>
  
  

Revision as of 07:32, 10 April 2022

Back
Administration

From admin go to Adminnavbartools.png Tools → Info Pages - you will see this:

Infopages.png


There are already 3 pages created that show as links in your shop footer: Privacy & Cookie Policy, Terms & Conditions and Shipping & Returns.


Additional pages can be created giving each a unique slug name and sort order.

For example, make a new page named Example Page.

  • Click Add a New Page to see this:

Infopagesnew.png

  • Click the Status Published button.
  • Enter Example in the Navbar Title input box - this is a short title that could be used in the navigation bar of your shop.
  • Enter Example Page in the Title input box.
  • Enter the text you want to show on the page in the Page Text input box.
  • Enter example in the Slug input box.
  • Enter a sort order for the page in the Sort Order input box.
  • Click Save

Links to these pages would take the form of info.php?pages_id=x where x is the ID number shown after the page is created.

So after the above pages have been created you will see this with the ID shown in the column on the left:

Infopagesexample.png

The links to new pages can be shown in the shop by appending to an existing content module or new content modules can be created to display them.

For example, using the Example Page, add a link to the page to the list of Information links shown in the footer.

From admin go to Adminnavbartools.png Tools → Define Languages

Find and open modules/content/footer/cm_footer_information_links.php

After

'contact_us.php' => 'Contact Us',

Add

'info.php?pages_id=4' => 'Example Page',


The 3 Info Pages in core have had pages made to display them - read How to Make a New Page to see how that is done.

Read How to Make a New Content Module to see how that is done.




A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.

The term slug derives from the days of hot-metal printing, when printers set type by hand in a small form called a stick. Later huge Linotype machines turned molten lead into casts of letters, lines, sentences and paragraphs. A line of lead in both eras was known as a slug.


Phoenix Cart User Guide, like CE Phoenix Cart, is free to use but is maintained by unpaid volunteers.
If you have found it useful, please donate to the coffee pot!
Use this link to donate whatever you want.

Donate with Paypal

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
PROTECTED BY COPYSCAPE ANTI-PLAGIARISM