Skip to content
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

att. with modern router not shows in article #20

Open
phudak opened this issue Jun 19, 2018 · 5 comments
Open

att. with modern router not shows in article #20

phudak opened this issue Jun 19, 2018 · 5 comments

Comments

@phudak
Copy link

phudak commented Jun 19, 2018

Joomla 3.8.x with modern router turned ON and option "remove ID from url" article attachements not appears in article view.

https://docs.joomla.org/J3.x:New_Routing_System

@stefano-buscaglia
Copy link

stefano-buscaglia commented Nov 30, 2018

hi,
I confirm that isseue.

In my case the arrachments files are showed in the article view only if I disable off the the SEO url or I use the "legacy" Routing.

With the SEO active, and the modern router active with the option "remove ID from url" I can see attachments files in the blog view as aspected.

This is a development site (Joomla version is 3.9.1, Attachments is 3.2.6)

S.

@yozmag
Copy link

yozmag commented Feb 6, 2019

I think it's not working when layout is 'blog' and view is 'article', config (Hide attachments on blog pages) is going to hide when you enter an article from a category blog.
Changing attachments_for_content.php near line 150 helps. Can you both test this?
if (version_compare(JVERSION, '3.4.0', 'ge') AND
//($view == 'category') AND ($layout == 'blog') AND ($parent_entity == 'article'))
($view == 'article') AND ($layout == 'blog') )
{
$text_field_name = 'text';
}

@dontroedel
Copy link

Hey,
I have the same problem.

When I open an normal article, everything works fine. When an article belongs to a category and this is opened via category blog, no attachments are shown. When I turn off modern routing, everything works fine again.

@yozmag: I tested it and it doesn´t work here.

Greetings

@yozmag
Copy link

yozmag commented Feb 26, 2019

I'm sorry to here that. I'm using joomla 3.9.2, in the article option integration tab I have URL routing "modern" and remove ids from url "no" I if try with "yes" and it works too.
The file I have changed is in plugins/attachments/attachments_for_content can you check that again.
Thanks.

@felixkat
Copy link

felixkat commented May 8, 2019

I'm sorry to here that. I'm using joomla 3.9.2, in the article option integration tab I have URL routing "modern" and remove ids from url "no" I if try with "yes" and it works too.
The file I have changed is in plugins/attachments/attachments_for_content can you check that again.
Thanks.

Joomla! 3.9.6, modern router, category blog. The above changed works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants