• Home
  • Get help
  • Ask a question
Last post 18 min ago
Posts last week 89
Average response time last week 30 min
All time posts 67731
All time tickets 10466
All time avg. posts per day 21

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#5668 – Front End Menu Item 'Create Article' using default category not working

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Saturday, 16 March 2019 10:30 UTC
bigrich66
 Hi

I have the following front end User Menu Item links to add new articles under a default joomla category that are not publicly available.

With SH404SEF switched OFF and Joomla global sef turned ON the Menu Item urls are as follows and the default selected category is successfully displayed.

https://www.xxxx.co.uk/user-menu/add-project
https://www.xxxx.co.uk/user-menu/add-solution
https://www.xxxx.co.uk/user-menu/add-team-member
https://www.xxxx.co.uk/user-menu/add-testimonial

With SH404SEF switched ON the Menu Item urls are as follows

https://www.xxxx.co.uk/f/create-new-article
https://www.xxxx.co.uk/f/create-new-article
https://www.xxxx.co.uk/f/create-new-article
https://www.xxxx.co.uk/f/create-new-article

ie they all go to the same url so the default category the same for each

So far I have tried creating direct menu item links directly to the non sef url for each as below

Add Project
https://www.xxxx.co.uk/index.php?option=com_content&view=form&layout=edit&a_id=0&Itemid=583
Add Solution
https://www.xxxx.co.uk/index.php?option=com_content&view=form&layout=edit&a_id=0&Itemid=585
Add Team Member
https://www.xxxx.co.uk/index.php?option=com_content&view=form&layout=edit&a_id=0&Itemid=586
Add Testimonial
https://www.xxxx.co.uk/index.php?option=com_content&view=form&layout=edit&a_id=0&Itemid=584

I've also tried creating new SEF URLs in SH404SEF as below pointing to the above

add-project
add-solution
add-team-member
add-testimonial

Then using the following urls as the menu item direct urls

https://www.xxxx.co.uk/add-project
https://www.xxxx.co.uk/add-solution
https://www.xxxx.co.uk/add-team-member
https://www.xxxx.co.uk/add-testimonial

In each case however with Joomla global SEF and SH404SEF switched on the links will not present a create new article page set with the correct category

Cheers
Monday, 18 March 2019 08:48 UTC
wb_weeblr
Hi

So first it is important to understand that sh404SEF does not use menu items at all for URLs. URLs are only based on the content itself, ie categories and articles titles.

So far I have tried creating direct menu item links directly to the non sef url for each as below
Please remove that and delete any SEF URLs that would have been created for it.

Then using the following urls as the menu item direct urls
Again, do not create more menu items.Please delete those menu items. You already have the required menu items (in the User menu I think?)

Add Project

https://www.xxxx.co.uk/index.php?option=com_content&view=form&layout=edit&a_id=0&Itemid=583
Does this URL work as expected if you copy/paste it to your browser address bar?

Now the big question:

https://www.xxxx.co.uk/f/create-new-article

https://www.xxxx.co.uk/f/create-new-article

https://www.xxxx.co.uk/f/create-new-article

https://www.xxxx.co.uk/f/create-new-article
All those links are identical so they will all create an article in the same category. What's likely happening is as that if you search for f/create-new-article in the URL manager, you'll see it's associated with a specific non-SEF URL and it has 3 or more duplicates listed in the duplicates column.

Again and very importantly: this assumes you have removed all those additional menu items and SFE URLs that you created. Please be sure to revert to the initial menu and URL configuration that you had in the beginning.

So again, the problem is having the same name for each URL. The fix is to rename each URL to make it different.
So for instance, if the currently showing URL is:

SEF: f/create-new-article
non-SEF: index.php?option=com_content&view=form&layout=edit&a_id=0&Itemid=xxxx

where xxx corresponds to the menu item where you want to create a new "Project", then:

- click on the SEF URL
- change the URL from f/created-new-article to add-project
- save

Now search again for the f/create-new-article: you will have one less duplicate showing.

Repeat this for each of your content types, solutions, team member, etc

At the end, you should not have any f/create-new-article SEF URLs left. Delete them if that happens.

Best regards


 
Tuesday, 19 March 2019 12:02 UTC
bigrich66
Hi

I thought it was working but when I checked

add-project is correctly pointing to create article with its correct default category selected. Its SH404SEF SEF URL non-sef is
index.php?option=com_content&Itemid=583&a_id=0&lang=en&layout=edit&view=form

add-solution is correctly pointing to create article with its correct default category selected. Its SH404SEF SEF URL non-sef is
index.php?option=com_content&Itemid=585&a_id=0&lang=en&layout=edit&view=form

add-team-member is correctly pointing to create article with its correct default category selected. Its SH404SEF SEF URL non-sef is
index.php?option=com_content&Itemid=586&a_id=0&lang=en&layout=edit&view=form

However

add-testimonial is pointing to add-team-member above even though its SH404SEF SEF URL non-sef is different as below
index.php?option=com_content&Itemid=584&a_id=0&lang=en&layout=edit&view=form

Cheers




Tuesday, 19 March 2019 12:42 UTC
wb_weeblr
Hi

Could you please provide us with superadmin credentials to your website. You can create a temporary account, and delete it afterward, but it must have superuser level.

Thanks and regards
 
Tuesday, 19 March 2019 14:14 UTC
bigrich66
Hi

Please use

http://xxxx.co.uk/administrator/
xxxx
xxxx

Cheers
Tuesday, 19 March 2019 18:08 UTC
wb_weeblr
Hi

That's not the same problem. There's a redirect happening: from /add-testimonial to /add-team-member. This is because you have add that alias in the add-team-member record:

[xxxx]

Just delete it and it should work the same as the others.

Best regards
 
Tuesday, 19 March 2019 21:44 UTC
bigrich66
Hi

That worked, many thanks for your help. That was a hangover from me trying the incorrect methods before I raised this ticket.

Cheers
Wednesday, 20 March 2019 10:27 UTC
wb_weeblr
Hi

So I guessed ;) Closing this ticket now, feel free to open a new one as needed. If you do so, please mention this ticket number in the new one.

If you created any superadmin account for us, be sure to delete or block it now to avoid unnecessary risk in the future.

And please feel free to post a review on the JED,it helps and we appreciate it!

Best regards
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.