diff --git a/core/lib/Thelia/Controller/Admin/ContentController.php b/core/lib/Thelia/Controller/Admin/ContentController.php
index 11e23c209..86082a0f4 100644
--- a/core/lib/Thelia/Controller/Admin/ContentController.php
+++ b/core/lib/Thelia/Controller/Admin/ContentController.php
@@ -242,7 +242,8 @@ class ContentController extends AbstractCrudController
{
return array(
'content_id' => $this->getRequest()->get('content_id', 0),
- 'current_tab' => $this->getRequest()->get('current_tab', 'general')
+ 'current_tab' => $this->getRequest()->get('current_tab', 'general'),
+ 'folder_id' => $this->getFolderId(),
);
}
diff --git a/core/lib/Thelia/Controller/Admin/ProductController.php b/core/lib/Thelia/Controller/Admin/ProductController.php
index afda4b274..9b0c01ec0 100644
--- a/core/lib/Thelia/Controller/Admin/ProductController.php
+++ b/core/lib/Thelia/Controller/Admin/ProductController.php
@@ -43,6 +43,7 @@ use Thelia\Model\CategoryQuery;
use Thelia\Core\Event\Product\ProductAddAccessoryEvent;
use Thelia\Core\Event\Product\ProductDeleteAccessoryEvent;
+use Thelia\Model\ProductSaleElementsQuery;
/**
* Manages products
diff --git a/core/lib/Thelia/Core/Template/Loop/FolderPath.php b/core/lib/Thelia/Core/Template/Loop/FolderPath.php
index 895d8e08c..272b9fbbb 100644
--- a/core/lib/Thelia/Core/Template/Loop/FolderPath.php
+++ b/core/lib/Thelia/Core/Template/Loop/FolderPath.php
@@ -131,7 +131,7 @@ class FolderPath extends BaseI18nLoop
// Prevent circular refererences
if (in_array($parent, $ids)) {
- throw new \LogicException(sprintf("Circular reference detected in category ID=%d hierarchy (category ID=%d appears more than one times in path)", $id, $parent));
+ throw new \LogicException(sprintf("Circular reference detected in folder ID=%d hierarchy (folder ID=%d appears more than one times in path)", $id, $parent));
}
$ids[] = $parent;
diff --git a/templates/admin/default/content-edit.html b/templates/admin/default/content-edit.html
index 40b0d5600..64b4b780c 100644
--- a/templates/admin/default/content-edit.html
+++ b/templates/admin/default/content-edit.html
@@ -8,7 +8,7 @@
- {* include file="includes/folder-breadcrumb.html" editing_category="true" *}
+ {include file="includes/folder-breadcrumb.html" editing_category="false" editing_content="true"}
{loop name="content_edit" type="content" visible="*" id="{$content_id}" backend_context="1" lang="$edit_language_id"}
diff --git a/templates/admin/default/folder-edit.html b/templates/admin/default/folder-edit.html
index bac087096..6a0b962e4 100644
--- a/templates/admin/default/folder-edit.html
+++ b/templates/admin/default/folder-edit.html
@@ -8,7 +8,7 @@
- {* include file="includes/folder-breadcrumb.html" editing_category="true" *}
+ {include file="includes/folder-breadcrumb.html" editing_category="true" }
{loop name="folder_edit" type="folder" visible="*" id="{$folder_id}" backend_context="1" lang="$edit_language_id"}
diff --git a/templates/admin/default/folders.html b/templates/admin/default/folders.html
index 95f696c95..7a68d5bf0 100644
--- a/templates/admin/default/folders.html
+++ b/templates/admin/default/folders.html
@@ -9,7 +9,7 @@
- {include file="includes/folder-breadcrumb.html" }
+ {include file="includes/folder-breadcrumb.html" folder_id=$parent }
{module_include location='folders_top'}
diff --git a/templates/admin/default/includes/catalog-breadcrumb.html b/templates/admin/default/includes/catalog-breadcrumb.html
index 1233d17a3..d0223b8bd 100644
--- a/templates/admin/default/includes/catalog-breadcrumb.html
+++ b/templates/admin/default/includes/catalog-breadcrumb.html
@@ -1,8 +1,8 @@
{* Breadcrumb for categories browsing and editing *}
- - Home
- - Catalog
+ - {intl l="Home"}
+ - {intl l="Catalog"}
{ifloop rel="category_path"}
{loop name="category_path" type="category-path" visible="*" category=$category_id}
diff --git a/templates/admin/default/includes/folder-breadcrumb.html b/templates/admin/default/includes/folder-breadcrumb.html
index acb78663e..e550ebd8a 100644
--- a/templates/admin/default/includes/folder-breadcrumb.html
+++ b/templates/admin/default/includes/folder-breadcrumb.html
@@ -1,11 +1,11 @@
{* Breadcrumb for folders browsing and editing *}
- - Home
- - Folders
+
- {intl l="Home"}
+ - {intl l="Folders"}
{ifloop rel="folder_path"}
- {loop name="folder_path" type="folder-path" visible="*" folder=$parent}
+ {loop name="folder_path" type="folder-path" visible="*" folder=$folder_id}
{if $ID == $parent}
-
{if $editing_folder == true}
@@ -23,4 +23,10 @@
{elseloop rel="folder_path"}
{/elseloop}
+
+ {if $editing_content == true}
+ {loop name="content_path" type="content" visible="*" id=$content_id}
+ - {intl l="Editing %title" title="$TITLE"}
+ {/loop}
+ {/if}
\ No newline at end of file