![]() |
Forums » List all forums » » Forum: Discussion Forums » » » Thread: Categories once given with URL string won't then reset to view all |
Posted by esthouston01 at Jul 18, 2019, 10:46:30 PM |
Categories once given with URL string won't then reset to view all When I use a month iframe calendar with categories in the URL, as expected it will show the month calendar with only events in that category. But after doing that, when I use the URL without the categories in the string, it still loads only the events for that category. In other words the category filters are not clearing. If these are accessed from a webpage/browser in this order: <iframe src="//localendar.com/public/useracct?categories=118" height=600 width=700 marginheight=0 marginwidth=0 scrolling=no frameborder=0 border=0></iframe> then <iframe src="//localendar.com/public/useracct" height=600 width=700 marginheight=0 marginwidth=0 scrolling=no frameborder=0 border=0></iframe> The second url should show all categories - but is only showing events for category 118 (the one in the first url). The category persists. Is there a "?categories=showall" parameter or something that will fix this issue other than manually closing the browser and then reopening it? The only (bad) work-around I can think of is to pass it all of the categories in the URL. That means, I'll have to update my link every time I add a new category. |
Posted by support at Jul 19, 2019, 2:05:03 AM |
Re: Categories once given with URL string won't then reset to view all Can you send a link to the page (or pages) where you are publishing your calendar? If I visit your site with this url: http://localendar.com/public/esthouston01?categories=118 I see 1 category and then visit with no filter: http://localendar.com/public/esthouston01 I see everything. A published calendar should work the same way. But if you are putting both iframes on the same page, there is an extremely good chance that parts of each calendar are going to be loaded at the same time (even though they are in iframes, they are seen as a single user session) and you are probably going to see a problem like what you mention above. There are ways around this (which I won't go into... yet) . The most basic thing would be to load each iframe one at a time with Javascript so there are no conflicts. But I'll wait to see your response first to confirm you have 2 on the same page. ---------------------------------------- Marc Higgins Support Associate, localendar.com Follow us on Twitter! http://www.twitter.com/localendar_news |
Posted by esthouston01 at Jul 19, 2019, 3:21:32 PM | ||
Re: Categories once given with URL string won't then reset to view all
|
Posted by esthouston01 at Jul 19, 2019, 3:43:45 PM |
Re: Categories once given with URL string won't then reset to view all Sure, a bit of history first - I first noticed this issue when I went to use the Publish feature and selected custom categories. After viewing the page with selected categories, when I hit the reset button, it wouldn't clear out the categories - and the category drop down only included that subset of previously selected custom categories, not the full list. I actually had to close the browser tab and then re navigate to the publish page to get it to show all. So we added the iframe links to web pages and I tested the links in two different computers / browsers. Same problem. So here's an example: (Only two links work so follow these steps) 1: Goto this starting page, which will have an iframe that loads all events for all categories: https://www.excelsolutionsteam.com/schedule/training_schedule_houtx_BU.html 2. Press the [Excel & VBA] button to load a second page with selected categories, with the following iframe embedded in the html: <iframe src="https://www.localendar.com/public/esthouston01?categories=118%2C106%2C102%2C101%2C100%2C119%2C120" height=900 width=700 marginheight=0 marginwidth=0 scrolling=no frameborder=0 border=0></iframe> 3. Press the [Select All] button to navigate to the main page (step1) which has the iframe with no categories in the url. It should show everything but it doesn't, it shows only the last categories passed in the url. This "filtered" state will persist as well, so to actually get it to show all categories again, I actually have to close the browser and then re-navigate back to the page. |
Posted by support at Jul 19, 2019, 4:24:44 PM |
Re: Categories once given with URL string won't then reset to view all It looks to me like the link target on the "Select All" button is just "#", so why would anything change? Also, a couple other tips that might correct this issue * It might be good to switch to the Responsive Iframe style so your calendars don't get clipped (also no need to have <ilayer> in there anymore * You might try disabling the custom month-transitions, because not all calendar features are supported on this view style ---------------------------------------- Marc Higgins Support Associate, localendar.com Follow us on Twitter! http://www.twitter.com/localendar_news |
Posted by esthouston01 at Jul 19, 2019, 6:44:10 PM | ||||
Re: Categories once given with URL string won't then reset to view all
For testing, there are two pages, each with a different iframe URL, one has no categories, the other one has selected categories. So no, the [View All] button target *from* the Excel & VBA page is not just "#", it actually calls and loads the page that has the iframe URL without categories. That is why it should change. We should be getting the entire calendar.
Thanks for the info. I've tested those, but they don't affect how it works. The issue isn't my pages, it's that localendar doesn't properly release the categories when the default url (no categories) is called after previously calling a url with selected categories. Here's a rushed sloppy video of the issue - using your own website. That's where I first saw the problem. Now keep in mind, it doesn't matter if it's your website or mine or my coworkers. Localendar is just not clearing the category selection cache properly. Heres my Link: my_category_issue **forgive the sloppy spelling and text, it's not production worthy but it gets the points across** |
Posted by support at Jul 20, 2019, 3:36:19 AM |
Re: Categories once given with URL string won't then reset to view all OK - I totally misunderstood what you were trying to explain. The category filter is persisted so that if a user un/checks a category when the legend is being used, that filter persists if they switch to different months. Since you are not using the legend but want to re-populate the calendar with a different filtered style (or none at all), you should not link to the unfiltered calendar as http://localendar.com/public/esthouston01 (which will retain the filter) but as http://localendar.com/public/esthouston01?categories=all (which will reset it) ---------------------------------------- Marc Higgins Support Associate, localendar.com Follow us on Twitter! http://www.twitter.com/localendar_news |
Posted by esthouston01 at Jul 22, 2019, 8:04:53 PM |
Re: Categories once given with URL string won't then reset to view all Thanks Marc, On a whim last week, I tried several guesses "?categories=all,null,-1,viewall,etc" , plugging in words or values that I hoped would take care of it, and I actually thought I had tried that very one. Obviously not though, anyway I'll try your syntax below and let you know how it goes. |
Help! | Cobranding | Legal | Privacy Policy | About localendar.com | Contact Us |