45 Posts
Sven
10 years ago
Topic

Hello,

I used the "Article (Related)" Field for my site. I have got some question about it:

- The URL to the related article is not nice: It is like "/myarticle?id=1:relatedarticle" instead of "/relatedarticle" or "/myarticle/relatedarticle". It does not make any difference, whether the field is in a fieldX or not.
- A related article can be linked from multiple sources. This creates different URLs for the same article. Is there a way to use canonical links to prevent "duplicate content"?

I use Joomla 3.3 and Seblod 3.3, Joomla SEF URLs and URL-Rewriting are enabled. Seblods SEF-Options are default (it does not make any difference, if I change the SEF value in Seblod Options)

Thank you in advance!

Sven

Get a VIP membership
10 years ago
1
Level 1

Hey Sven,

What is the desired path you want this article to be accessed through?

In Joomla, SEF usually requires the article to be either in a category tree
or assigned to a menu.

What is the scope, you want these related articles to be accessed in?
From what locations?

45 Posts
Sven
10 years ago
0
Level 2

Hi! Thanks for your reply! This is the current situation:


I have some hiking-tracks and some accomodations. A track can have multiple accomodations and different tracks can link to the same accomodation.
Currently I only want to link from the tracks to the accomodations, not the other way around.
All accomodation-articles are assigned to a category called "accomodations".


The URLs of the tracks are fine, they are all assigned to a menu item:


hikingtracks/hikingtrackalias


This is what the URLs to the accomodations (related article) look like now:


hikingtracks/hikingtrackalias?id=1:accomodationalias


I would prefer URLs like this. Without assigning the accomodations to a menu, if possible:


accomodations/accomodationalias


I tried to assign the accomodations to a menu item to check, if this would give me better URLs, but it did not change anything.


Sven

45 Posts
Sven
10 years ago
0
Level 1

OK, I could solve this:

  • First I created a list type and created a menu item linking to this list
  • In the seblod configuration I changed the Site/SEF-setting to "/alias (safe)"
  • in the settings of my related article field I clicked on the little blue "plus" icon right of the display settings. (display was set to "link")
  • There I changed the SEF URLs to "/alias (safe)" and chosed the correct menu item, which I created in the first step.

Sven

Get a VIP membership