Add to the context the site URL based on the language (Used in the SEO tab)

This commit is contained in:
touffies
2013-11-29 14:30:40 +01:00
parent 71302493c1
commit d6f39787d0

View File

@@ -315,9 +315,10 @@ class ProductController extends AbstractSeoCrudController
}
// The "SEO" tab form
$locale = $object->getLocale();
$data = array(
'id' => $object->getId(),
'locale' => $object->getLocale(),
'locale' => $locale,
'url' => $object->getRewrittenUrl($this->getCurrentEditionLocale()),
'meta_title' => $object->getMetaTitle(),
'meta_description' => $object->getMetaDescription(),
@@ -327,6 +328,9 @@ class ProductController extends AbstractSeoCrudController
$seoForm = new SeoForm($this->getRequest(), "form", $data);
$this->getParserContext()->addForm($seoForm);
// URL based on the language
$this->getParserContext()->set('url_language', $this->getUrlLanguage($locale));
// The "General" tab form
$data = array(