Remove security settings and reset layout and insert options on all items in Sitecore? - sitecore

I have a Sitecore 6.5 project, where I have upgraded all the content from an earlier version. But something seems to have gone wrong in the upgrade process, which has caused all items to have a security setting of extranet\everyone which have deny read access, even though that is not the case. Also the layout and insert options needs to get reset and taken the values from the templates standard values.
I could do this manually in the Sitecore UI, but that would take quite some time, as there is 3000+ items.
Is there any way I can patch this with a quickfix of some sort?

You could either write a script in ASPX that does this for you or install the PowerShell module and script it with that.
It depends on your experience and on which tools you have available.
Unfortunately there is no built-in method for resetting layouts and insert options on all content items.

Related

Sitecore OPTIONS menu on Builder tab missing

For some reason I no longer see the OPTIONS menu item when I am on the Builder tab for a template. I have not needed to access this tab for months so I am not aware of when it went missing. I am on Sitecore 8.2 (rev. 160729). I have not installed any new modules or packages recently so I do not think its related to that. Has anyone experienced this behavior?
Based on our comments, the only reason why the option tab is not appearing is because of the css styling display:none.
This is not caused by Sitecore css or js files but rather a custom implementation. I would suggest to check your css files or even JavaScript files.
It might also be the case that there was a development to hide or show certain tabs in the ribbon which in brief may be due to custom development of ribbons or even commands. So, you may check the different commands or ribbons implemented.
Finally, which I think may be of least importance, is the development of SPEAK UI. It might be that you have a 3rd party module which is injecting the styling or a module implemented.

sitecore: autopopulate sublayouts from disk

I have a bunch of user controls on disk that are basically sitecore sublayouts, but do not have corresponding sitecore sublayout entries. Is there an automated way to create all of these cause entering them by hand is not an option.
Use Sitecore Rocks plugin for Visual Studio. It can bind physical files to (new/existing) Sitecore items.
Nothing out of the box. #VIKRAM is right, you're going to have to write some import code if you want them in. That would only take you 10% of the way there however, there would be no obvious way to do the supporting meta architecture, datasource templates, placeholder settings, insert options and so on.
Your only real option, is creating them by hand. And you rule that out yourself.

OS X Yosemite Spotlight extensions

Is it possible to extend spotlight's search feature to support additional commands?
For example, is it possible to define custom web search aliases, meaning I could type yt and it would provide results from youtube.
Alternatively, is it possible to add additional system commands were I could type sl (or some variant) to put my computer to sleep.
In the meantime there is Flashlight (The missing plugin system for Spotlight) http://flashlight.nateparrott.com/
This is expandable with Python scripts.
UPDATE Oct 2016 It seems that Flashlight is not longer maintained. The last update was more then a year ago. Check the repo here: https://github.com/nate-parrott/Flashlight
UPDATE Mar 2017 There is a fork which is still maintained: github.com/w0lfschild/Flashlight – Thanks #amoebe
No it is not possible, there are only 4 types of extensions for OS X Yosemite:
Today - Get a quick update or perform a quick task in the Today view of Notification Center
Share - Post to a sharing website or share content with others
Action - Manipulate or view content within the context of another app
Finder - Present information about file sync states directly in Finder.
All of these extension types are explicitly activated by the user for functionality. Apple has said that they are just getting started with extensions and plan to add more in the future, so logically it seems that Spotlight extensions are next (goodbye Alfred :sadface:).
I have an alternate solution for you which I am currently using. It's native to the OS and does not require disabling System Integrity Protection in order to install Flashlight.
Using Automator to create a new Service. Then with Ask For Text node you can display a popup similar to spotlight. From there the possibility are numerous. For web search there is a command like Display Webpages. The top activate AppleScript command is for gaining focus of the following popup.
You can construct the URL from your input text using JavaScript node. You can parse "yt" to YouTube search url for example and put the rest after the space to the URL.
Then in Preference you can set this new service as a shortcut for easier access.

ShowEditor and Rich Text Field is not displaying in sitecore 7.1 application

