Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2009
    Posts
    45
    Plugin Contributions
    0

    Default Duplicating a page?

    Say we want to have a duplication of the All Products page, but with a different name and URL. Or any page for that matter.

    And let's say we don't want to use the "require" call thing, we want to actually duplicate it for modification (so the original All Products will remain as it is, and the new one gets a makeover).

    I have very impressive skills such as copying and pasting but seriously this is like, beyond my knowledge lol. I tried copying everything to a new define pages but it keeps saying "more products will be added soon".

    Help!

  2. #2
    Join Date
    May 2005
    Location
    Bath, Somerset
    Posts
    1,053
    Plugin Contributions
    3

    Default Re: Duplicating a page?

    You would need to duplicate the core PHP files, rather than creating a new define page. Define Pages are really meant for static content, whereas the page you want to build needs to be completely dynamic, so as to load in all the new products.

    You need module files, which is found in includes/modules/pages/new_products/

    You need a language file found in includes/languages/english/new_products.php

    You need template pages, which are found in your templates directory.

    You may also need to duplicate other pages if it is the actual layout you want to change, as there are a number of other templated files, and module files which are called in addition, such as those files which build the product listing sections.

    In all, not a simple task, but certainly achieveable.

    Absolute
    Back, after a 4 year absence! Did you miss me?
    Absolute Web Solutions Ltd
    Interested in our work? Take a look at one of our sites - The Tech Store

  3. #3
    Join Date
    Mar 2009
    Posts
    45
    Plugin Contributions
    0

    Default Re: Duplicating a page?

    Quote Originally Posted by Absolute View Post
    You would need to duplicate the core PHP files, rather than creating a new define page. Define Pages are really meant for static content, whereas the page you want to build needs to be completely dynamic, so as to load in all the new products.

    You need module files, which is found in includes/modules/pages/new_products/

    You need a language file found in includes/languages/english/new_products.php

    You need template pages, which are found in your templates directory.

    You may also need to duplicate other pages if it is the actual layout you want to change, as there are a number of other templated files, and module files which are called in addition, such as those files which build the product listing sections.

    In all, not a simple task, but certainly achieveable.

    Absolute
    Ah, I see. Doesn't sound too hard, I shall use my impressive copypasta skills then haha

    Thanks for the info man, really appreciate it.

    Will update the thread once I get around to try this out.

  4. #4
    Join Date
    Mar 2009
    Posts
    45
    Plugin Contributions
    0

    Default Re: Duplicating a page?

    Hell yeah man you rock!

    See I told you I got mad copypasta skills

    http://e-techsiliconvalley.com/store...t_all_products

    Only thing left...I want to keep the original all products page as it is (to show 10 per page) but configure this one to show lets say 50 a page. Now I'm pretty sure it's just one variable I have to change to a specific number...but question is, which variable is it?

 

 

Similar Threads

  1. Text in "Main Page" Duplicating
    By megzo487 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 9 Feb 2011, 06:26 PM
  2. Help! Main page duplicating
    By pasb in forum General Questions
    Replies: 4
    Last Post: 1 Aug 2009, 02:44 AM
  3. Duplicating a site
    By ThePatch in forum General Questions
    Replies: 10
    Last Post: 20 Jul 2007, 01:49 PM
  4. Duplicating folders
    By freerangepc in forum General Questions
    Replies: 1
    Last Post: 17 May 2006, 01:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg