Packaged Solutions

Posted by Cedric Vandewoude | .NET |

Sometimes you want to discuss the sitecore tree with colleagues or the customer. The only way to achieve this is taking a screenshots but that does not give you the flexibility to change the structure or text in f.e. an e-mail conversation.

To solve this I wrote a small aspx page (code inspired by a blog post from Sean Kearney) to be able to copy paste the sitecore tree as rich text. (<ul> and <li> is used to achieve this)

How to us it?

Download 2text.zip Copy 2text.aspx in \Website\sitecore\admin\ Browse to http://yoursitecoresite/sitecore/admin/2text.aspx

Feel free to adapt it to your own wishes

First technique

useful if you need to generate a link to send to one of your editors.

The format of this link will be : http://Youthostname/sitecore/shell/Applications/Content Editor?id=%7b9822ABDF-F2B7-41BA-B56D-63E73BEB7E88%7d&amp;vs=1&amp;la=en&amp;sc_content=master&amp;fo=%7b9822ABDF-F2B7-41BA-B56D-63E73BEB7E88%7d&ic=People%2f16x16%2fcubes_blue.png&he=Content+Editor&cl=0

Where the parameters are:

  • Id & fo: the ID of the target item
  • vs: the version of the target item.
  • la: the languageĀ  of the target item
  • sc_content: the database
The second technique

useful of you need to open it from one of your xaml application :

UrlString str = new UrlString();
.Add("id", id);
str.Add("fo", id);
Windows.RunApplication("Content editor", str.ToString());

More sitecore tips on my blog: http://sitecoreblog.blogspot.com/

Posted by Thomas Desmet | .NET |

Yesterday i dug up an old sitecore project. when everything was installed and downloaded i tried to login at the sitecore admin. it kept on giving following error: “Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration”. Nice error he The Sitecore version is 6.1 and it is not really compatible with the “integrated” mode of IIS 7.0. IIS 6.0 uses classic mode so we change the application pool setting to “Classic” mode. but that’s not all, then you need to be sure you are using the correct DLL’s for the system. if you are having a x64 machine you will need to find following DLL’s for x64: dtsearchNetApi2 and System.Data.SQLite. and that fixes the problem. enjoy