ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Config override 'word_separator' not working in 2.1

July 22, 2010 3:02pm

Subscribe [2]
  • #1 / Jul 22, 2010 3:02pm

    Steve Hurst

    36 posts

    I am overriding config settings via a bootstrap file, and all appears to be working except for ‘word_separator’. The control panel’s dropdown changes to my override setting, but when I create new channel content, it uses the separator that was originally set in the database.

    For example, the default setting was ‘Underscore’, and my file has it ‘-’. My dashboard settings say ‘Dash’, but when I create new channel entries, the automatic url_title generator uses underscores. I’ve also tried using ‘dash’ and ‘Dash’ in my config file, but the actual character appears to be the only thing that works.

  • #2 / Jul 22, 2010 7:56pm

    Brandon Jones

    5500 posts

    Steve,

    I’m afraid I’m not reproducing over here. Both of these config.php overrides work correctly:

    $config['word_separator'] = 'underscore';
    $config['word_separator'] = 'dash';

    Can you confirm that’s what you are using and your EE2.1 build?

  • #3 / Jul 22, 2010 8:03pm

    Steve Hurst

    36 posts

    I’m on 2.1, build 20100720. I’m passing the config options via array, like so:

    $default_config = array(
      'word_separator' => '-',
      'reserved_category_word' => 'cat',
    );

    For more reference, I’m using Leevi Graham’s config bootstrap as a base:

    http://expressionengine-addons.com/nsm-config-bootstrap

  • #4 / Jul 22, 2010 10:58pm

    Lisa Wess

    20502 posts

    Hi, Steve -

    Please try this as a standard install without the bootstrap setup.

    Thanks.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases