8000 Add button for categories in Tree toolbar · Issue #7387 · modxcms/revolution · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add button for categories in Tree toolbar #7387

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ghost opened this issue Mar 18, 2012 · 1 comment
Closed

Add button for categories in Tree toolbar #7387

ghost opened this issue Mar 18, 2012 · 1 comment
Labels
feature Request about implementing a brand new function or possibility. type-frontend Issues related to UI/UX issues, mostly about styles and frontend implementations on JavaScript.

Comments

@ghost
Copy link
ghost commented Mar 18, 2012

sottwell created Redmine issue ID 7387

Two modification add a "New Category" button to the Element Tree toolbar. Courtesy of Mark Hamstra.

manager/assets/modext/widgets/modx.tree.element.js lines 67-77 - to add and activate a button in the toolbar

,{
icon: MODx.config.manager_url+'templates/default/images/restyle/icons/category.png'
,cls: 'x-btn-icon'
,tooltip: {text: _('new_category')}
,handler: function() {
this.cm.activeNode = { attributes: {}, id: 'n_category' };
this.createCategory(null,{target: null})
}
,scope: this
,hidden: MODx.perm.new_category ? false : true
}

core/model/modx/processors/system/config.js.php line 90 - to enable permissions checks on the button

if ($modx->hasPermission('new_category')) { $o .= 'MODx.perm.new_category = true;'; }
@splittingred
Copy link

splittingred submitted:

Fixed: f05abe9

enigmatic-user pushed a commit to enigmatic-user/revolution that referenced this issue Feb 13, 2014
enigmatic-user pushed a commit to enigmatic-user/revolution that referenced this issue Feb 13, 2014
Merge branch 'release-2.2'

* release-2.2: (213 commits)
  Bump version for 2.2.1-pl release
  Fix uninstalled state to report 503 error
  [xPDO] Updated xPDO to 2.2.4-pl release
  Override modAccess->getOne for Principal aggregate
  Add Group/UserPrincipal aggregates to modAccess
  Fix CSS for windows
  [modxcms#7387] Add New Category button to Element tree toolbar
  [modxcms#7518] Fix issue that prevented absolute URLs in media-source bound TVs
  [modxcms#7521] Allow filtering of usergroup by request on users page
  Update of Czech translation
  Oprava 'kriticke chyby'
  Correction of Czech translation
  Correction of Czech translation in settings
  Refactor aggregate/composite criteria support
  Remove deprecated comments
  [ReUp] Add assets_path field to modNamespace
  Fix xPDOObject::_loadInstance for graph objects
  Refactor schema parsing using SimpleXML
  Translated new phrases in default.inc.php and user.inc.php to German
  Scale back prior commit a bit to prevent issues with field loading
  ...
enigmatic-user pushed a commit to enigmatic-user/revolution that referenced this issue Feb 13, 2014
* release-2.2:
  Bump version for 2.2.1-pl release
  Fix uninstalled state to report 503 error
  [xPDO] Updated xPDO to 2.2.4-pl release
  Override modAccess->getOne for Principal aggregate
  Add Group/UserPrincipal aggregates to modAccess
  Fix CSS for windows
  [modxcms#7387] Add New Category button to Element tree toolbar
  [modxcms#7518] Fix issue that prevented absolute URLs in media-source bound TVs
  [modxcms#7521] Allow filtering of usergroup by request on users page
  Update of Czech translation
  Oprava 'kriticke chyby'
  Correction of Czech translation
  Correction of Czech translation in settings
  Oprava 'kriticke chyby'
  Correction of Czech translation
  Correction of Czech translation in settings
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Request about implementing a brand new function or possibility. type-frontend Issues related to UI/UX issues, mostly about styles and frontend implementations on JavaScript.
Projects
None yet
Development

No branches or pull requests

1 participant
0