Skip to content

Commit

Permalink
[-] BO : fixed bug on SEO & URLs page
Browse files Browse the repository at this point in the history
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15912 b9a71923-0436-4b27-9f14-aed3839534dd
  • Loading branch information
aFolletete committed Jun 7, 2012
1 parent 9e330d4 commit a25dec5
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions controllers/admin/AdminMetaController.php
Expand Up @@ -159,18 +159,21 @@ public function __construct()
'fields' => $general_fields,
'submit' => array()
),
'shop_url' => $shop_url_options,
'routes' => array(
'title' => $this->l('Schema of URLs'),
'description' => $this->l('Change the pattern of your links. There are some available keywords for each route listed below, keywords with * are required. To add a keyword in your URL use {keyword} syntax. You can add some text before or after the keyword IF the keyword is not empty with syntax {prepend:keyword:append}, for example {-hey-:meta_title} will add "-hey-my-title" in URL if meta title is set, or nothing. Friendly URL and rewriting Apache option must be activated on your web server to use this functionality.'),
'fields' => array(),
),
'robots' => $robots_options,
'shop_url' => $shop_url_options
);

// Add display route options to options form
if (Configuration::get('PS_REWRITING_SETTINGS') && Tools::getValue('PS_REWRITING_SETTINGS'))
if (Configuration::get('PS_REWRITING_SETTINGS'))
{
$this->fields_options['routes'] = array(
'title' => $this->l('Schema of URLs'),
'description' => $this->l('Change the pattern of your links. There are some available keywords for each route listed below, keywords with * are required. To add a keyword in your URL use {keyword} syntax. You can add some text before or after the keyword IF the keyword is not empty with syntax {prepend:keyword:append}, for example {-hey-:meta_title} will add "-hey-my-title" in URL if meta title is set, or nothing. Friendly URL and rewriting Apache option must be activated on your web server to use this functionality.'),
'fields' => array()
);
$this->addAllRouteFields();
}

$this->fields_options['robots'] = $robots_options;
}

public function initProcess()
Expand Down

0 comments on commit a25dec5

Please sign in to comment.