|
|
Forums » List all forums » » Forum: General Discussion » » » Thread: Can Localendar open a blank rectangle instead of a normal calendar? » » » » Post: Re: Can Localendar open a blank rectangle instead of a normal calendar? |
| Posted by support at Jan 29, 2021, 9:48:11 PM |
|
Re: Can Localendar open a blank rectangle instead of a normal calendar? Well, it wasn't possible until about 10 minutes ago, but since you asked, we did something for you Here's the solution we cooked up. Let's talk about where the content for one of these "Announcements" (that's what we're calling them) will come from. It makes sense to use localendar's existing Events as a template. Create a public event on your calendar (the date doesn't matter - it can be far in the past, the future, whatever). The title and time don't matter either. All that users will see is what is in the Event Description. You can use custom formatting, include images, etc. Save the event, and make sure it's Public. Now, go to your public calendar view and click on the event. It will open in a pop-up window. This window is not exactly what you want. It has the title, the time, the export buttons, the Close button, etc. But it's close! Copy the url of that pop-up window to your clipboard. It will look something like this: http://localendar.com/event?DAM=PublishedEvent&m=605747&event_id=2&calendar_id=605747&more_info=N&export_date=Jan%2029,%202021&category=1 Now, using Notepad or some other editor, change the word PublishedEvent to PublishedAnnouncement (Optional, you can also delete everything from &more_info to the end) Now you have a url that looks like this: http://localendar.com/event?DAM=PublishedAnnouncement&m=605747&event_id=2&calendar_id=605747 Try out that url! You will see it displays a generic page with just the Event Description (that's where you'll put the text you want on your site) Getting this content in a box on your site is very easy if your site allows you to include custom html or an iframe. You basically want to put something like this on your page: <iframe src="//localendar.com/event?DAM=PublishedAnnouncement&m=605747&event_id=2&calendar_id=605747" height="200" width="300" ></iframe> Note that in the src attribute above I just specified //localendar.com instead of http://localendar.com or https://localendar.com. That will make sure the content displays correctly depending on whether your users access your site via http or https. That's it! That content will now be displayed on your site. You can update it through localendar's Event Editor and the changes will appear automatically. You won't have to update your website manually. In the future we might provide an easier way to generate the Announcements url, but that's not bad for a Friday ![]() ---------------------------------------- Marc Higgins Support Associate, localendar.com Follow us on Twitter! http://www.twitter.com/localendar_news |
Help! | Cobranding | Legal | Privacy Policy | About localendar.com | Contact Us |