Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7658307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:11:06+00:00 2026-05-31T13:11:06+00:00

I have implemented the 2 week view outlined here and I was wondering if

  • 0

I have implemented the 2 week view outlined here and I was wondering if someone can tell me how/where to change the prev/next buttons to move the calendar only 2 weeks instead of to the next month? Not sure where to update the fullcalendar.js.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T13:11:07+00:00Added an answer on May 31, 2026 at 1:11 pm

    Figured it out. The problem was that the solution i used was based off the month view when it probably should have been based off of the week view.

    first, make sure all the information for the view is listed in the defualts

    // time formats
    titleFormat: {
        month: 'MMMM yyyy',
        twoweek: "MMM d[ yyyy]{ '—'[ MMM] d yyyy}",
        week: "MMM d[ yyyy]{ '—'[ MMM] d yyyy}",
        day: 'dddd, MMM d, yyyy'
    },
    columnFormat: {
        month: 'ddd',
        twoweek: 'ddd',
        week: 'ddd M/d',
        day: 'dddd M/d'
    },
    

    .

    buttonText: {
        prev: ' ◄ ',
        next: ' ► ',
        prevYear: ' << ',
        nextYear: ' >> ',
        today: 'today',
        month: 'month',
        twoweek: '2 week',
        week: 'week',
        day: 'day',
        resourceDay: 'designers'
    },
    

    and here is my code for the 2 week view

    fcViews.twoweek = TwoWeeksView;
    
    function TwoWeeksView(element, calendar) {
    var t = this;
    
    // exports
    t.render = render;
    
    
    // imports
    BasicView.call(t, element, calendar, 'twoweek');
    var opt = t.opt;
    var renderBasic = t.renderBasic;
    var formatDates = calendar.formatDates;
    
    
    
    function render(date, delta) {
        if (delta) {
            addDays(date, delta*7);
        }
        var start = addDays(cloneDate(date), -((date.getDay() - opt('firstDay') + 7) % 7));
        var end = addDays(cloneDate(start), 7*2);
        var visStart = cloneDate(start);
        var visEnd = cloneDate(end);
        var weekends = opt('weekends');
        if (!weekends) {
            skipWeekend(visStart);
            skipWeekend(visEnd, -1, true);
        }
    
        t.title = formatDates(
            visStart, 
            addDays(cloneDate(visEnd), -1), 
            opt('titleFormat')
        );
        t.start = start;
        t.end = end;
        t.visStart = visStart;
        t.visEnd = visEnd;
        renderBasic(2, 2, weekends ? 7 : 5, true);
    }
    

    }

    the key difference here is the last line: renderBasic(2,2,weekends ? 7 : 5, true);

    if you dont update the information about the view in defaults, a parameter in formatdates is undefined and there are issues. There are some differences between the week view and the month view that make basing the two week view of the week view instead better. It becomes somewhat of a mix between the two. Hope this helps anyone who is looking for the full 2 week view fix.

    call like this:

     $('#calendar').fullCalendar({
            header: {
                left:'prev, next',
                center: 'title',
                right: 'twoweek'
            },
            defaultView: 'twoweek',
            weekMode:'fixed'
      });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have implemented one application in android which uses epublib to view .epub files.
I have implemented a simple D3.js line chart that can be zoomed and panned.
is almost a week that i can't fix a brain painful problem: I have
I have implemented the usual examples of accessing the camera roll on ipad and
I have implemented Twitter4J in my Android application and it's works fine. But after
I have implemented a jquery ui autocomplete with data from database. Right now what
I have implemented SSO authentication using the sourceforge spnego project . This is my
I have implemented Solr search in one of my .net application. Everything working fine
I have implemented Client Authentication to my Tomcat Server. I have distributed client X509
I have implemented a Single Sign on function using Janrain. It outputs this data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.