Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Feb 2007
    Posts
    6
    Plugin Contributions
    0

    Default 2 questions about customization, new comer!

    1)If I want to create my own page modules, for example
    includes\modules\pages\account, can I put my php file under
    my template folder, without overwriting the existed php file.
    If my template is TEM1, where should I put the related php file
    for replacing the default file?

    2)If I don't want too much menu items in admin console, how
    can I remove those menus I don't need?

  2. #2

    Default Re: 2 questions about customization, new comer!

    Look in the downloads section for the about_us page module, and use that to create your own pages. Remember to rename every line about_us in all the files to the page name you want.

    about_us module
    Last edited by Pierre; 9 Feb 2007 at 01:16 PM. Reason: Added url
    http://www.customscripts.co.za - Custom development for open-source applications

    http://www.pcservice.co.za - Website Development, Domain Registration, Hosting

  3. #3
    Join Date
    Feb 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: 2 questions about customization, new comer!

    Quote Originally Posted by Pierre View Post
    Look in the downloads section for the about_us page module, and use that to create your own pages. Remember to rename every line about_us in all the files to the page name you want.

    about_us module

    Thanks. But this is the example for creating new page. My problem is
    to create customized module replacing the existed one without overwriting
    the existed file. For template files, it works. But for module file under
    /includes/module/pages/xxx, I didn't find way.

  4. #4

    Default Re: 2 questions about customization, new comer!

    Oh, sorry, I understood you wrong.
    http://www.customscripts.co.za - Custom development for open-source applications

    http://www.pcservice.co.za - Website Development, Domain Registration, Hosting

  5. #5
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: 2 questions about customization, new comer!

    To create a very basic custom template (you can build from there), you need:
    • includes/languages/YOUR_TEMPLATE/english.php
    • includes/languages/english/YOUR_TEMPLATE/index.php
    • includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo)
    • includes/templates/YOUR_TEMPLATE/template_info.php
    • includes/templates/YOUR_TEMPLATE/common/tpl_header.php
    • includes/templates/YOUR_TEMPLATE/images/logo.gif
    • includes/templates/YOUR_TEMPLATE/css/stylesheet.css


    Any where you see a /classic/ folder, you can create a folder for your custom template. You should be able to copy the required files from either /classic/ or /template_default/ (usually the better choice).

    There are things you can adjust in the admin. Take a look at tools->layout boxes controller and see if that answers your question.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  6. #6
    Join Date
    Feb 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: 2 questions about customization, new comer!

    Quote Originally Posted by afo View Post
    To create a very basic custom template (you can build from there), you need:
    • includes/languages/YOUR_TEMPLATE/english.php
    • includes/languages/english/YOUR_TEMPLATE/index.php
    • includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo)
    • includes/templates/YOUR_TEMPLATE/template_info.php
    • includes/templates/YOUR_TEMPLATE/common/tpl_header.php
    • includes/templates/YOUR_TEMPLATE/images/logo.gif
    • includes/templates/YOUR_TEMPLATE/css/stylesheet.css

    Any where you see a /classic/ folder, you can create a folder for your custom template. You should be able to copy the required files from either /classic/ or /template_default/ (usually the better choice).

    There are things you can adjust in the admin. Take a look at tools->layout boxes controller and see if that answers your question.
    I know how to make new template. I want to replace the module,
    For example, shopping cart. I tried
    includes/module/YOUR_TEMPLATE/pages/shopping_cart , but it didn't replace
    includes/module/pages/shopping_cart.
    Am I clear now?

    For the 2nd question, I want to remove some menus in the admin console.

  7. #7
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: 2 questions about customization, new comer!

    Quote Originally Posted by great View Post
    I know how to make new template. I want to replace the module,
    For example, shopping cart. I tried
    includes/module/YOUR_TEMPLATE/pages/shopping_cart , but it didn't replace
    includes/module/pages/shopping_cart.
    Am I clear now?

    For the 2nd question, I want to remove some menus in the admin console.
    I don't believe the file you're trying to override is available to be overridden. There's no /classic/ folder in /pages/.

    At minimum, you have to create the folders I indicated and copy the files into them. Give the folders the same name you used to Edit template_info.php to give your template a name that you'll recognize in the admin. Then go into the admin to tools->template selection and select your template from the dropdown menu.

    You can't remove menus from the admin as far as I know. What are you trying to do?
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  8. #8
    Join Date
    Feb 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: 2 questions about customization, new comer!

    Quote Originally Posted by afo View Post
    I don't believe the file you're trying to override is available to be overridden. There's no /classic/ folder in /pages/.

    At minimum, you have to create the folders I indicated and copy the files into them. Give the folders the same name you used to Edit template_info.php to give your template a name that you'll recognize in the admin. Then go into the admin to tools->template selection and select your template from the dropdown menu.

    You can't remove menus from the admin as far as I know. What are you trying to do?

    Ok, Let me express it in another way. If I want to change the functions of this
    file, includes/modules/pages/shopping_cart/header_php.php
    Can I create another file in other folder, other than change this file directly?
    Thus if I choose my template, I can use the modified function of shopping
    cart, while old shopping cart still existed.

  9. #9
    Join Date
    Feb 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: 2 questions about customization, new comer!

    Quote Originally Posted by afo View Post

    You can't remove menus from the admin as far as I know. What are you trying to do?
    My boss just got mixed by so many menu items. He wants a simplified
    menu.

  10. #10
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: 2 questions about customization, new comer!

    Quote Originally Posted by great View Post
    Ok, Let me express it in another way. If I want to change the functions of this
    file, includes/modules/pages/shopping_cart/header_php.php
    Can I create another file in other folder, other than change this file directly?
    Thus if I choose my template, I can use the modified function of shopping
    cart, while old shopping cart still existed.
    If you don't see a /classic/ folder in the directory, overrides aren't allowed, so the answer to your question is no. You'd have to change the original file which would get overwritten with the next upgrade/update. You'd have to be very careful in future to copy your changes into the newer files before overwriting what you have on your domain.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. questions about a new installation of 1.5 final
    By wondergirl in forum Upgrading to 1.5.x
    Replies: 1
    Last Post: 31 Dec 2011, 07:37 AM
  2. Questions about the way a new 'page' is created
    By yellow1912 in forum Contribution-Writing Guidelines
    Replies: 2
    Last Post: 21 Sep 2007, 11:55 AM
  3. Customization Questions
    By Rhomze in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 9 Aug 2006, 09:36 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