9 years ago
7
Topic

Hello

I'm really struggling with the urls for my seblod items. I've created a new content type (events) and a list to display these. This list will now be placed as a menu item and the content on the list should link to the item. The URL at this stage is exactly what I want:

/PARENT/ID-ALIAS

This is set in the global config, the content type and also the List configuration.

However the link does not work and i get a 404. The only way I can make the link work is by entering the following:

/ANYTHING/ID-ALIAS

'Anything' being any text string. But, and here's the weird part - this now takes me to my homepage where the item content is displayed (as per my content type field settings) in addition to the homepage items. 

The following patterns do not work:

/ID-ALIAS

/ALIAS

I should explain that my homepage is a category menu item, with the category set to a special one where there is no content. I have set several modules to display in this menu item, thereby filling my homepage with content.

Thanks!

Get a VIP membership
154 Posts
WebOne
9 years ago
0
Level 1

Often a "cure" for a url problem is simply to create an ItemID reference. 

So create a hidden menu and in that menu create a menu link to Category List with the folder used by the content type

You will see then that it will no longer go to the homepage.

9 years ago
3
Level 1

Thanks for taking the time to reply WebOne.

Unfortunately I don't think yours is a valid solution, especially there is a lot of content. I've spent quite a bit of time trying to solve this, and have realised that me set up was slightly wrong, as I have SH404SEF installed. Managed to find a tutorial on Youtube which helped with some of the issues between SEBLOD and SH404SEF. Have now got the url aliases working correctly, but still having the problem of articles appearing as part of the homepage.

Not sure exactly where the issue lies, whether in SEBLOD, SH404SEF or even elsewhere, but as a 10 year Drupal veteran, this is highly frustrating! Displaying pages shouldn't be this hard!

154 Posts
WebOne
9 years ago
2
Level 2

Turn off SEF URL's (disable SH404SEF), if necessary, and check your Itemid for the url - for home page it would normally be 101.

I have implemented the suggestion I gave you on various sites where I had a problem like this and it worked.

9 years ago
1
Level 3

Hi, many thanks. 

I did realise after I posted that hidden menus might solve the issue, but only partially in my case.

In the URL manager the urls for the articles that are linked to in the SEBLOD list all include the homepage's menu ID. From many hours of google searches there appears to be an issue with multi language joomla sites and menu item IDs, which is the problem I have. Except I don't have a multi language website!

And I just cannot achieve the url pattern with a hidden menu.


Hidden menu has alias of:

/hiddenmenualias

My menu item for the SEBLOD list has url alias:

/whats-on

I want this pattern for my event articles:

/seblodmenialias/categoryalias/ID-alias

But what I get with the hidden menu activated is

hiddenmenualias/seblodmenialias/categoryalias/ID-alias

It seems to me that a SEBLOD list menu item does not assign the menu item ID to the article urls properly. It's possible that turning off SH404SEF will allow me to change the alias options in the SEBLOD content type and list in order to achieve what I need, but I'm afraid to switch off SH404SEF because I've inherited a large website, and I don't want to lose any of the urls that already exist in the system.

9 years ago
0
Level 4

Okay I've now solved my url issues. It was purely having sh404sef enabled. I've disabled that and now I can set my url aliases in the SEBLOD lists and everything works okay. So there is an issue between SEBLOD and SH404SEF, for future reference.

Also sorted my page titles too. Will I miss sh404sef? Only time will tell, but all my url aliases look absolutely fine site-wide so far.

9 years ago
1
Level 1

This problem with articles appearing as part of homepage often occurs with me. How do you solve this? Normally i need to create an if statement to see if I'm in some view, like article or category. Has another way to do this task?

9 years ago
0
Level 2

I found that by uninstalling SH404SEF everything worked as usual, so that was my issue.

I do believe that there is similar issue with multi language sites, but that has nothing to do with SEBLOD. Try searching the Joomla forum, I think there is a solution there.

Get a VIP membership