Sitecore: adding new tabs to content editor - sitecore

I'm looking for a way to extend sitecore's content editor so I can have another tab show up when I click on an item on my content tree.
the purpose is to provide a better user experience when editing some specific information. I have seen this done in some of the addons. An example would be the "E-Commerce" module.

What you're looking for is a custom editor. Here are several blog posts on the topic:
Custom Item Editors in Sitecore
Creating a Item Editor
Editor Tabs in Sitecore

Related

Workflow state in Sitecore is blank when you create and save a datasource from experience editor

So here is the step to replicate.
Create a blank page,
Open Experience Editor and add a component that needs a datasource.
Select create a new datasource in the popup window.
Save the page in experience editor
Open the datasource in the Content editor and take a look at the workflow state section. It will be blank instead of having the initial workflow state.
This only happens for non admin users.
Creating a new datasource directly in Content Editor (not Experience Editor) works fine.
** Note that when experience editor creates the datasource, if you go to Content Editor and open the item, the workflow state will be there. It is after you save the page in experience editor that the worflow state is set as null.
So after 5 days debugging Sitecore code and pipelines I found the issue.
The enableWorflow="true" attribute was missing in the site definitions.
The code that was causing the issue was the .Lock step in the SaveUI pipeline.

Restrict access to 'Anchor' and 'Javascript' links on General link in Page Editor mode

This is a question on roles and rights security restriction on the General Link field type.
The general link field displays an Edit Link button on Page Editor and on click of the button, a general link form opens up with options to set up Internal Link, Media Link, External Link, Anchor, Mail and Javascript.
I want to hide/disable the Anchor and Javascript links for certain roles via Security Restrictions using Security Editor in Sitecore.
If I go to the Core Database and deny Read access to item at path:
sitecore/system/Field types/LinkTypes/General Link/Menu/Anchor
it hides the Anchor item for General Link field in Content Editor but not in Page Editor.
Is there a way to do hide it in Page Editor mode?
Unfortunately, in Sitecore 7 (not sure about 8), these options are hard-coded into the dialog and do not pull from Sitecore items, so you will not be able to apply security as you normally would. As I see it, that leaves you with two options:
Override the dialog's default behavior by pointing to your own implementation.
Disable the options for all users by commenting out the Anchor and JavaScript sections of the following file. Place the modified file in the \sitecore\shell\Override folder.
<webroot>\sitecore\shell\Applications\Dialogs\GeneralLink\GeneralLink.xml

Why is Insert > Related List not working in sharepoint 2013?

Hi I have got a few lists with Lookup fields from Source lists. I wish to have a Related lists (Webpart connections from 2007 days) where I select item from master and then child records are displayed. Although I have followed the instructions on the below article, the "relationship" bit is not working. The Related records from the child lists are not filtering rather showing all records from the child table.
http://office.microsoft.com/en-us/sharepoint-help/create-list-relationships-by-using-unique-and-lookup-columns-HA102771358.aspx
I also encountered this issue, and the solution is pretty simple, but not very obvious. When creating a new page, you MUST be sure that you create a page of type Web Part Page. When you use the default "Add a Page" option from the site settings menu, the default page type is a Wiki page, not a web part page. Even though you can add web parts to a Wiki page, the Wiki page does not include the functionality for implementing web part connections.
Once I created a page using one of the Web Part Page types, I was able to use web part connections.
have you tried this:
Browse to the affected page, and then open the page in edit mode.
Click the drop-down arrow in the upper-right corner of the Web Part for the tasks list, and then click Edit Web Part.
On the right side of the page in the Web Part properties controls, click the plus sign (+) on the Miscellaneous section, click to select the Server Render checkbox, and then click OK.
Save the changes to the page.
source: http://support.microsoft.com/kb/2924913

customising announcement list in sharepoint 2010

I am trying to add a customised announcement list to the main page of my SharePoint site on this list, there will be 7 columns on the list but the challenge i'm having now is how to only display 3 out of the 7 columns on the site and the other columns will only be displayed when user clicks on add new announcement or clicks on the list itself. Please can anyone give me an idea of how to achieve this.
E.g: Assuming i customised an announcement list to have column: management, operations, Assets, Finance,HR,QHSE and Technical and added it on my SharePoint page via web-part, How can i make it to only display 3 of the 7 columns like management, operations, Assets while other columns will only be seen whenever users click on the add new announcement or go directly to the list itself. Thanks
For displaying only 3 columns, create a view and set it in the webpart options.
When you create a new view of a SharePoint list, it essentially creates a new .aspx page with the view customized per your definition. This can be done for standard views easily from the SharePoint list's web interface. This is the suggestion from Le_Freddo and should work for creating custom views but not for creating custom edit pages.
For that I believe you need to use SharePoint Designer. Open the site in SharePoint Designer then locate the list you're working on under 'Lists' in the 'FolderList'. You'll see 4 pages, AllItems, DispForm, EditForm, and NewForm. Make a copy of the EditForm (before you modify it), then open the EditForm to make your changes to it. You can add or remove fields from the page. In this way you can customize the Edit form to show all fields or only a subset.
You can also use this method to customize the other views (removing columns you don't want users to see).
When you're done, you can direct your List to use the new pages or define which page to use for each operation (View-All, Display, Edit, Create New) by setting the List's properties (right click the list in the Folder View, select Properties, then the 'Supporting Files' tab will have links to the pages configured for these actions).
Good luck...

Is there another way to open "Developer Center" in Sitecore. Currently it is not open in my browser (check with all)

Is there another way to open "Developer Center" in Sitecore. Currently it is not open in my browser (check with all) & i open with desktop option. In Internet Explorer its Sitecore option is visible in below left corner but when click to it doesn't open.
So any body have have an idea how can I open Developer Center this is because i want to create new Sublayout.
I haven't got any answers, please takes an attention & give me an idea over this solution.
I highly recommend NOT using Developer Center. To create a sublayout, it's much easier to use the content editor and Visual Studio. Here's the steps I use:
Copy an existing sublayout ASCX in my solution and rename to my new sublayout name.
Clean up namespaces and class names as needed.
In Content Editor, navigate to \sitecore\Layout\Sublayouts
Insert a new sublayout definition
In the Ascx File field on the sublayout, specify the path to my sublayout ASCX that I just created
In the Placeholder field on the sublayout, specify the placeholder.
If you have to use Developer Center, then you are correct to be trying to access it via the Desktop using the sitecore > Development Tools > Developer Center menu item. If the dialog does not open, do you get an error?
With Internet Explorer, you may want to ensure you are in compatibility mode if you are using IE9 or greater. Also try opening it in another browser like Firefox or Chrome to see if it's a configuration issue or a browser issue.