0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

Adding itemdid to an URL

  • Adding itemdid to an URL

    Posted 15 years 8 months ago
    • Hello,

      I'm using blogCalendar Reloaded to display Joomla! content when clicking on a date in a mini calendar module.

      One problem: blogCalendar doesn’t get any menu Itemid and my modules won’t show!

      I modified the module with adding a new param: specific_itemid. So I have this new param in the DB and I can change it with the menu itemid I need for.

      The problem now is how to add this specif_itemid to days URLs construct by blogCalendar module.

      I think I find the code to modify but don’t known how to do:
      var $linklist; //this variable will be an array that contains all the links of the month 
       
          function getDateLink($day, $month, $year) //this function is called from getMonthView(month,year) to get the link of the given day 
          {                                          //if this function returns nothing (""), then getMonthView wont put a link on that day 
               
              $link = ""; 
              if(strlen($month)<2) 
              $month = '0'.$month; 
              if(strlen($day)<2) 
              $day = '0'.$day; 
           
              $date= $year . $month . $day; 
              if(isset($this->linklist[$date])){ 
              $link=$this->linklist[$date] . $Itemid;  //$this->linklist[$date] was set for every date in the foreach bucle at lines 50-83 
              } 
               
           return $link; 
          }

      Many thanks in advance for your help!
  • Re: Adding itemdid to an URL

    Posted 15 years 8 months ago
    • How about create an "External Link" type of Menu item, and put the link manually like:
      index.php?option=com_xxxxx&Itemid=99 ?

Time to create page: 0.063 seconds