- Posts: 11
COMMUNITY FORUM
Problem with duplicate paths
- Nico Benitez
-
Topic Author
- Offline
- New Member
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
-
- Offline
- Platinum Member
- Posts: 15920
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
-
Topic Author
- Offline
- New Member
- Posts: 11
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
-
- Offline
- Platinum Member
- Posts: 15920
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
-
Topic Author
- Offline
- New Member
- Posts: 11
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
-
- Offline
- Platinum Member
- Posts: 15920
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
-
Topic Author
- Offline
- New Member
- Posts: 11
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
-
- Offline
- Platinum Member
- Posts: 15920
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.