Thread: Tpl_main_page

Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2018
    Posts
    146
    Plugin Contributions
    0

    Default Tpl_main_page

    I added some text to TPL_MAIN_PAGE as awelcome to the website, but it stays on every page even product pages. How do i fix this? Thanks

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: Tpl_main_page

    Quote Originally Posted by JakeLawless View Post
    I added some text to TPL_MAIN_PAGE as awelcome to the website, but it stays on every page even product pages. How do i fix this? Thanks
    That's because the /templates/YOUR_TEMPLATE/common/tpl_main_page.php is rendered (as you found) for all pages.

    To add text on the main (a.k.a index) page, you can use the built-in processing and update the main-page's define-page (your admin's Tools->Define Pages Editor) to include that custom content.

    What template are you using?

  3. #3
    Join Date
    Jan 2018
    Posts
    146
    Plugin Contributions
    0

    Default Re: Tpl_main_page

    One purchased from Template Monster - “Spare Parts ZenCart Template“

    How do I set the permissions so I can write it in the define pages editor?

  4. #4
    Join Date
    Jan 2018
    Posts
    146
    Plugin Contributions
    0

    Default Re: Tpl_main_page

    still unsure

  5. #5
    Join Date
    May 2009
    Posts
    1,219
    Plugin Contributions
    2

    Default Re: Tpl_main_page

    You may set permissions using your ftp software, or thru cpanel's file manager, if I understand correctly what you mean by permissions.

    That said, have you considered as an alternative to edit your languages file, languages/english/YOUR_TEMPLATE/index.php?
    Or depending on where you want the text you could edit some tpl_ file in includes/templates/YOUR_TEMPLATE/...

    Unfortunatelly template monster does not have good reputation from what I understand, and might have customized it differently, and you should ask them first.

  6. #6
    Join Date
    Jul 2012
    Posts
    16,718
    Plugin Contributions
    17

    Default Re: Tpl_main_page

    To follow up with keneso's response or perhaps identify an area of uncertainty relating to modifying "permissions". It appears that the question is related to the permissions of the files/content once tools->define pages editor has been chosen, but it is also possible to restrict an admin user from being able to get to the define pages editor.

    It is not clear if the question about modifying the permissions is related to a specific define page or accessing the area where the define pages can be seen/edited.

    The ability to access the tools->define pages editor area is controlled by the admin user's profile and the associated admin group.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Jan 2018
    Posts
    146
    Plugin Contributions
    0

    Default Re: Tpl_main_page

    Thank you

 

 

Similar Threads

  1. v152 tpl_main_page.php Question
    By rbarbour in forum General Questions
    Replies: 1
    Last Post: 4 Jun 2014, 05:08 AM
  2. Customizing tpl_main_page
    By foteek in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Dec 2010, 05:13 AM
  3. change tpl_main_page.php
    By mikehr in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Sep 2009, 09:31 PM
  4. tpl_main_page error
    By cs_jono in forum General Questions
    Replies: 3
    Last Post: 26 Apr 2008, 05:33 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR