Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2009
    Location
    Texas
    Posts
    209
    Plugin Contributions
    2

    Default Dashes not allowed in pages? - SSU module

    Trying to create a new page as described here:
    http://www.zen-cart.com/wiki/index.p...ting_new_pages

    Everything seems to go well except I tried to name one page with dashes in it ie: 'tax-info'

    This didn't work for some reason. Yet underscore works fine 'tax_info'

    I would prefer to use dashes over underscores. Is there something I'm missing or did I just hit another Zencart quirk?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Dashes not allowed in pages?

    I would prefer to use dashes over underscores. Is there something I'm missing or did I just hit another Zencart quirk?
    I do not believe this is only a ZenCart item
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jul 2009
    Location
    Texas
    Posts
    209
    Plugin Contributions
    2

    Default Re: Dashes not allowed in pages?

    Just an update... This seems to be a problem/feature with the SSU module.

  4. #4
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Dashes not allowed in pages?

    Quote Originally Posted by llynix View Post
    Trying to create a new page as described here:
    http://www.zen-cart.com/wiki/index.p...ting_new_pages

    Everything seems to go well except I tried to name one page with dashes in it ie: 'tax-info'

    This didn't work for some reason. Yet underscore works fine 'tax_info'

    I would prefer to use dashes over underscores. Is there something I'm missing or did I just hit another Zencart quirk?
    This is a problem that is caused by "loosely typed" languages such as PHP.

    In simple terms, "tax_info" is being treated as a string, but 'tax-info' is being treated as a mathematical operation on 2 numeric variables.

    Spaces in filenames should also be avoided for similar reasons.

    There are ways to overcome the problem, but as a general rule it is best to avoid them in the first place.

    Cheers
    Rod

 

 

Similar Threads

  1. iTransact Module: This transaction amount is not allowed
    By mattfrand in forum Addon Payment Modules
    Replies: 0
    Last Post: 10 Aug 2011, 05:35 PM
  2. SSU Redirect many pages in site redesign, what's the best way?
    By swamyg1 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 22 Mar 2011, 10:07 PM
  3. Pages exist but still 301 (1.3.8 with SSU)
    By khuramyz in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 5 Aug 2010, 01:28 PM
  4. SSU Module -- Instructions of Use?
    By windowla in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 25 Mar 2010, 05:55 PM
  5. define pages editor in Admin not allowed
    By haostaff in forum Customization from the Admin
    Replies: 0
    Last Post: 2 Nov 2007, 08:08 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