Index: branches/unlabeled/unlabeled-1.4.2/kernel/admin_templates/config/config_general.tpl
===================================================================
diff -u -r5787 -r5814
--- branches/unlabeled/unlabeled-1.4.2/kernel/admin_templates/config/config_general.tpl (.../config_general.tpl) (revision 5787)
+++ branches/unlabeled/unlabeled-1.4.2/kernel/admin_templates/config/config_general.tpl (.../config_general.tpl) (revision 5814)
@@ -113,7 +113,7 @@
- ', 'ModuleRootCategory', '950x600');">
+ ', 'ModuleRootCategory', '950x600');">
|
Index: branches/unlabeled/unlabeled-1.24.2/kernel/units/admin/admin_tag_processor.php
===================================================================
diff -u -r5715 -r5814
--- branches/unlabeled/unlabeled-1.24.2/kernel/units/admin/admin_tag_processor.php (.../admin_tag_processor.php) (revision 5715)
+++ branches/unlabeled/unlabeled-1.24.2/kernel/units/admin/admin_tag_processor.php (.../admin_tag_processor.php) (revision 5814)
@@ -376,6 +376,47 @@
return $oFCKeditor->CreateHtml();
}
+
+ /**
+ * Allows to construct link for opening any type of catalog item selector
+ *
+ * @param Array $params
+ * @return string
+ */
+ function SelectorLink($params)
+ {
+ $params['t'] = 'item_selector/item_selector_'.$params['mode'];
+
+ $default_params = Array('no_amp' => 1, 'pass' => 'all,'.$params['prefix']);
+ unset($params['prefix']);
+
+ $pass_through = Array();
+ if (isset($params['tabs_dependant'])) { // {yes, no}
+ $pass_through['td'] = $params['tabs_dependant'];
+ unset($params['tabs_dependant']);
+ }
+
+ if (isset($params['selection_mode'])) { // {single, multi}
+ $pass_through['tm'] = $params['selection_mode'];
+ unset($params['selection_mode']);
+ }
+
+ if (isset($params['tab_prefixes'])) { // {all, none, Application->ProcessParsedTag('m', 't', $params);
+ }
}
?>
\ No newline at end of file
Index: branches/unlabeled/unlabeled-1.1.2/core/admin_templates/categories/categories_edit_relations.tpl
===================================================================
diff -u -r5795 -r5814
--- branches/unlabeled/unlabeled-1.1.2/core/admin_templates/categories/categories_edit_relations.tpl (.../categories_edit_relations.tpl) (revision 5795)
+++ branches/unlabeled/unlabeled-1.1.2/core/admin_templates/categories/categories_edit_relations.tpl (.../categories_edit_relations.tpl) (revision 5814)
@@ -40,7 +40,7 @@
//Relations related:
a_toolbar.AddButton( new ToolBarButton('new_relation', '',
function() {
- openSelector('c-rel', '', 'TargetId', '950x600');
+ openSelector('c-rel', '', 'TargetId', '950x600');
} ) );
function edit()
Index: branches/unlabeled/unlabeled-1.24.2/core/units/admin/admin_tag_processor.php
===================================================================
diff -u -r5715 -r5814
--- branches/unlabeled/unlabeled-1.24.2/core/units/admin/admin_tag_processor.php (.../admin_tag_processor.php) (revision 5715)
+++ branches/unlabeled/unlabeled-1.24.2/core/units/admin/admin_tag_processor.php (.../admin_tag_processor.php) (revision 5814)
@@ -376,6 +376,47 @@
return $oFCKeditor->CreateHtml();
}
+
+ /**
+ * Allows to construct link for opening any type of catalog item selector
+ *
+ * @param Array $params
+ * @return string
+ */
+ function SelectorLink($params)
+ {
+ $params['t'] = 'item_selector/item_selector_'.$params['mode'];
+
+ $default_params = Array('no_amp' => 1, 'pass' => 'all,'.$params['prefix']);
+ unset($params['prefix']);
+
+ $pass_through = Array();
+ if (isset($params['tabs_dependant'])) { // {yes, no}
+ $pass_through['td'] = $params['tabs_dependant'];
+ unset($params['tabs_dependant']);
+ }
+
+ if (isset($params['selection_mode'])) { // {single, multi}
+ $pass_through['tm'] = $params['selection_mode'];
+ unset($params['selection_mode']);
+ }
+
+ if (isset($params['tab_prefixes'])) { // {all, none, Application->ProcessParsedTag('m', 't', $params);
+ }
}
?>
\ No newline at end of file
Index: branches/unlabeled/unlabeled-1.1.2/kernel/admin_templates/categories/categories_edit_relations.tpl
===================================================================
diff -u -r5795 -r5814
--- branches/unlabeled/unlabeled-1.1.2/kernel/admin_templates/categories/categories_edit_relations.tpl (.../categories_edit_relations.tpl) (revision 5795)
+++ branches/unlabeled/unlabeled-1.1.2/kernel/admin_templates/categories/categories_edit_relations.tpl (.../categories_edit_relations.tpl) (revision 5814)
@@ -40,7 +40,7 @@
//Relations related:
a_toolbar.AddButton( new ToolBarButton('new_relation', '',
function() {
- openSelector('c-rel', '', 'TargetId', '950x600');
+ openSelector('c-rel', '', 'TargetId', '950x600');
} ) );
function edit()