Wednesday, April 25, 2007
london calling
watch out - here we come.
tomorrow evening we're back in london again.
awesome.
it's been -way- to long since our last visit, so this trip feels extra special in many ways.
camden town. soho. shoreditch. - bring it on.
fry up. beer at lunchtime. walks along the thames. - bring it on.
the white horse. the lock tavern. catch. - bring it on.
this weekend is gonna rock!
adios,
P.
Friday, April 20, 2007
Visual Studio Code Name "Orcas"
for those of you interested, Visual Studio Code Name "Orcas" is now available in Beta 1 download - and even as VPC downloads for the people that like to try it without installing it..
download link: http://msdn2.microsoft.com/en-GB/vstudio/aa700831.aspx
whitepaper: http://www.microsoft.com/downloads/details.aspx?FamilyId=17319EB4-299C-43B8-A360-A1C2BD6A421B&displaylang=en
regards,
P.
Tuesday, April 03, 2007
Sitecore 5.3.1 - UI changes
While a lot of changes took place in the config files Sitecore has really made improvements to the UI as well.
After first installing the 5.3.1 version what hits you right away is the new login page. With an improved appearance and additional features such as browser identification and phishing filter detection, along with the easy (and understandable) selections you can make this is really a step forward and will make many customers happy.
(on a sidenote i personally find it a bit annoying that if you login to the content editor directly there's really no easy way to log out or access the sitecore 'start' menu, but hey - that's just me i suppose - you can always wait for it to time out or hit the sitecore logo and close the content editor)
Given i haven't yet had a chance to dig deeper into the new version i'll just leave you with some screenshots & comments. however, one thing i did notice (and really like) is that the ribbon is now easily configurable via both a context menu and it's very own wizard/application. good stuff!
there is one more thing i noticed, and it really struck a curious nerve in me - there's now a __inherits security field on the edit user wizard.. for what i'm not sure, but it did indeed make me curious..
So what's the verdict? well.. given the improvements seen so far and the anticipation i have on future releases, i too will give this release an 8. Excellent work by the lads indeed.
well, that's it for now.
take care,
P.
After first installing the 5.3.1 version what hits you right away is the new login page. With an improved appearance and additional features such as browser identification and phishing filter detection, along with the easy (and understandable) selections you can make this is really a step forward and will make many customers happy.
(on a sidenote i personally find it a bit annoying that if you login to the content editor directly there's really no easy way to log out or access the sitecore 'start' menu, but hey - that's just me i suppose - you can always wait for it to time out or hit the sitecore logo and close the content editor)
Given i haven't yet had a chance to dig deeper into the new version i'll just leave you with some screenshots & comments. however, one thing i did notice (and really like) is that the ribbon is now easily configurable via both a context menu and it's very own wizard/application. good stuff!
there is one more thing i noticed, and it really struck a curious nerve in me - there's now a __inherits security field on the edit user wizard.. for what i'm not sure, but it did indeed make me curious..
So what's the verdict? well.. given the improvements seen so far and the anticipation i have on future releases, i too will give this release an 8. Excellent work by the lads indeed.
well, that's it for now.
take care,
P.
Sitecore 5.3.1 - Config changes
Since there are -quite a lot more- changes from 5.3.0 to 5.3.1 than the actual release notes says, i thought i'd put together a list of what has happened in the web.config and commands.config files.
All together the changes are very nice and there's a lot of new additions regarding various media parts.
Commands.Config changes:
- clipboard:copyidtoclipboard command added
- clipboard:copypathtoclipboard command added
- webedit:edit command added
- webedit:save command added
Web.Config changes:
- forceDownload option added to the MimeTypes sections
- 2 new customHandlers: "~/rest/" for sitecore_rest.ashx "~/icon/" for sitecore_icon.ashx
- Hook for MemoryMonitorHook has the following added: <ClearCaches>true</ClearCaches> <GarbageCollect>true</GarbageCollect> <AdjustLoadFactor>true</AdjustLoadFactor>
- Agent added to clean up publishing queue: Sitecore.Tasks.CleanupPublishQueue
- renderLayout pipeline has the following processors added: InsertPlaceholders CreateDynamicChildControls BuildPage
- uiUpload pipeline has the following processor added: CheckSize
- <sites> configuration has an additional masterDatabase param that defines the database containing the data to be shown in preview and web edit modes.
- AutomaticDataBind setting changed from "true" to "false"
- Caching.DefaultClientDataCacheSize setting added
- EnableXslDocumentFunction setting added
- Login.SitecoreUrl setting added
- MaxItemNameLength setting added
- Media.BaseFolder setting added
- Media.IncludeExtensionsInItemNames setting added
- Media.InterpolationMode setting added
- Media.MaxSizeInDatabase setting added
- Media.MaxSizeInMemory setting added
- Media.UploadAsFiles setting added
- Media.UploadAsVersionableByDefault setting added
- Media.UseLegacyResizing setting added
- Media.UseResourceAssembly setting added
- Media.WhitespaceReplacement setting added
- Tasks.EmailReminderSubject setting added
- Tasks.EmailReminderText setting added
- Templates.DefaultTemplateEditor setting removed
- UI.CalendarTimeOfDay setting added
- Upload.UserSelectableDestination setting added
- UnlockAfterCopy setting added
- VersionFilePath setting added
- "sc" tagPrefix added to the <controls> section of <pages>
- 3 new httpHandlers added: sitecore_rest.ashx sitecore_xaml.ashx sitecore_icon.ashx
- System, System.Web, System.Configuration, System.Drawing, System.Xml, System.Data, System.Web.Services, System.DirectoryServices, System.DirectoryServices.Protocols, System.EnterpriseServices, System.Design, System.ServiceProcess, System.Windows.Forms, System.Web.RegularExpressions added to the compilation <assemblies>
- and last but not least - the MimeTypes.config file is now included in the App_Config folder
Wednesday, March 28, 2007
Sitecore 5.3.1
Once again Alex is first-in-line noticing all the sweet stuff ;) so, this time i'm just gonna point you to something -really- worth reading: http://sitecore.alexiasoft.nl/2007/03/28/just-released-531
how many points it'll get from me will have to wait until i'm back from prague:)
Have a great weekend,
P.
Friday, March 16, 2007
Five things you might not know about me
In response to Alex's tag (sorry, better late than never) and the "five things you might not know about me" post he made, i'll step up to the plate: five things you might not know about me:
- I was born on the 12th of april 1980 in a small town called PiteƄ, which is located -really- far up in the northern parts of Sweden. On that same day, just 8 minutes later, my twin brother was born. yep, identical twins.
- At school i didn't really care much, all i wanted to do involved either photography or music, and from that time in my life i fully mastered the art of... um.. drinking tons of coffee.
- I've lived in a few different countries, but the most memorable time was when i lived and worked in London for 18 months - probably the craziest and best 18 months ever. Today i'm back in Stockholm, Sweden.
- I'm an addict when it comes to: guitars, music, nicotine, techology, party, discgolf, code, architecture & extreme sports of various forms.
- After all the years at my previous employment (Morningstar) i know way to much about mutual funds, equities and all that fancy financial lingo. Not really of much use to me today but it was still an amazing time spent where i had the privelege of getting to know a lot of great and skilled people all over the world. How many investments have i got in mutual funds today? the answer to that is simple: none at all ;)
that's it: five things you might not know about me.
have a great weekend,
P.
Friday, March 09, 2007
Tutorial: Making use of Ribbons and Galleries
This post applies to Sitecore 5.3
What really rocks when it comes to Sitecore 5.3 is a lot, but one of the greatest user features must surely be Ribbons, and especially the Galleries (well, at least in my opinion) and so, that's what i'm gonna cover in this post.
Galleries are, in sitecore, XAML / Sheer UI controls that enable you to have a lot more flexible content in the menu than traditional menus would allow. They're based on the <gallery> control with the base of GalleryForm and are easy enough to create - the real trick is to know when you want to have a gallery and when a button/combo button is more appropriate.
The relations between ribbons, chunks & strips can be awkward at a first look, but they're really not chaotic at all..
Theoretically you could add whatever you want to the Chunk, but button-wise the commonly used ones are:
So, the approach to creating this gallery is the same as when creating any sitecore control, and that is:
Step 3: Adding the button and wrapping up
What really rocks when it comes to Sitecore 5.3 is a lot, but one of the greatest user features must surely be Ribbons, and especially the Galleries (well, at least in my opinion) and so, that's what i'm gonna cover in this post.
Galleries are, in sitecore, XAML / Sheer UI controls that enable you to have a lot more flexible content in the menu than traditional menus would allow. They're based on the <gallery> control with the base of GalleryForm and are easy enough to create - the real trick is to know when you want to have a gallery and when a button/combo button is more appropriate.
The relations between ribbons, chunks & strips can be awkward at a first look, but they're really not chaotic at all..
- Ribbons contain Strips
- Strips contain Chunks
- Chunks contain, well, whatever you want..
Theoretically you could add whatever you want to the Chunk, but button-wise the commonly used ones are:
- Large Button
- Large Combo Button
- Large Gallery Button
- Small Button
- Small Combo Button
- Small Gallery Button
- Button
- Combo Button
- Gallery Button
For this tutorial let's use a scenario where we want to have easy access to a userlist that would enable us to have a fast way to toggle a users write permission on the current item.
So, the approach to creating this gallery is the same as when creating any sitecore control, and that is:
- create the layout
- create the code
- hook it up to sitecore
- create the xml layout of the control
- create the necessary codebeside for it
- assign it to a gallery button
<?xml version="1.0" encoding="utf-8" ?> <control
xmlns:def="Definition"
xmlns="http://schemas.sitecore.net/Visual-Studio-Intellisense"
xmlns:shell="http://www.sitecore.net/shell">
<Gallery.ToggleAccess>
<Gallery>
<CodeBeside
Type="Interfolio.ToggleAccess.ToggleAccessGalleryForm,Interfolio.ToggleAccess"/> <input type="hidden" id="reloadOnShow" value="1" />
<DataContext ID="EntityDataContext" DataViewName="Domain"
DefaultItem="/" Root="/sitecore/users"/>
<GridPanel
Width="100%" Height="100%">
<MenuHeader
Header="Users"/>
<Scrollbox Height="100%" Padding="0px"
Border="none" Background="transparent" GridPanel.Height="100%">
<DataTreeview ID="EntityTreeview" Width="100%"
DataContext="EntityDataContext" Root="false" AllowDragging="false"
DblClick="ToggleAccess"/>
</Scrollbox>
<Gallery.Grip/>
</GridPanel>
</Gallery>
</Gallery.ToggleAccess>
</control>
Step 2: code for the ToggleAccessGalleryForm C# class:
namespace Interfolio.ToggleAccessNow that that's all taken care of, all that's left is to make sure the control can be found, and then create a gallery button in a chunk in a strip in a ribbon (see, not that hard to understand) and then finally assign the gallery control to the gallery button.
{
public class ToggleAccessGalleryForm :
GalleryForm
{
protected DataContext EntityDataContext;
protected
DataTreeview EntityTreeview;
public
ToggleAccessGalleryForm()
{
}
private static ID
GetCurrentEntityID()
{
string text1 = StringUtil.GetString(new string[] {
WebUtil.GetQueryString("en") });
if (ID.IsID(text1))
{
return
ID.Parse(text1);
}
return ID.Null;
}
private static string
GetEntityName(Domain domain, ID entityID)
{
if (entityID ==
ItemIDs.AnonymousUser)
{
return "anonymous";
}
UserItem ui =
domain.GetUser(entityID);
if (ui != null)
{
return
ui.DisplayName;
}
return Translate.Text("[unknown]");
}
private
static string GetIcon(Domain domain, ID entityID)
{
UserItem ui =
domain.GetUser(entityID);
if (ui != null)
{
return
ui.Icon;
}
RoleItem ri = domain.GetRole(entityID);
if (ri !=
null)
{
return ri.Icon;
}
return
"People/24x24/user1.png";
}
protected override void OnLoad(EventArgs
e)
{
base.OnLoad(e);
if (!Context.ClientPage.IsEvent)
{
string
querydomain =
Sitecore.StringUtil.GetString(WebUtil.GetQueryString("do"),"sitecore");
Domain
domain = Factory.GetDomain(querydomain);
this.EntityDataContext.Parameters =
"domain=" + domain.Name;
string folder = WebUtil.GetQueryString("en");
if
(!string.IsNullOrEmpty(folder))
{
this.EntityDataContext.Folder =
folder;
}
}
}
protected void ToggleAccess()
{
UserItem ui =
Sitecore.Context.Domain.GetUser(this.EntityTreeview.GetSelectionItem().ID);
Error.AssertNotNull(ui,
"failed to initialize user item");
Item itm =
Sitecore.Context.ContentDatabase.GetItem(WebUtil.GetQueryString("id"));
Error.AssertNotNull(itm,
"failed to initialize content item");
if (ui != null && itm !=
null)
{
using (new SecuritySwitcher(ui))
{
if
(itm.Access.CanWrite())
{
using (new
SecurityDisabler())
{
itm.Editing.BeginEdit();
itm.SecurityField.SetRights(ui,
ItemRights.DenyWrite);
itm.Editing.EndEdit();
Sitecore.Context.ClientPage.ClientResponse.Alert("Denied
write to " + itm.Name + " for " + ui.Name);
}
}
else
{
using (new
SecurityDisabler())
{
itm.Editing.BeginEdit();
itm.SecurityField.SetRights(ui,
ItemRights.AllowWrite);
itm.Editing.EndEdit();
Sitecore.Context.ClientPage.ClientResponse.Alert("Allowed
write to " + itm.Name + " for " + ui.Name);
}
}
}
}
}
}
}
Step 3: Adding the button and wrapping up
- Add the location of the control to the <controlsources> section in the web.config file and save it.
- Go into Sitecore and switch to Core DB
- Navigate to the Ribbons content (/sitecore/system/ribbons)
- Create a Large/Small Gallery Button somewhere in a chunk
- Set the properties of the button and finally set the Gallery field to the name of the gallery control, in this case Gallery.ToggleAccess
- Save
Now your new gallery button will be in the chunk where you placed it, and clicking it will launch the gallery and you can go out the door, realize it's friday and have a well-deserved, cold pint of lager.
Take care,
P.
Subscribe to:
Posts (Atom)





