sitecore

How to copy only selected renderings from one to another item using sitecore content editor?

How to copy only selected renderings from one to another item using sitecore content editor? Default "Copy To" function copy all renderings i want to copy and paste only selected. ...

Sitecore - xslt rendering - Hide when there is no published version available

Right now when i'm setting publishing restrictions for items in Sitecore that get rendered by xslt renderings, the xslt will just output empty blocks which don't look very nice on the website. This is the xslt code i'm using to render my Sitecore item: <xsl:for-each select="$item[sc:fld('__created',.)]"> <xsl:for-each select=...

Sitecore Custom User Profile - where is it stored how can it be queried

I have created a custom User profile template and object in the core database in Sitecore (as per the Security API Cookbook). I can select this programmatically (as per the Security API Cookbook) so that my extranet users have an extended profile, that covers all the usual suspects (Address, phone, email format etc.) However, where is ...

How can I prevent Visual Studio 2005's "Clean" command from removing 3rd party binaries?

I have a Sitecore/ASP.NET projects that I'm developing. Today at some point I inadvertently hit the "Clean" option in the solution context menu. It took me a while to figure out why my site was hopelessly broken. Turns out Visual Studio went ahead and deleted several required assemblies from the \bin dir which are not part of my proje...

Filtering out Sitecore Items before the databind

I want to filter out / remove items from a list of type Sitecore.Data.Items. This is how i fill the list. List<Item> actueelItems = Sitecore.Context.Database.SelectItems("/sitecore/content/destil_nl/Home/").ToList(); I have a method that checks wheter an item is valid. This will return true or false. I want to put up a new list, that ...

How to select and delete, move multiple items in Sitecore 6 content editor?

How to select and delete, move multiple items in tree in Sitecore 6 content editor? ...

Why does Sitecore throw a NullReferenceException exception when I redirect to one of its pages?

I'm running Sitecore 6.1 on Windows 2008, IIS7, and I'm trying to use the URL Rewrite Module to do a redirect. When I enable the rule and hit the URL that triggers it, I get a YSOD. The same rule works perfectly on a non-sitecore site on the same machine. According to the Failed Request Trace, the rewrite module does its thing just fine,...

How to get a list of pages if site having two pages-with same name?

for example http://www.sitename.com/section1/pagename.aspx http://www.sitename.com/section2/pagename.aspx I need quick report only for pages which has same name. like "pagename.html" in example. ...

Sitecore: loginPage?

I am trying to set a loginPage value on a Sitecore site in the web.config. The file referenced in the loginPage is an Sitecore item, so it is not a psycical page on the server. No matter how i reference to it, it doesnot work. I get one of 2 errors (depending on how i refrecen to the file); The resource cannot be found. Error executing ...

What is this attribute "headerindex="5h"?

I saw this on a CMS(sitecore) based Asp.net 2.0 Webform based site. <a class="boardTextLink " id="boardTextLink6" headerindex="5h"> is it semantically correct and w3c valid? Can we make and use custom attributes like this? Is it good practice? ...

asp.net login example (Sitecore)

Hi I am trying to make a very simple login page for a sitecore project (V5). I have a page where anonymous access is denied. The user is then redirected to a login page defined in the web.config. I have the following code on that login.aspx page; <%@ Page language="c#" AutoEventWireup="false" %> <script runat="server"> protected vo...

Access sitecore settings programatically (Sitecore 6)

Is there a way to get to sitecore settings through code. The specific setting I'm interested in is the data Folder path. ...

Is it really possible to achieve grade "A" in yahoo's yslow for all things for a dynamic/CMS website?

Is it really possible to achieve grade "A" in yslow for all things for a dynamic and CMS(PHP/Asp.net) based websites? and using same server. http://developer.yahoo.com/yslow/help/index.html#performance_view ...

Filtering out page content with AJAX in Sitecore

I have a page in Sitecore that displays the list of clients. There's a form with two select boxes that should filter out clients not matching specified criterias. Clients list should be refreshed via AJAX everytime user changes one of the values in the form or after clicking Submit button if JS is disabled. What is the suggested approac...

FieldRenderer - Get specific field name from different template sections

Hi, Is there a way to get a specific field name from a template with several sections to a FieldRenderer control? F.ex. I have a template with the sections "Data" and "Data2", both have a single-text-field called "Text". Is there a way to make my FieldRenderer get the field "Text" in section "Data2" It would be nice if one of the belo...

Using Treelist Values to Query a Sitecore Item

I have an item named All Recipes that contains recipes named R1, R2, and R3. I have another item named My Recipes that has a treelist field named Recipes and it contains selected values R2 and R3 from the All Recipes item. The query I'm trying to write is for the Items field of an RSS Feed. What is the query syntax to show the items in...

Sitecore Rich Text Html Editor Profile - set global default

OK I can't believe this can't be found anywhere so I'm asking the question. Is there a way to set the default Html Editor Profile in Sitecore so I don't have the override the Source field on each individual Rich Text field? e.g. I want to make this the default option for the Html editor: /sitecore/system/Settings/Html Editor Profiles/...

Is firebug lite javascript must need in Sitecore shell?

Is Firebug lite must needed in Sitecore shell? What is the use of this for content authors? http://alexeyrusakov.com/sitecoreblog/CommentView,guid,6704bf3d-8980-4f29-9ac2-125cff64bb80.aspx ...

How to get a random item from the tree given a parent node?

I have a scenario where I would like to randomize the display of some items. Given a Parent item, how can I randomly select one of its child items? Of course I could load ALL the children and apply some random index or whatnot... but that would be wildly inefficient. I'm wondering if this is also inefficient: Parent.Children[random(P...

Gridview empty when SelectedIndexChanged called

I have a DataGrid which is being bound dynamically to a database query. The user enters some search text into a text field, clicks search, and the code behind creates the appropriate database query using LINQ (searches a table based on the string and returns a limited set of the columns). It then sets the GridView datasource to be the q...