jmcameron / attachments

Attachments Extension for Joomla 3, 4, and 5
GNU General Public License v3.0
12 stars 19 forks source link

View Attachment in article view #40

Closed jikeseap closed 2 months ago

jikeseap commented 3 months ago

Hello

i migrate my joomla site from joomla 3 to joomla 4 before migration i unistall attachment plugin and after migration i install attachment 4 i had import the table with attachments in the db. everything it looks okey in the front end of the site i can see the attachments in each article and i can open it but when i open an article in article view it is not showing the attachment files. After looking the settings i find that it displays attachments in article view only in the articles of one specific category i don't know why is doing that i have seeing the settings to many time i cannot find something wrong. can you help me please

thank you in advance for your answer

JLTRY commented 3 months ago

Hello do you have a screenshot of your parameters setting and one of your articles views . Is it a view of category categories, blog ? ... Do you have the url of the view not showing attachments ?

jikeseap commented 3 months ago

error.pdf i have attach a file with the settings and a link to the site if you open an article you see that is not showing the attachments that you see when you see the article in the main page

thanks in advance

jikeseap commented 3 months ago

Hello do you have a screenshot of your parameters setting and one of your articles views . Is it a view of category categories, blog ? ... Do you have the url of the view not showing attachments ?

error.pdf i have attach a file with the settings and a link to the site if you open an article you see that is not showing the attachments that you see when you see the article in the main page

thanks in advance

JLTRY commented 2 months ago

Hello I did not reproduce this issue on my site see (http://www.jltryoen.fr/extensions-joomla/templates/136-installation-details-3)

JLTRY commented 2 months ago

I will try to add logs in files to be able to track your issue

jikeseap commented 2 months ago

i can't open the link of your site is not accessible, i manage to find that the problem is happening with the categories of my site when i create a new article category and i post a new article which i choose to be in that new category everything is working. The article categories it have been created when the site was in joomla 3 version. i don't know if you can help me with that

JLTRY commented 2 months ago

I have pushed a modification that you can try https://github.com/jmcameron/attachments/commit/e3f3b4baf00a04e2ff74f9fed0d9da86066ca1f5

jikeseap commented 2 months ago

I have pushed a modification that you can try e3f3b4b

i try the changes and it work!!!!!!!! Thank you for that i also see that in some article it displays the attachment twice as you can see in the screenshot that i have attach

thanks for everything error_double attachment

JLTRY commented 2 months ago

I think for last issue it will be difficult to search for it . Do you have a link to the article ? What is special in it ? PErhaps short article ? is there a "Read more" separator in it ?

jikeseap commented 2 months ago

Hello again the problem is the same from the beginning, before i change the code the attachments it was been displayed in the articles of some categories but not in the articles of all the categories. After i change the code you provide me the attachments is been displayed in the articles of all the categories but the article in the categories that they was displaying the attachments now it is displaying it twice

If i create a new category and move the article from an old category to that everything it looks okey

the link of the site development is https://dide.kas.sch.gr/upgrade/

thank you again for the help you provide me

parapente commented 2 months ago

@jikeseap can you check if your __categories table in your database has correct extension (com_content), parent and path for those categories where attachments are not displayed?

jikeseap commented 2 months ago

Hello again the problem is the same from the beginning, before i change the code the attachments it was been displayed in the articles of some categories but not in the articles of all the categories. After i change the code you provide me the attachments is been displayed in the articles of all the categories but the article in the categories that they was displaying the attachments now it is displaying it twice

If i create a new category and move the article from an old category to that everything it looks okey

the link of the site development is https://dide.kas.sch.gr/upgrade/

thank you again for the help you provide me

@jikeseap can you check if your __categories table in your database has correct extension (com_content), parent and path for those categories where attachments are not displayed?

jikeseap commented 2 months ago

everything in the database it looks okey as you can see in the image db_site

JLTRY commented 2 months ago

@parapente I have reverted the previous changes as you mentioned ( __the changes in https://github.com/jmcameron/attachments/commit/e3f3b4baf00a04e2ff74f9fed0d9da86066ca1f5 are causing the plugin to show the attachments two times in the article) It works for me so I will keep it in my branch

JLTRY commented 2 months ago

I reverted my change in master branch as we have duplicated attachments @jikeseap Can you please try a8d4dfc to check if you have still duplicated entry

parapente commented 2 months ago

@jikeseap @JLTRY check PR #45 for a possible fix on attachments not showing in blog articles and tell me if there are any other problems

JLTRY commented 2 months ago

I merged #45 into master branch

jikeseap commented 2 months ago

@jikeseap @JLTRY check PR #45 for a possible fix on attachments not showing in blog articles and tell me if there are any other problems

thank you very much both @parapente @JLTRY