We have migrated an application from sitecore 6.2 to sitecore 7.1.
We are facing an issue related to Rich Text Field which is not showing up when I open a content item. The Show Editor is also not popping up the Rich Text Editor for editing.
When I am facing this kind of issues after upgrading I tend to put tickets # support.sitecore.net and dig some deeper into it myself. What I normally do is get a clean web.config + complete fresh bin folder of the Sitecore version I've upgraded to. Also I make sure that I grab the /sitecore folder with it.
Then I will compare the fresh bin with the solution bin and replace any assemblies that are not the same. From there I will also do a folder compare (using beyond compare or any other good compare tool) to make sure I got all the necessary files from there. Also I make sure that I look for any posts on the Sitecore forum containing the same problems. Don't forget to view your logs, as they will sometime help you find your problem quicker.

Upgrade from CMS 6.5 with shared source item buckets to CMS 7.0... how?

We are currently running Sitecore CMS 6.5 (120706) with the shared source Item Buckets module installed from here:
https://github.com/jerrong/Sitecore-Item-Buckets/tree/master/sitecorepackages/ItemBuckets%206.5%20NET_40/Final
We wish to upgrade to CMS version 7.0. I'm told that there is currently no upgrade path and to expect one in a few months. However we would prefer not to have to wait on this.
Item buckets is used only for a single section of our site. Everything else is delivered via the standard content tree.
We have tried upgrading to 6.6 first as required by the documented upgrade procedure, despite it mentioning later in the instructions that the shared source item buckets module is unfortunately unsupported for upgrade. Confirmed that this definitely does not work, we receive the error:
Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Lucene.Net, Version=2.3.1.3, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
We also tried disabling Item Buckets by removing the .config files etc. but we had further problems, presumably because of the actual content/data template changes that were made by the Item Buckets update.
We are thinking of trying a clean install of CMS 7.0, and then migrating our custom code base, items in the content tree (including data templates, layouts, renderings, etc) with Sitecore packages to work around the issue.
Can someone validate this approach, or better still suggest a much less painful solution!?
Many Thanks
(this is not official Sitecore advice as that is still being worked on disclaimer,disclaimer!)
Some ideas that might help ..
First we need to work on the data side of things (forget front end code for a second)
You could Un-bucket your items so that they are again plain Sitecore items. You could then remove the item bucket module templates and fields as you mentioned before (by 'unbucketing' you should now have no reliance on the bucketing templates etc.)
You could also look at creating an 'anti-package' using Sitecore Rocks, either way this should give you a site closer to a site before the item buckets module.
You could then get a base/clean install of 6.5 (120706) and then compare it to your working copy 'master' database using a tool like Sitecore Courier.
Sitecore Courier - https://github.com/adoprog/Sitecore-Courier - Allows you to compare 2 versions of Sitecore DB against each other and make an update package of that difference.
This should make you an update package of all the changes that have been made to your 'master' database so that you can, in theory, install this into a fresh copy of Sitecore.
You could see how far this gets you when you install this update package, in theory then you can re-bucket your section that used the old buckets module but using the new built-in buckets.
Front-end code wise, the old item buckets modules way of accessing the search has been completely re-written as that it now uses Linq To Sitecore. Hopefully this will be easier to migrate and the buckets will still work in largely the same way (hopefully better hehe!)
Like Ruud I would be interested to hear about others techniques for doing this.
Any extra complexity could come from thing like :
1) How much customisation of the core database you have done
2) How many new field types and XAML applications you may have written
At this point, there is no good solution for this yet.
If you are actively using the module, there is no way to upgrade right now (not that I know of).
If you are not using the module at all, you can remove everything in Sitecore that has to do with ItemBuckets.
This is a manual job for now... (I've done this with success in a 6.5 environment).
To be sure you remove everything, open the item buckets installation package (the ZIP file) to see what items are installed and manually remove all those items from Sitecore (this will include templates, fields, field types, settings).
You can also use the search in the content editor to search for "itembucket" or "item bucket" and find related items that way.
Another way is to search with SQL directly in the master and core database.
Once you have removed everything in Sitecore and configuration that is related to the buckets, rebuild the link database and run a database cleanup (from control panel) and you should be good to go.
It's a dirty job...
If anyone has a better way, I'd love to hear about it!
the problem you are having there is that the item buckets code was compiled against Lucene.Net 2.9 and Sitecore 7 has v3.0.3.
You could add an assembley binding in in the web.config configuration/runtime section that maps the old version to the new and then fix any issues you get with deprecated methods etc...
You will probably also want to remove the Item Buckets module before the upgrade as suggested as the new bucket templates & items may conflict with the shared source versions. You would at least need to remove the Item buckets config and dll's from the bin folders as these could also conflict.
I don't think there is a simple way of doing it yet or Sitecore would have given out an upgrade path already.