I'm using Sitecore 8.1, When I delete the last component from the place holder using page editor, the place holder itself is getting vanished. I could not find why this is happening.
Related
The title says everything about my question
On sitecore 6.6 I have to order the items in a folder and I've been google it for few days with no success.
Can anybody help ? I've tried setting up __Sortorder field but I get an error saying that the property is readonly.
From what you wrote ("but I get an error saying that the property is readonly"), you haven't started editing the item before changing the Sort Order field value.
Simplest code is:
item.Editing.BeginEdit();
item[Sitecore.FieldIDs.Sortorder] = "25"; // or any other new value
item.Editing.EndEdit();
Editing.BeginEdit() and Editing.EndEdit() are required before and after every item change operation.
In older Sitecore versions devs used to use using (new Sitecore.Data.Items.EditContext(item)) instead, but from what I remember it's not recommended anymore.
Here is a sample article about Sitecore item editing: How to edit an Item in Code Behind
The __Sortorder template field has a "Read only" checkbox that you can use to allow the field to be written to.
You can use the Sorting buttons in the Home menu:
Select the item to move/sort
Open the Home menu
Use the Up/Down/First/Last buttons in the Sorting section
Or the keyboard shortcuts:
Up: (Ctrl+Shift+Alt+Up)
Down: (Ctrl+Shift+Alt+Down)
As per subject - I want to create a custom button in a new Strip; the instructions that used to work for Sitecore 7.5 (adding a Strip Item under /sitecore/content/Applications/Content Editor/Ribbons/Strips, etc.) don't seem to work anymore in 8.1.
Can anyone link detailed documentation to do so?
First, right-click on the toolbar and see if you have the new menu listed as shown in the screenshot below. If not please see the following steps:
Navigate to /sitecore/content/Applications/Content Editor/Ribbons/Chunksand create a new Chunk. The template is at /sitecore/templates/System/Ribbon/Chunk
Create your button in the newly created Chunk which is based on the template /sitecore/templates/System/Ribbon/Large Button
Navigate to /sitecore/content/Applications/Content Editor/Ribbons/Strips and create your new Strip from the template /sitecore/templates/System/Ribbon/Strip
Then, add a reference for your Chunk using the template /sitecore/templates/System/Reference and in the droptree, select your created Chunk
Navigate to /sitecore/content/Applications/Content Editor/Ribbons/Ribbons/Default and create a reference using the template /sitecore/templates/System/Reference and select your strip from the droptree.
Refresh the page and see if it is present. If not, right click on the toolbar and see if you have your new navigation list as shown below:
Do I really have to set Placeholder Settings for rendering items in Presentation Detail??
I have many placeholder settings (without adding into Presentation Detail) and I can see empty placeholders areas (gray-box) without any problem. Then, I can choose assigned rendering items from the selected empty placeholder.
However, whenever I update files in "/App_Config" or "/bin" folder, all empty placeholder areas are disappeared (No gray-box) if the placeholder setting was not added into Presentation Detail. So, in Content Editor, I go to placeholder setting items which have the issue, then edit and save again and refresh the xEditor page. Now, the saved Placeholder Setting item appears.
What is the problem??? When App Pool recycles, is there something removing placeholder thing?? I have no idea...
I'm using Sitecore 8.0 and dynamic binding like #Html.Sitecore().Placeholder("Placeholder Key Name")
I have an item in Sitecore 6 backend containing all rendering and data to render itself. This item is a child of some other item in Sitecore tree structure.
So the tree looks like this:
Home
Parent Item
My Item
Another Parent Item
I need a reference to My Item here
Is there a way to copy just a reference of the item? The idea is to have the same content with different url, but without copy/pasting. Because after a while content writer would like to change the content and he doesn't want to search for the copies and change them too.
If you are on Sitecore 6.4 or later, you can accomplish this using clones. Select the item to be copied, and then click the "Clone" button on the "Configure" ribbon. The clone shows values from the original item, but also allows you to override them, at a field level, should the need arise.
For Sitecore 6.3 and earlier, you can use proxies. These do not allow the option of overiding fields, can lead to performance issues if used extensively, and have been deprecated with Sitecore 6.4.
You can learn more about both techniques at http://sdn.sitecore.net/upload/sitecore6/64/reusing_and_sharing_data-a4.pdf and http://bit.ly/CloneTalk
I have a layout with two place holders leftColumn and rightColumn. For an item i am adding multiple sublayouts for leftcolumn and multiple sublayouts for rightcolumn. Now in page editor when i am trying to change position using "Change Position" button in toolbar and move content to another location, content is getting moved to my new location as desired. But when i click Save button on Ribbon, it is actually deleting moved content from presentation itself.
I am not sure why it is behaving like this. we are using Sitecore 6.4
We opened a ticket with Sitecore and found out that this is an existing bug. They do not support movement of multiple controls/sublayouts within same placeholder on layout using PageEditor. We need to use multiple placeholder on layout and then we can change position of controls from one placeholder to another one.
Can you see anything through Sitecore Logs? It may have any errors or exceptions that are being generated.