0
Welcome Guest! Login
0 items Join Now

calling a specific Itemid??

    • sfutterer's Avatar
    • sfutterer
    • Jr. Rocketeer
    • Posts: 24
    • Thanks: 0

    calling a specific Itemid??

    Posted 16 years 2 weeks ago
    • 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:
              foreach($this->_listmodule as $m){
                  $order++;
                  $secid = $m->id;
                  $mid[] = $secid;
                  //print_r($this->_sectionparams->toString());exit();
                  if(!isset($this->_listmenu[$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')"; 
                      $this->_db->setQuery($query);
                  
                      $this->_db->query();
                      
                      $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??

Time to create page: 0.065 seconds