Keyword

Re: \components\com_k2\views\itemlist\view.html.php

More
8 years 1 day ago #110592 by Metod
Hello all!

I'm pretty new to K2. I'm making a page for my girlfriend - I am almost complete, the only problem I have is this one. I want to add a blog to the page with K2 - I've made a category and one item, and now on the frontpage I'm getting this error: \components\com_k2\views\itemlist\view.html.php on line 570

And on this line I have:
// Pathway
		$pathway = $mainframe->getPathWay();
		if (!isset($menu->query['task']))
			$menu->query['task'] = '';
		if ($menu)
		{
			switch ($task)
			{
				case 'category' :
					if ($menu->query['task'] != 'category' || $menu->query['id'] != JRequest::getInt('id'))
						$pathway->addItem($title, '');
					break;
				case 'user' :
					if ($menu->query['task'] != 'user' || $menu->query['id'] != JRequest::getInt('id'))
						$pathway->addItem($title, '');
					break;

				case 'tag' :
					if ($menu->query['task'] != 'tag' || $menu->query['tag'] != JRequest::getVar('tag'))
						$pathway->addItem($title, '');
					break;

				case 'search' :
				case 'date' :
					$pathway->addItem($title, '');
					break;
			}
		}

Line 570 is:

if ($menu->query != 'user' || $menu->query != JRequest::getInt('id'))

Please help ;)

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

More
7 years 11 months ago #110593 by Metod
No one :'( ?

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

More
2 weeks 4 days ago #178053 by HAYNER MARQUES
Replied by HAYNER MARQUES on topic Re: \components\com_k2\views\itemlist\view.html.php
:`(
me too

No one :'( ?

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

  • Fotis
  • Fotis's Avatar
  • Online
  • Administrator
  • JoomlaWorks Support Team
More
2 weeks 2 days ago #178067 by Fotis
You have to be a little more specific compared to this vague 7-year old post...

You know, like provide the full error you're seeing...

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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


Powered by Kunena Forum