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

View Attachment in article view #40

Closed
jikeseap opened this issue Mar 26, 2024 · 18 comments
Closed

View Attachment in article view #40

jikeseap opened this issue Mar 26, 2024 · 18 comments

Comments

@jikeseap
Copy link

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
Copy link
Collaborator

JLTRY commented Mar 26, 2024

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
Copy link
Author

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
Copy link
Author

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
Copy link
Collaborator

JLTRY commented Mar 28, 2024

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

@JLTRY
Copy link
Collaborator

JLTRY commented Mar 28, 2024

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

@jikeseap
Copy link
Author

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 pushed a commit that referenced this issue Mar 30, 2024
adapt to be able to see attachement in article view
@JLTRY
Copy link
Collaborator

JLTRY commented Mar 30, 2024

I have pushed a modification that you can try
e3f3b4b

@jikeseap
Copy link
Author

jikeseap commented Apr 1, 2024

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
Copy link
Collaborator

JLTRY commented Apr 6, 2024

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
Copy link
Author

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
Copy link
Collaborator

@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
Copy link
Author

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
Copy link
Author

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

JLTRY pushed a commit that referenced this issue Apr 18, 2024
This reverts commit e3f3b4b.
Waiting to have a better solution
@JLTRY
Copy link
Collaborator

JLTRY commented Apr 18, 2024

@parapente I have reverted the previous changes as you mentioned ( __the changes in e3f3b4b 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 pushed a commit to JLTRY/attachments that referenced this issue Apr 18, 2024
JLTRY pushed a commit to JLTRY/attachments that referenced this issue Apr 18, 2024
JLTRY pushed a commit to JLTRY/attachments that referenced this issue Apr 18, 2024
@JLTRY
Copy link
Collaborator

JLTRY commented Apr 18, 2024

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
Copy link
Collaborator

@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
Copy link
Collaborator

JLTRY commented Apr 21, 2024

I merged #45 into master branch

@jikeseap
Copy link
Author

@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

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

3 participants