widgetfactory / jce

JCE - A Content Editor for Joomla
https://www.joomlacontenteditor.net
GNU General Public License v2.0
35 stars 12 forks source link

adds articleID an contextName to variables for filemanager #119

Closed mastkopp closed 1 year ago

mastkopp commented 1 year ago

Dealing with a large number of articles can lead to a mess of uploaded files.. By using "articleId" and "contextName" in the filepath one can order them by default.

ryandemmer commented 1 year ago

The contextName option is a possibilty that I will look into as this is a generic identifier that can be used with any extension. The "articleid" option is however only applicable to the Joomla Article Manager, so will not be considered.

Thank you for your contribution.

ryandemmer commented 1 year ago

$context has been added - https://github.com/widgetfactory/jce/commit/75091863c8dfaf0cf580652c720c02b1e306fcb1

mastkopp commented 12 months ago

Hi there,

I know the "articleid" option is only applicable to the Joomla Article Manager but when using the editor in any other context it will just be ignored.

I'm in charge for a Joomla Community with 50 users, providing articles for each other. Currently I organize the filesystem path by $profile. But after a while, users lose track of what files are currently used in their articles and what files are used in articles that are no longer published. Of course, I can tell them to organize their media by article, but users are more focused on content than technical things.

Pushing them to use one directory per article by using the $article option from this pull request really helps.

Is there any chance to have the articleId in the next release?