Keyword

[Problem] K2 component / item list in item error

  • Patrick
  • Patrick's Avatar Topic Author
  • Offline
  • New Member
More
11 years 4 months ago - 11 years 4 months ago #114081 by Patrick
Hello

I have a problem with a component K2 once to display the list of articles / news on the site.

I made ​​TOP MENU to link to a specific article in K2 named "News" and in that article, this component is displayed.

www.bikebydgoszcz.pl/aktualnosci

When I enter that in any sample article

www.bikebydgoszcz.pl/aktualnosci/test-artykul-k2

As you can see above the article (headline of the article) you can see a list of articles / news

How do I turn it off to in the articles do not show it?


At the below given link. K2 component is added to an article in Joomla, not in the component K2. It's okey.

www.bikebydgoszcz.pl/team

the difference is that he changed the URL (/ somponent/k2 /)

www.bikebydgoszcz.pl/component/k2/test-artykul-k2

Attachment not found




Best regards and im waiting for quick replay.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 4 months ago #114082 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: [Problem] K2 component / item list in item error
The module with the Id 97 renders on top of your item. This has to do with your template.

You need to alter your template's index.php and exclude the position in which the module renders from items.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Patrick
  • Patrick's Avatar Topic Author
  • Offline
  • New Member
More
11 years 4 months ago #114083 by Patrick
Hi.

Thank you for your answer. Could you explain little bit more how can i solve it ?
Should i paste here index.php my template ?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 4 months ago #114084 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: [Problem] K2 component / item list in item error
I don't think that would do it.

You might have to alter a couple of files depending on your template.

You need some variables (look if they are already defined in your template)
					
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Patrick
  • Patrick's Avatar Topic Author
  • Offline
  • New Member
More
11 years 4 months ago #114085 by Patrick
Where, which file. I cant find...

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 4 months ago #114086 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: [Problem] K2 component / item list in item error

You need to alter your template's index.php and exclude the position in which the module renders from items.


You can find which module position to hide from the backend. Just see in which position this module is rendered.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Patrick
  • Patrick's Avatar Topic Author
  • Offline
  • New Member
More
11 years 4 months ago #114087 by Patrick
Hi

I have user2 position in my template
wklej.org/id/1063825/

I don't know where type your code... Could you help me, navigate where ?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 4 months ago #114088 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: [Problem] K2 component / item list in item error
Insert the variables $option and $view at line 29 approx. and before the closing ?> tag.

Then go to the module position you want (user 2 in this case) and change
					
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Patrick
  • Patrick's Avatar Topic Author
  • Offline
  • New Member
More
11 years 4 months ago #114089 by Patrick
Hello

Still the same ...

www.bikebydgoszcz.pl/aktualnosci/test-artykul-k2
In article i can see items list on top


wklej.org/id/1064052/

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 4 months ago #114090 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: [Problem] K2 component / item list in item error

Insert the variables $option and $view at line 29 approx. and before the closing ?> tag.


Seems you forgot that part.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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