Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Location
    United Kingdom
    Posts
    457
    Plugin Contributions
    0

    Default defines pages editor query

    Hi, i have quite a few pages that use the define pages editor to alter

    I have the following in a template file

    $define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_MY_PAGE, 'false');

    What i want to do now, is to define two areas on one page (they are not together)

    Am i safe to change the name of the string for my second area, ie the following

    $define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_MY_PAGE, 'false');
    $define_second = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_MY_PAGE2, 'false');

    The reason im asking if it's safe, is i don't know whether $define_page string is put through some function to check its content before delivering it to the page etc

    Rob

    Rob

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: defines pages editor query

    Yes, you can do that.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Aug 2005
    Location
    United Kingdom
    Posts
    457
    Plugin Contributions
    0

    Default Re: defines pages editor query

    Super,

    cheers DrByte

    Rob

 

 

Similar Threads

  1. Defines editor saving code wrongly
    By horsetags in forum General Questions
    Replies: 2
    Last Post: 28 Oct 2010, 11:27 PM
  2. Editing defines Page Editor
    By mhakiwa in forum General Questions
    Replies: 5
    Last Post: 1 Nov 2009, 10:03 AM
  3. Defines Page Editor
    By kal in forum Customization from the Admin
    Replies: 4
    Last Post: 13 Jun 2009, 08:13 PM
  4. Getting text to show from defines page editor
    By ctcentralinfo in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 Mar 2007, 01:24 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