Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F804102
D205.id498.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Feb 26, 9:06 AM
Size
2 KB
Mime Type
text/x-diff
Expires
Thu, Feb 27, 9:06 AM (1 h, 13 m)
Engine
blob
Format
Raw Data
Handle
576816
Attached To
D205: INP-1542 - Add "Export" button to "Show All" grid in "Website & Content > Structure & Data" section
D205.id498.diff
View Options
Index: core/admin_templates/catalog/advanced_view.tpl
===================================================================
--- core/admin_templates/catalog/advanced_view.tpl
+++ core/admin_templates/catalog/advanced_view.tpl
@@ -75,6 +75,23 @@
a_toolbar.AddButton( new ToolBarSeparator('sep3') );
+ a_toolbar.AddButton( new ToolBarButton('export', '<inp2:m_phrase label="la_ToolTip_Export" escape="1"/>', function() {
+ var $export_template_prefix = $Catalog.ActivePrefix.replace(/\.showall$/, ''),
+ $export_templates = <inp2:c_PrintCatalogExportTemplates prefixes="l,n,p"/>;
+
+ if ($export_templates[$export_template_prefix] != undefined) {
+ $Catalog.storeIDs('export_categories');
+
+ open_popup($Catalog.ActivePrefix, 'OnExport', $export_templates[$export_template_prefix]);
+ }
+ else {
+ alert('<inp2:m_phrase name="la_Text_InDevelopment" escape="1"/>');
+ }
+ }
+ ) );
+
+ a_toolbar.AddButton( new ToolBarSeparator('sep4') );
+
a_toolbar.AddButton( new ToolBarButton('view', '<inp2:m_phrase label="la_ToolTip_View" escape="1"/>', function() {
show_viewmenu(a_toolbar, 'view');
}
Index: core/units/categories/categories_config.php
===================================================================
--- core/units/categories/categories_config.php
+++ core/units/categories/categories_config.php
@@ -133,7 +133,7 @@
'advanced_view' => Array (
'prefixes' => Array (), 'format' => "!la_title_AdvancedView!",
- 'toolbar_buttons' => Array ('select', 'cancel', 'new_cat', 'new_link', 'new_article', 'new_topic', 'new_product', 'edit', 'delete', 'new_listing', 'approve', 'decline', 'view', 'dbl-click'),
+ 'toolbar_buttons' => Array ('select', 'cancel', 'new_cat', 'new_link', 'new_article', 'new_topic', 'new_product', 'edit', 'delete', 'new_listing', 'approve', 'decline', 'export', 'view', 'dbl-click'),
),
'reviews' => Array (
'prefixes' => Array (), 'format' => "!la_title_Reviews!",
@@ -540,4 +540,4 @@
'DefaultSorting1Dir' => 'Category_Sortorder',
'DefaultSorting2Dir' => 'Category_Sortorder2',
),
-);
\ No newline at end of file
+);
Event Timeline
Log In to Comment