Problem with subfolder in Calendar

Nicole Foster's Avatar

Nicole Foster

21 Jan, 2015 04:50 PM

I downloaded the Calendar Site from the GitHub repo as an attempt to integrate it into our sites. I have not changed anything, but just simply imported it.

However, I need the calendar to function in a sub-folder. Though I have updated files within _cascade/formats as per the documentation, the calendar is still not appearing.

Am I missing something?

I have attached an exported version of my site.

  1. 1 Posted by Ryan Griffith on 21 Jan, 2015 06:59 PM

    Ryan Griffith's Avatar

    Hi Nicole,

    It looks as though there are a couple of additional paths you missed after moving the calendar, specifically within the /calendar/_cascade/formats/full calendar script Format:

    • Line 4: change the / to /calendar/
    • Line 37: change the path to this JS file to /calendar/_files/js/vendor/LAB.min.js

    Additionally, there is a known issue with the external sources feature, so you will want to go ahead and remove the sample Google Holidays source.

    I went ahead and made a couple of tweaks to the export you provided and attached it to this discussion if you would like to try importing my updated version to get you started.

    Please let me know if you have any questions.

    Thanks!

  2. 2 Posted by Nicole Foster on 23 Jan, 2015 02:07 PM

    Nicole Foster's Avatar

    Hi Ryan,

    Thank you so much for your help. I just need help once more.

    I have moved the calendar subfolder to one of our existing sites. I have brought the content types, metadata sets, data definitions, and config sets along with it. I have changed the index blocks and each of the items in the year folder to have the right content types. However, the events are still not showing and term listings seem to still be pulling from DSA-Calendar instead of the existing site.

    I would sincerely appreciate it if you could take a look. I have attached the exported version of the site.

  3. 3 Posted by Ryan Griffith on 23 Jan, 2015 04:44 PM

    Ryan Griffith's Avatar

    Hi Nicole,

    Not a problem at all, always happy to help out.

    I believe the issue with the events not appearing is stemming from the Format that generates the XML data that is consumed by the calendar, specifically the Format at /calendar/_cascade/formats/outputs/xml/events xml.

    The issue is the Index Block paired with this Format is picking up a page from your existing Site that has a block chooser with an index block chosen, there is a known defect for this behavior. This is causing issues when the Format tries to locate the page with @current, but the incorrect page has this attribute.

    To work around the issue, try editing this Format and modifying line 11 to the following:

    <xsl:variable name="folderPrefix">/calendar/</xsl:variable>
    

    and line 14 to the following:

    <xsl:variable name="currentPage" select="//system-page[@current and starts-with(path, $folderPrefix)]"/>
    

    Regarding the events from the other calendar appearing in the new location, if you take a look at the Events XML Configuration Set it appears all but the XML output are still referencing blocks and formats from the other Site. Try updating these references to point to the new Site and let me know if that helps.

    Please let me know if you have any questions.

    Thanks!

  4. 4 Posted by Ryan Griffith on 29 Jan, 2015 03:03 PM

    Ryan Griffith's Avatar

    Hi Nicole,

    Just wanted to follow up to see if you had a chance to view my recent comment. Did you have a chance to try out the proposed changes?

    Please let us know if you have any questions.

    Thanks.

  5. 5 Posted by Nicole Foster on 29 Jan, 2015 03:09 PM

    Nicole Foster's Avatar

    Hi Ryan,

    I apologize for not following up. Your solution worked.

    Thank you for your help.

  6. 6 Posted by Ryan Griffith on 29 Jan, 2015 03:16 PM

    Ryan Griffith's Avatar

    Not a problem at all, Nicole, thank you for following up. I am glad to hear the changes did the trick.

    I'm going to go ahead and close this discussion, please feel free to comment or reply to re-open if you have any additional questions.

    Have a great day!

  7. Ryan Griffith closed this discussion on 29 Jan, 2015 03:16 PM.

  8. Nicole Foster re-opened this discussion on 29 Jan, 2015 04:26 PM

  9. 7 Posted by Nicole Foster on 29 Jan, 2015 04:26 PM

    Nicole Foster's Avatar

    Hi Ryan,

    I apologize for re-opening this, but I just had one last question:

    Since my departments are in dire-need of a calendar system with external sources like Google Calendar, I decided to implement taocode's Google Calendar API fix, but it seems to be having issues with my subfolder set up.

    I have attached an export version of my site. If you have the time, could you look it over?

    Thanks,
    Nicole

  10. 8 Posted by Ryan Griffith on 04 Mar, 2015 08:54 PM

    Ryan Griffith's Avatar

    Hi Nicole,

    My apologies for such a delayed response to your discussion.

    I wanted to follow up to see if you were able to resolve the issue you were having with the Calendar being within a sub-folder. If not, please attach an export of your Calendar Site at this point so I can test with the latest iteration.

    Please let me know if you have any questions.

    Thanks!

  11. Ryan Griffith closed this discussion on 11 Mar, 2015 07:23 PM.

Discussions are closed to public comments.
If you need help with Cascade CMS please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

26 Aug, 2016 01:19 PM
25 Aug, 2016 03:02 PM
25 Aug, 2016 12:50 PM
24 Aug, 2016 08:43 PM
24 Aug, 2016 07:20 PM
21 Aug, 2016 01:20 PM