Keyword

cannot find page in k2/joomla

  • robert lodi
  • robert lodi's Avatar Topic Author
  • Offline
  • New Member
More
10 years 11 months ago #119240 by robert lodi
cannot find page in k2/joomla was created by robert lodi
Hi -

i have a client using joomla and k2. we've been working on the site for a year so we're not new to how it works. But - we have a page that we can see in the browser, but cannot find in the joomla/k2 back end.

is there a way to search everything - not just specific fields?

i tried clearing the joomla cache just in case that would help, but no.

i cannot find the page in k2 items, in any menu, or connected to any module.

any other ideas for places to look?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 11 months ago #119241 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: cannot find page in k2/joomla
Hello lodi,

Make sure it;s not a forgotten com_content article. If its not get the item's id from the url.
Open the administration area and edit a K2 item, anything will do. then c/p that id to them id part of the administration url ( change the &cid=xx part).

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

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

  • robert lodi
  • robert lodi's Avatar Topic Author
  • Offline
  • New Member
More
10 years 11 months ago #119242 by robert lodi
Replied by robert lodi on topic Re: cannot find page in k2/joomla
Hello Krikor and thanks for the reply. Sadly that didn't work. There isn't a ID in the URL. I tried it anyway- and K2 wanted to make a new item.

Maybe we're doing URL rewriting of some sort. I did not set this site up - so I dont' know what they did. But our URLs are free of query strings.

Is there another way I can get the CID?

thanks very much.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 11 months ago #119243 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: cannot find page in k2/joomla
The cid is the part you need to change in the administrator area.

The id you need to find is can echo these variables somewhere in your template to show it
$id 		= JRequest::getInt('id');
$itemid 	= JRequest::getInt('Itemid');

The latter is the menu item id

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

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

  • robert lodi
  • robert lodi's Avatar Topic Author
  • Offline
  • New Member
More
10 years 11 months ago #119244 by robert lodi
Replied by robert lodi on topic Re: cannot find page in k2/joomla
Hello again. so I tried that - i got the code on the page and tried to echo the ID numbers. However all I got no matter which page I looked at was 0 and 0. which can't be right.

I got 0/0 on the home page and thought, maybe that's ID 0 for the home page. but it was the same on every other page. So either I did it wrong or this particular Joomla system is weird.

I implemented it this way and put it after the <body> tag on the template.
<?php
$id = JRequest::getInt('Id');
$itemid = JRequest::getInt('itemid');
echo $id.'<br />';
echo $itemid.'<br />';
?>

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 11 months ago #119245 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: cannot find page in k2/joomla
use the following snippet
if($id) $var = ucfirst($id);

the echo your variables

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

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


Powered by Kunena Forum