We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29756
    • 10 Posts
    I was able to style just the row that has the weekday names by altering the (calendar.inc.php) file just a bit and adding a class in the section labeled with comment "//-- Start heading weekday loop" and then changing one of the lines below to read
    'mxcMonthInnerDayClass' => 'mxcHeadingWeekday'
    where before it was just null.

    I was then able to use that class in my CSS theme file.
      • 34084 ☆ A M B ☆
      • 756 Posts
      Quote from: Theost at Oct 07, 2010, 09:37 AM

      I was able to style just the row that has the weekday names by altering the (calendar.inc.php) file just a bit and adding a class in the section labeled with comment "//-- Start heading weekday loop" and then changing one of the lines below to read
      'mxcMonthInnerDayClass' => 'mxcHeadingWeekday'
      where before it was just null.

      I was then able to use that class in my CSS theme file.

      yes, that’s the right place and again apologies for the delay. as you can see there are additional parameters that have yet to be fully expanded and that would be one of the dozen or so.

      cheers
        Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
        Visit CharlesMx.com for latest news and status updates.
        • 34084 ☆ A M B ☆
        • 756 Posts
        Quote from: delorean88 at Sep 27, 2010, 10:56 AM

        What am I missing?
        It works fine when I leave out the inner item template (lists the events using the template in event.list.event.html), when I add the inner item template, all the events just disappear, no trace of any of the template code, all I get is the empty container ul.

        Can someone tell me what I am doing wrong?

        Thank you!

        -------------------------------------------------------
        Other issue:

        Is there any way to just stop the snippet from triggering the javascript to be added to the header? I still need the AjaxPageId to specify the event page as far as I can tell...but the JS/AJAX is not working for me and I can’t figure it out, and it’s just giving me these errors:

        MOOdalBox.init.bind is not a function Line 7
        Class is not defined Line 1
        window.addEvent is not a function Line 59


        Thanks again... lipsrsealed


        Ah, thanks for the report it’s a bug in the code where an extra space was introduced, if you do a quick Find for any of these lines:

        //-- check for event list template over-ride chunk
        if(!empty($param['mxcTplEventListItemWrap'])){
            $events .= $modx->parseChunk($param['mxcTplEventListItemWrap '], $ar_eventDetail, '[+', '+]');
        


        Note the extra space after the last line, starting with "$events" where the first occurance of "mxcTplEventListItemWrap" has and extra space at the end; simply remove that space until I get a new version loaded and that will solve your problem.

        Corrected Version:
        //-- check for event list template over-ride chunk
        if(!empty($param['mxcTplEventListItemWrap'])){
            $events .= $modx->parseChunk($param['mxcTplEventListItemWrap'], $ar_eventDetail, '[+', '+]');
        


        let me know if you still have issues with it.

        Now your second issue with JS you should already have MooTools being loaded to the page to make this work if it’s not already, which is the most common cause of this error. If you can send me your URL in a private message I can take a closer look.

        Cheers
          Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
          Visit CharlesMx.com for latest news and status updates.
          • 34084 ☆ A M B ☆
          • 756 Posts
          @Theost

          Quote from: Theost at Sep 27, 2010, 10:24 AM

          I actually created my own theme and tried to modify "month.inner.day.base.html" to style just the day name row, but what I found was that it also changed the style on the filler day cells that come before the 1st of the month and after the last. If I am missing something obvious on how to target that row, please let me know. If not, could you add an "mxc" class for just that row, or could you output with <th> instead of <tr>?

          Thanks!


          Very valid point, it’s not as easy as visioned however you can make a quick edit to the "includes/calendar.inc.php" file to add a CSS ID or Class name to the row. Search for the following, should be around line 218:

              
          //-- Add calendar heading row
          
              $rowArr = array(
          
                  'mxcMonthInnerRowID' => (isset($mxcMonthInnerRowID) ? $mxcMonthInnerRowID : ''),
          
                  'mxcMonthInnerRowClass' => (isset($mxcMonthInnerRowClass) ? $mxcMonthInnerRowClass : ''),
          
                  'mxcMonthInnerRowDays' => $_mxcCalHeadings
          
              );


          Then you can hard code your CSS ID for the row or Row CSS Class name to make it so you can target them through CSS.

          Example:
              //-- Add calendar heading row
          
              $rowArr = array(
          
                  'mxcMonthInnerRowID' => 'YourCssIdName ' . (isset($mxcMonthInnerRowID) ? $mxcMonthInnerRowID : ''),
          
                  'mxcMonthInnerRowClass' => 'YourCssClassName ' . (isset($mxcMonthInnerRowClass) ? $mxcMonthInnerRowClass : ''),
          
                  'mxcMonthInnerRowDays' => $_mxcCalHeadings
          
              );
          


          Let me know if you have any further issues getting this solved. I will also make edits in the next release to target just that heading row.

          Cheers
            Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
            Visit CharlesMx.com for latest news and status updates.
            • 27444 ☆ A M B ☆
            • 117 Posts
            Hi,

            I would like to set the mxcalendar to display the calendar with only the event of the day and the rest of the days which have an event display the number in a different colour.

            So if I have three events: one on the 18th, one on the 21st and one on the 26th of the month.

            The numbers 18, 21 and 26 show in red (the rest of the numbers automatically use the default black), while that if today is the 21st only the black box with the event title above 21 is displayed (and 18 and 26 do not have any events displaying).

            What modifications do I have to carry out?
              Steven James McLean
              Tech Lead
              springbokagency.com
              • 34084 ☆ A M B ☆
              • 756 Posts
              I think I understand, I can make some edita for you later today if that works.

              Cheers
                Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
                Visit CharlesMx.com for latest news and status updates.
                • 27444 ☆ A M B ☆
                • 117 Posts
                Perhaps to get the event of today only I just have to add a WHERE date of event = today’s date, so that I filter out all events apart from that of today.

                I have been searching all over the documents, maybe you can indicate in which document I can find the SQL statement getting the events from the database into the calendar?
                  Steven James McLean
                  Tech Lead
                  springbokagency.com
                  • 29756
                  • 10 Posts
                  Thanks for feedback @charless. My calendar is working well right now, so thanks again for the great module. I was able to fix the date picker issue as well. I may try to integrate the code you posted to handle the styling in the prescribed way.

                  Do you have an ETA for the next Evo release?
                    • 34084 ☆ A M B ☆
                    • 756 Posts
                    Next Evo release is expected to be next week, sorry for the delay.

                    cheers
                      Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
                      Visit CharlesMx.com for latest news and status updates.
                      • 27444 ☆ A M B ☆
                      • 117 Posts
                      Hey Charless ... could you help me out please with my requests Smiley ?

                      Thanks!
                        Steven James McLean
                        Tech Lead
                        springbokagency.com