Archive for April, 2008

image field adds ?db=master to src attribute

Wednesday, April 16th, 2008

Hey guys,

I experienced a strange and misunderstanding behaviour by the sitecore client. My co-workers reported that sometimes it adds ?db=master to the src attribute of an image field. It looks like this:

<img showineditor=”1″ mediaid=”{A4D0BCFC-9DE7-41BF-BB43-24F9EC8877E3}” mediapath=”/Images/content_1″ src=”~/media/Images/content_1.ashx?db=master“>

After this, you can’t use the src attribute in your xslt if you want to transform the image as well. I modified the xsl in order to use the path field in the image item instead of the src attribute directly.

<variable name=”mediaItem” select=”sc:item(sc:fld(‘picture’,.,’mediaid’),.)” />
<img src=”{sc:fld(‘path’,$mediaItem)}?w=270&as=false&bc=ffffff” />

This should work and avoid this.

chris

extended placeholder selection gone public

Tuesday, April 8th, 2008

Hey guys,

here is the next interesting thing about shared source at sitecore. Jimmie Overby (Shared source coordinator) removed the password from my trac account (project tracking application). SDN Shared source module view, here you see a link to the trac account.

If you have a module which you want to share with other sitecore developers, you will get a TRAC account and a repository for your code (and help if you need, of course). He also created a forum for modules as well. Lars Nielsen made the first post and explained his task manager module.

So don’t hesitate to write an E-Mail to Jimmie Overby and tell him what you have and that you want to participate. Every single contribution is welcome and make it even bigger (and cooler ;-) )

cheers chris

Related Links:
- SVN: http://svn.sitecore.net/ExtendedPlaceholderSelection/
- SDN Shared Source Forum