Monday, February 19, 2018

Who's Online


A program that produces
incorrect results twice as fast
is infinitely slower.

Welcome, Guest
Username: Password: Remember me

TOPIC: calling a specific Itemid??

calling a specific Itemid?? 8 years 9 months ago #74

  • sfutterer
  • sfutterer's Avatar
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
I'm making some site specific edits to a mambot plugin. I would like to force an itemid to be = to \"Itemid=1057\"

The code calling the item is is:

[code:1]foreach($this->_listmodule as $m){
$secid = $m->id;
$mid[] = $secid;
$query = \"INSERT INTO #__menu (`menutype`, `name`, `link`, `type`, `published`, `parent`, `componentid`, `sublevel`, `ordering`, `checked_out`, `checked_out_time`, `pollid`, `browserNav`, `access`, `utaccess`, `params`) VALUES \";
$query .= \"('{$this->_menutype}', '\".$m->title.\"', 'index.php?option=com_alphacontent&section=\".$secid.\"', 'content_blog_section', \".$m->published.\", 0, $secid, 0, $order, 0, '0000-00-00 00:00:00', 0, 0, 0, 3, '\".$this->_sectionparams->toString().$this->_gparams->toString().\"\nsectionid=$secid')\";


$insertid = $this->_db->insertid();
$listcategories = $this->getCategories($secid);


This section of code builds a menu link based on alphacontent component/section link structure. My question is how do I edit the $insertid = $this->_db->insertid(); line to call Itemid=1057??
The administrator has disabled public write access.
Moderators: ElectronicMother
Powered by Kunena Forum