Sitecore Calendar Module 5.2 sample - calendar

I am using Sitecore Calendar Module 5.2 for Sitecore 6.5. I have been able to get it up and running. I am looking for some programmatic samples on how to read and display calendar events on a page. I haven't found any examples of this on Sitecore SDN or anywhere else either.
Thanks

I assume you mean version 2.4 which is for Sitecore 6.5. This module is designed to be more of a plug-n-play solution to a event calendars with Sitecore. You likely won't find any documentation on how to programatically do what you need because the module was built so you don't need to do that.
If you still want to write your own code to do these tasks, I recommend you take the following approaches:
Decompile the DLLs from the module and review the source code for the presentation components to see how they work. Based on that, you can write your own code as needed. If you don't have a decompiler, ILSpy is a great free one.
Or, just query the content tree for the event items using Sitecore Query or Fast Query based on the architecture that this module enforces for these new templates.

Related

With MicrosoftGraph SDK how do you add extension property to user

There is a huge problem with documentation for Microsoft Graph where only set up of initial project is described. Where could I check documentation with examples of how to use Microsoft Graph SDK for example for adding extension property to user or group?
AFAIK, Microsoft provides two ways to add custom data to resources using extensions, open extensions and schema extensions.
Open extensions is the recommended solution for most scenarios involving storing and accessing custom data. If, however, you need to access custom data for Outlook MAPI properties that are not already exposed through the Microsoft Graph API metadata, you can use extended properties and its REST API. You can verify which properties the metadata exposes at https://graph.microsoft.com/v1.0/$metadata.
More detail about the difference about these two scenarios you can refer this link.
And based on the test, I am not able to find the corresponding method for create an open extensions or sechma extensions using the latest version of Microsoft Graph SDK. I suggest that you using the REST as a workaround. And for the detailed of request, you can follow the links below:
Add custom data to users using open extensions
Add custom data to groups using schema extensions
We are busy adding open and schema extension functionality to the SDKs, and we'll come back to this thread when the SDKs are updated. You can also find SDK info and instructions and basic documentation from here. In general we only fully document our REST APIs - the SDKs follow a very similar addressing pattern to the REST APIs, and individual SDK documentation may call out particular scenarios like how to page through collections using the SDK.
We'd love to hear more from you on your documentation and SDK requirements, if this doesn't meet your needs.
(Also please ignore the highlighted text in the last answer - this text needs to be fixed and is more targeted to the Outlook resources like messages and events.)
Hope this helps,

Creating Custom data type in umbraco 7.3 without using AngularJS

I want to create a custom data type in Umbraco 7.3 without using AngularJS but I cannot do it because I don't have any knowledge about AngularJs.
I googled and saw that all of examples wrote by using AngularJs.
Is there any way to create a custom data type in Umbraco 7.3 without using Angular?
If not, please introduce some good sources to learning Angular that should be simple and practical.
No I don't believe it is possible since the interface is all in Angular but I could be wrong. Certainly the method that the team would prefer us to use is the Angular method. I have to be honest it was a little bit of a leap for me too creating my first editor but it's really not that difficult, trust me.
There is a good thread in the Umbraco form here: https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/46925-Custom-datatype-in-umbraco-701
And I would advise downloading the Umbraco source as the best examples are in the source itself.
If I remember correctly, you can generate custom property editors using just C# classes and class attributes. Or you can extend existing data types and tweak them. The only problem is you're limited to lists and displaying existing JSON feeds - most of which is best done using extensions like uComponents and NuPickers.
Have you viewed Nibble's blog? He's the primary source for most things data type related.
For your situation, the nuPickers dot net extensions sounds best. There's examples on this link.

In Drupal should I use content-types or database abstraction layer?

