if(!empty($registry->get('com_content')->edit->article->id)) {
$article_id = reset($registry->get('com_content')->edit->article->id);
if (!empty($article_id)) {
if ($article_id>0) {
$root .= '/' . $article_id;
...
Any suggestions?
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 Offline
09:00 - 17:00 Europe/London (BST)
Please create a new Ticket and we will get back to you as soon as we can.
#103200 Custom Filesystem with rootdir = $articleid
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 Ryan on Monday, 06 April 2020 16:08 BST
Friday, 21 February 2020 14:07 GMT
Sunday, 23 February 2020 11:10 GMT
$id = JFactory::getApplication()->getInt('id');
Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Monday, 24 February 2020 12:36 GMT
$session = JFactory::getSession();
$registry = $session->get('registry');
$article_id = reset($registry->get('com_content')->edit->article->id);
or in an http_referrer property.
I can't use getApplication->input because when editing an article, the FileBrowser is opened in a popup window, so with a new url different from the editing page, and there's no trace of article id, nor of the component I'm using...
Do you know how can I get these informations? For instance, how do you get the current component used to choose the right profile to apply? I guess I can found there what I'm looking for...
thank you 🙂
Monday, 24 February 2020 12:56 GMT
$app = JFactory::getApplication();
$data = $app->getUserState('com_content.edit.article.data', array());
$articleid = (int) $data->id;
Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Monday, 06 April 2020 14:45 BST
Nice idea. Can we get $articleid in picture manager by default option in future updates?
For example images/$id/$year/$month/$articleid
Thanks
Monday, 06 April 2020 16:08 BST
Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Please wait
Your post is being submitted…