Monday, February 6, 2012

Sitecore Fetch Squad

Automated crawler fetching websites and blogs from Sitecore content

Archive for February, 2009

Using fieldcontrols in a ListView

Posted by admin On February - 18 - 2009
When you want to use a fieldcontrol like a Text, Link or Image control in a ListView you need to specify a datasource. By not specifying a datasource Sitecore looks at the current item. Which in a ListView is not the right one. So you need so set the datasource in code-behind or use an [...]

Mark van Aalst

Maximum number of Sitecore query items

Posted by admin On February - 18 - 2009
Last week I had some problems with an Sitecore Query. It didn’t show more than an fixed number of items. After some hard thinking I rembered that there is a web.config key called Query.MaxItem which, you might guessed it, controls the maximum number of results of an Sitecore Query.

Mark van Aalst

Using profile with the Rich Text Editor

Posted by admin On February - 18 - 2009
Regularly I see topics on the SDN5 forums where people ask if it is possible to use a custom Rich Text editor. Wll, yes it is. You can use so called profiles with the Rich Text editor. These profiles are stored in the Core database under /sitecore/system/Settings/Html Editor Profiles/. There are some default pre-configurated profile [...]

Mark van Aalst

Disable Sitecore publishing

Posted by admin On February - 18 - 2009
To avoid problems during the development of an Sitecore site it could be useful to disable the Sitecore Publishing method.
This can be done by editing the following web.config rule:
<site name=”website” virtualFolder=”/” physicalFolder=”/” rootPath=”/sitecore/content” startItem=”/home” database=”web” domain=”extranet” allowDebug=”true” cacheHtml=”true” htmlCacheSize=”10MB” enablePreview=”true” enableWebEdit=”true” enableDebugger=”true” disableClientData=”false”/>
These are the settings of your current site. The database key contains the [...]

Mark van Aalst

Sitecore 6 released

Posted by admin On February - 18 - 2009
Yesterday the people at Sitecore released the new version of their CMS. Sitecore 6 (previously called “Crestone”) has lots of improvements for either the end user as for dsevelopers.
A few improvements are:

Inline editing for editors
.Net 2.0 Memebership support
New and faster Content Editor
New data types
The new Page editor

and much, much more.
For a complete list the documentation [...]

Mark van Aalst

Copy & Paste Layout Settings

Posted by admin On February - 18 - 2009
While developing a Sitecore website there are lots of situations where you want multiple items to have the same Presentation Settings (renderings/sublayouts/layout). The ideal case is that your item Masters have these settings included but sometimes this isn’t the case.
You can copy and paste the settings all at one time this way:
1. Navigate to the [...]

Mark van Aalst

Sitecore Validation Rules

Posted by admin On February - 18 - 2009
In Sitecore you can use validation rules. By default there are three validations rules on each template:

Is Integer
Max Length 40
Requirer

You can modify or add new rules in the sitecore\system\settings\validation\field section in the content editor
With the use of an multilist you can set the rules for your template.

ATTENTION: Validation rules are already built in for version [...]

Mark van Aalst

Rich Text Editor

Posted by admin On February - 18 - 2009
One of the most annoying things about Sitecore is that the Rich Text Editor needs to be opent in an seperate web page dialog.
But you can customize this behavior!

Go to the Control Panel > Preferences > Change Your Application Options
Tab Rich Text Editor
Select editable

You see that the Content Editor got expanded with the tab “Rich [...]

Mark van Aalst

DomainObjects Update 2 released

Posted by admin On February - 18 - 2009
Just posted an update of DomainObjects onto the Sitecore Shared Source space.
Apart from a few tuneups, this update is primarily about built-in support for referrers.
Say you have a product hierarchy like this:

We are then often tasked with listing or in other ways extracting products based on a selected category (or media, as could be the case in this example). In the simplest of forms, the output could look like this (although I hope no live site would ever look like this :P ):

With DomainObjects this is now a very straight forward piece of code. All based on an article by Lars Floe Nielsen which I often refer back to.

Sitecore 6 package, sources, API documentation have all been posted to the Trac space.

Into the core

Wow @ Sitecore 6 Item Creation Speed

Posted by admin On February - 18 - 2009
I remember this was being brought up right around the time of release of Sitecore 6, that item creation speed had been increased since Sitecore 5.

To be honest, I haven’t really noticed. Until today that is.

For a client, I am currently in the process of converting/migrating an entire website based on the Polopoly CMS system to Sitecore 6. Essentially a process of getting all the source content, parsing and understanding it, mapping it to relevant Sitecore templates (around 20) in all and writing this entire new structure into Sitecore.

Take a look at the numbers I am getting.

Migration process starting….
Deleting existing content….done!
Building Table of Contents tree….done!
Building Departments tree….done!
Performing in-memory mapping…done!
Duration: -00:03:58.2400000
7271 items created in total
- 471 products
- 59 images
- 1678 documents
- 3728 other articles
- 1335 departments

7.271 items created (using BulkUpdateContext()) in just under 4 minutes.

One word. Fast! :-)

Into the core