Keyword

Problem with duplicate paths

  • Nico Benitez
  • Nico Benitez's Avatar Topic Author
  • Offline
  • New Member
More
11 years 11 months ago #114735 by Nico Benitez
Problem with duplicate paths was created by Nico Benitez
Hello!

I've been using Joomla and K2 for my 4 latest projects and i must say i'm happy with the outcome but now i've come to a problem i can't solve.

Scenario:

My website: www.multiaventuranorte.es

The problem:

I have a blog within the page www.multiaventuranorte.es/blog where im going to upload posts about different topics, all of them belong to categories that are subcategories of my "Blog" category and all have the same parameters which i set on the blog category.

The problem is that on the homepage www.multiaventuranorte.es i would like lo display the 3 latest posts from the blog thats why i set the homepage to be a "K2 category blog" and filled the rest with modules, now the blog posts show at the end of the homepage.

I did this and apparently functions well but i noticed this difference that is a let down in so many ways:

The urls of the blog posts accesed by the blog have this format(which is the one i want)

www.multiaventuranorte.es/blog/item/118-bienvenidos-a-aventura-norte

While the urls when you acces through the homepage have this look:

www.multiaventuranorte.es/component/k2/item/118-bienvenidos-a-aventura-norte

How should i place the 3 latests posts on my homepage and not making them point to the second url but to the first one?

Thanks in advance, keep up the good work.

Nico.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 11 months ago #114736 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Problem with duplicate paths
Hello Automata,

I think the problem lies with your menu structure. You had two seperate menu items pointing to the blog category.

You have two options to achieve what you want.

You can either use a module on the frontpage to display your blog post and change your menu item to Featured Articles (as long as you do not have Joomla! articles), or

Use your homepage as it intended (K2 Category menu item) and make the blog menu item an alias of your homepage.

Please Log in or Create an account to join the conversation.

  • Nico Benitez
  • Nico Benitez's Avatar Topic Author
  • Offline
  • New Member
More
11 years 11 months ago #114737 by Nico Benitez
Replied by Nico Benitez on topic Re: Problem with duplicate paths
Hello Krikor!

Thanks for the quick reply!

I have just tried with a module in the home page but the outcome happens to be the same as if the home is set to k2 category blog(as it was before).. Is there a way to make the latest 3 blog posts from the blog been shown in the homepage but with the paths of the blog section? The truth is that the path of the blog section is the one i'd preffer to be indexed.

Thanks!

Nico.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 11 months ago #114738 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Problem with duplicate paths
As I told you the issue is probably a menu conflict.

You have to follow the instructions on my previous post to achieve what you want.

Please Log in or Create an account to join the conversation.

  • Nico Benitez
  • Nico Benitez's Avatar Topic Author
  • Offline
  • New Member
More
11 years 11 months ago #114739 by Nico Benitez
Replied by Nico Benitez on topic Re: Problem with duplicate paths
Hello again Krikor!!

I finally gave up and admitting ill have to have duplicate URLs' the good part is that after 3 posts all posts will be never accesible from the home and that may prevent from indexing them

Now id like to add 2 modules to this page(the one accessed from home)

www.multiaventuranorte.es/component/k2/item/118-bienvenidos-a-aventura-norte

As shown on this page:

www.multiaventuranorte.es/blog/item/118-bienvenidos-a-aventura-norte

How can i assign modules to this k2/item page ??

Thanks,

Nico.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 11 months ago #114740 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Problem with duplicate paths
Hello Automata,

There is a conflict in your menus and you should map all of your categories in menu items.
If you don't do that you will get URLs and conflicts like that.

If you want to publish a menu item in a specific item you can either load it using the {loadposition} shorcode in your editor or assign this K2 item to a menu item.

Please Log in or Create an account to join the conversation.

  • Nico Benitez
  • Nico Benitez's Avatar Topic Author
  • Offline
  • New Member
More
11 years 11 months ago #114741 by Nico Benitez
Replied by Nico Benitez on topic Re: Problem with duplicate paths
Hello Krikor!

First you said i "probably" have a menu conflict and now you say "there is" a menu conflict , i wonder what do you call a "menu conflict" as we might have different points of wiev on this and i really wish to understand what you are telling me.

I do have my blog posts under a menu item called "Blog" but i find it very akward that i can't show the posts from my blog category in a module or at another page keeping the correct paths when clicked. Its a common standard in websites to use modules to advertise other content on the website but whithout duplicating the paths.

Also im wondering how could i assign a module to this path www.multiaventuranorte.es/component/k2/item/ specially whithout adding code to my articles which may result in diferent behaviour as i have now 2 different paths and one is showing the modules i want while the other is not.

Thanks in advance.

Nico.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 11 months ago #114742 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Problem with duplicate paths
Nico,

Hello Nico,

I will explain it one more time.

I think the problem lies with your menu structure. You had two seperate menu items pointing to the blog category.


You cannot have two menu items pointing to the same category.

I have also posted my proposed solution

You can either use a module on the frontpage to display your blog post and change your menu item to Featured Articles (as long as you do not have Joomla! articles), or

Use your homepage as it intended (K2 Category menu item) and make the blog menu item an alias of your homepage.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum