You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Online

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

#117133 preset of the media path dynamicly

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by [email protected] on Monday, 17 March 2025 13:00 GMT

[email protected]

I have a question. Is it possible to do a dynamical preset of the media pass? I want to let my user in the frontend write articles for different categories. And deoending on the category the media path should be preseted so that the user has a very simple handling.

Is that possible?

 

Best Regards

Hubert Oebels

I want to use the query option in the JCE profile setup to preset an image folder. So different profiles = different image folders.

I want to use catid. For an existing article it works fine.

But when I go via a menu item (with a dedicated category id) to write a new article then it doesnt work. I think because there is not yet a catid, because the article is not yet submitted so not yet in the database.

So which key I can use instead? Or (and then I come back to my first question) is there another way to preset the image path per profile via an override?

Ryan

I have merged your other ticket into this one. Please do not post multiple seperate tickets for the same issue.

But when I go via a menu item (with a dedicated category id) to write a new article then it doesnt work. I think because there is not yet a catid, because the article is not yet submitted so not yet in the database.

The catid cannot be used until a catid has been assigned, either in an existing article or when selecting the category for a new article.

Dynamic variables for the File Directory Path are not recommended for this reason.

So which key I can use instead? Or (and then I come back to my first question) is there another way to preset the image path per profile via an override?

It is possible to override the image path using a Joomla event, bit it would require you to develop a custom plugin for this.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

[email protected]

ok understood.

 

so which keys I can use for the query option field? Is there a list of key names I can use?

Ryan

so which keys I can use for the query option field? Is there a list of key names I can use?

I can be anything that is passed in the url query or the page request.

For variables in the File Directory Path, see - https://www.joomlacontenteditor.net/support/tutorials/editor/setting-the-file-directory-path

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

[email protected]

ok seems you have no solution for me. It's a bit a pity.