I posted a question on the Drupal forum about whether I should build my database in Drupal using content-types or the database abstraction layer and schema module: [here][1]
Any advice would be greatly appreciated.
[1]: https://drupal.stackexchange.com/questions/98020/should-i-use-content-types-or-database-abstraction-layer
I'd recommend using content types.
For a PHP coder, sometimes using the Drupal User Interface to build things feels non-intuitive, but in the long run you're going to benefit a lot from doing things "the drupal way.
Once you reverse engineer your need into a content type and all it's associated fields, install the modules that provide those field types and set things up, you'll start to see the benefits.
Validation on all the data-entry froms will already be done for you.
Multiple display modes are available for your data (email addresses can be shown with or without mailto: links, images can be shown using any of Drupal's image styles)
Integration with other Drupal modules already exists, and will be supported (almost anything built with fields is available to views)
By writing your own schema you'll need to handle all these things yourself (and more), and not just once, but you'll need to maintain all that custom code over time.
Learn to leverage the community and all the great work that's been done already, you'll save yourself time in the long run :)
What i see you are going to have shop site.
You may tray this:
https://drupal.org/project/commerce_kickstart
, i've found it usefull once. It's drupal distribution with nice themed shop rady to use straight forward.
And of course do it with content type + views + entity reference modules.
Here is a link to a comment that answers the question I asked. It backs up what arpitr outlined in their answer on the orignal post on the drupal forum, whose answer is also in agreement with jenlampton's suggestion above.
https://drupal.org/comment/7848011#comment-7848011
I will implement my system using node entities until the need arises to build a custom entity (if it ever does).
The top answer in this forum give a good way to evaluate whether to use nodes or custom build an entity:
https://drupal.stackexchange.com/questions/22586/when-is-it-appropriate-to-create-an-entity-versus-just-adding-a-new-content-type

How are you integrating help into your WPF application. Any recommendations?

The question says it all really. If you are writing a WPF application, how are you integrating the application help? What is the state of play in mid-2013?
It seems that there is no clear answer to this from an afternoon with a search engine, but several options:
Write your own fancy tooltip based help (but where are you getting your data from?)
Use .CHM files and the Windows Forms help system (seems archaic to me).
Use Microsoft Help Viewer 1.X or Microsoft Help 2.0.
There is some confusion as to which is more recent / approved of by MS. It appear Help Viewer 1.X might be the recommended option over Microsoft Help 2.0. It doesn't help that the names are so similar...
What is the status of 2.0? Should we use it? Was it ever fully deployed?
Use a third-party product to author your help files and link to them somehow - DocToHelp/NetHelp, NetAdvantage on-line help, etc...
Furthermore, what XAML based mark-up / attributes are you using to provide the necessary context? What is the recommended method?
It seems surprising there is no clear path for supporting application based help in WPF.
My current preference is to use a third party help authorizing system to generate HTML based help.
We then use a WebBrowser to display this help as needed. The authoring system we use makes it fairly easy to extract out a single page from the main help (each "topic" is a single HTML file, and can be included with full contents or not as desired).
Granted, this definitely felt like a bit of a nasty hack at first - but once we wrote the basic plumbing (some attached properties for xaml to specify attributes for context location and add behavior to trigger help, etc), it's fairly clean.
One very nice advantage to this approach, however, is a single help system build works perfectly in all contexts - we can include the documentation online, expose it locally for use in a browser, and use it with context from within our application directly.

ASP.NET MVC4 Query By Example Open Source Suggestions

We're currently building a new application and part of the functionality we want to include for users is the ability to build ad-hoc querys through the web UI for reporting purposes.
e.g. The user may select the Entity1 report.
They are then able to select the criteria through the UI
pseudo example:
((Entity1.Type = 'this' OR Entity1.Type = 'something else') AND Entity1.CreatedDate > '01-01'2012')
Does anyone know if there is a good solution available (open source or paid) as this seems like it might be a lot of work to implement a bespoke solution.
Further to this we are using Entity Framework v4.1 magical unicorn edition.
If you build a UI that gives results in a structured form (e.g. {entityType.property}{operation}{value}) then it should be fairly straightforward to dynamically build an expression for this.
I decided to use http://devtools.korzh.com/query-builder-aspnet/ as it has saved me a lot of development time.

Resources