Joomla K2 change read more link in a duplicated module - php

i am working with Joomla 2.5 and K2, in a template i bought.
1st.
i got a an accordion module that display several items into the main page, when i click on any of its elements it redirects me to: http://uxmalrecordscom.ipower.com/index.php/component/k2/item/452-the-dream-master which is correct. (.../index.php/component/k2/item/...)
2nd.
I set this same module to appear into another page called Discography, and when i click in any of the accordion elements it sends me to: http://uxmalrecordscom.ipower.com/index.php/discography/item/452-the-dream-master this URL is different than the first one and is causing me issues to display the content of the Item. (.../index.php/discography/item/...)
My querstion is how can i change the URL for the second case the "Read more" links to avoid display the content of the item in the same page or main menu seccion? or how to make the 2nd to have this kind of URL (.../index.php/component/k2/item/...) instad of (.../index.php/discography/item/...)
Note: Its the same module used on 2 different pages.
Thanks!

The way to solve this is to create a new Main Menu item called "Digital" then select as menu type = "K2 categories" and select the "Digital" category, this will cause all the K2 items listed under "Digital" displays on a different URL so now the url is (.../index.php/digital/item/...) instad of (.../index.php/discography/item/...) and is working awesome!
Hope this can help someone, this solved the problem to me.

Related

WordPress: Adding home page (=latest posts page) to navigation properly

I have a WordPress template displaying the latest posts on the home page (www.mydomain.bla) as it is the default setting in WordPress:
Now, I want to add a link referring to my home page in my navigation (with Appearance -> Menus). The only way I found to do this is by adding a custom link referring to my domain.
Here's my problem:
Even though the link itself does the job, one thing is not working. When navigating to a single post (like www.mydomain.bla/a-single-post) the needed classes indicating the parent link (current-post-ancestor current-menu-parent current-post-parent) do not appear to a custom link like they would to if I had a "Post page" which is not the Homepage.
Is there a way to add a link referring to my posts-showing homepage properly?
Thanks a lot for your help!
Create a new template named "Our blog" and paste the code for posts in this template. Now add a new page named "HOME", select OUR BLOG template and publish the page. Now go to the reading section under the setting tab and change the setting from your latest posts to a single page and select your HOME page.
Now you can add page rather than adding a custom link in the menu.

Woocommerce: Product category page using the wrong template

I have a WooCommerce store set up and I need to have it so that the store front shows the categories and then clicking through lists the products in that category. I have changed the store url to /soft-sell (it's a brand thing) and got it looping through the categories. The url for the click through page is /soft-sell/joe-b (for example), but the click through page is using the 'page-home.php' template and I can't find anything about why this is happening or how to change it. All I'm seeing on the category page is the home page. Anyone have any ideas?
Further info: I have declared woocommerce support in my functions
In case anyone finds this in the future, the solution is posted here
It's to do with the permalinks page having the incorrect custom structure, it needs to be /%product-category%/ not /%product_cat%/

Joomla url redirect to another domain

I have created 5 menu items with a menu from Joomla admin panel. Out of 5, 4 menu item should be redirected to the same domain and the 5th one should redirect to another domain url.
How to do that in Joomla admin panel? I am totally new to Joomla. The correct guidance is appreciable.
You can use External Link while Menu creation. So you need to follow below steps.
Go to Menu Manager.
Select New Menu.
Now you will see the Menu Item Type field , Click on Select Button.
Here You need to choose Click on System Link.
Now it will open this options, i.e Menu Heading, Menu Item Alias, Separator, URL.
Choose URL option.
Now you need to give external link in the field Link textbox.
Hope it will solve your problem :)

Wordpress: open page at bottom of parent page

I've been struggling with this for a couple of days now and can't think anymore.
I've created a template for a particular page for event menus and within that page I have a sub menu. This sub menu has event menus. For the purposes of example: Item 1, Item 2 and Item 3
These menu items are their own pages.
The submenu should open the pages in this template. Page layout example below:
Header
Main Nav
Banner Image
Content for Events
Event Menus (Item 1 | Item 2 | Item 3)
Menu Content
Footer
Menu Content switches out by clicking on the menu items, but the Content for Events stays static.
I currently have it working by adding a $_GET variable to the end of the links, but I've hard coded the menu. I don't want this because then the client can't make their own menu changes and edit their menus. (The amount of changes so far has been ridiculous.)
I've put the Event Menus and Menu Content into another nested loop, theoretically so it reacts inside the loop, though initial tests with this have failed.
I'd really like to keep the dynamic nature of Wordpress' menu system, but can't get this to work without hard coding.
At this point I'd be happy with direction on where to research.
Thanks.
If your HTML for the menu content is not too unwieldy, you could potentially drop each menu into a Wordpress Page, where the client could edit it. Simply create a Wordpress page for each menu, drop in your menu content, save it, and make a note of the Page's ID number.
Then, in your template, you can pull in the menu content by getting the Page with something like this:
<?php
// Menu One is content in Page ID # 14
$menu_one = get_post(14);
echo apply_filters('the_content', $menu_one->post_content);
?>
For your reference, get_post on Wordpress Codex: http://codex.wordpress.org/Function_Reference/get_post
On your actual page, what you could do instead of using a GET to grab each menu, is just go ahead and load all 3 menus on page load. Using CSS, you can hide the two you don't want at first and just show the default one. Then using some JavaScript events on the menu item links, you can show the clicked-on menu and hide the other two.
I've put a few notches in my oop and WP programming since asking this question. I think the better way to do this is a custom post type and change the wp_query object with parameters based on the link which can probably just be controlled by post ID. But it would still allow for a menu to be added to the "archive" page that controls the posts. Ultimately allowing client control of the menu, but still having a dynamic ability.

Joomla link to category list

Hi all, I have encountered a problem with Joomla.
There is a custom html module with link inside. Link goes to menu item, which is category list. As soon as I understand, I have to copy the following code from the link attribute of the menu item and paste it inside href.
index.php?option=com_content&view=category&id=12
But it doesn't work this way. The 404 Error Page appears.
How to make this link work properly?
Thank you.
Create a menu item linking to the category list, then when you preview it in the frontend, right click the menu item and click "Copy Link Location".
Then paste the link within the href="" and remove the http://example.com bit so it starts with index.php?com_content......
The reason why I say this is because the url you are using must be incorrect.
Hope this helps.

Categories