When I remove a component in Sitecore from the Experience Editor, it is removed from the page but in Content Editor the component and its datasource still here! Does anyone have a solution for this? Thank you.
Remove component data source in Sitecore
312 Views Asked by Fatiz Aglif At
1
There are 1 best solutions below
Related Questions in SITECORE
- Web Forms For Marketers (WFFM) Rich Text Field Type
- Incomplete sitecore publish ( presentation details missing )
- Is there an easy way to fake a Sitecore Device for testing?
- Lost uCommerce interface within Sitecore
- Unable to use WFFM using Sitecore MVC
- How to get all the fields from Sitecore
- 'Sitecore.Forms.Mvc.Models.FormModel' vs. 'Sitecore.Mvc.Presentation.RenderingModel'
- Sitecore WFFM checkbox values on Create Item
- How to add an session value to a custom webforms for markters save action?
- Set a field in all the children of an item
- Trouble With Sitecore Web.config Patch File
- Sitecore link with icon
- Sitecore Inheriting an Item from Branches (Inheriting complete structure)
- Sitecore 7.2 publish increment the data serialization folder Size
- In Sitecore 7.5 how to programmatically create media items with language versioning?
Related Questions in SITECORE8
- Lost uCommerce interface within Sitecore
- Route with namespace and area still complaining about multiple controller names
- Correct Place To Specify A Site's Caching Parameters In Sitecore?
- Sitecore mail template with rich text field
- Bundling with sitecore MVC
- Search bar is not working on Sitecore 8 rev. 150427
- SITECORE: Invalid Scope Offline(Facebook)
- Bulk Creation Of Items In Sitecore
- WFFM custom save actions not working on Preview server but fine on CM server in sitecore preview mode
- Sitecore indexing Boost Rule based on search term
- Sitecore Glass.Mapper.Sc vs Glass.Mapper.Sc.Core
- Recipient List does not match Sent to List in Sent Sitecore EXM Campaign
- Sitecore - How to track anonymous user location in sitecore analytics
- Sitecore 8: Datasource value is null/empty in sublayout(.ascx)
- How to check Which version is installed of Web form for marketer in Sitecore 8
Related Questions in CONTENT-EDITOR
- How to resize or edit the buttons in html, using contenteditable attributes?
- Contenteditable create Element then put cursor inside it on enter and on insert HTML
- Hiding Sharepoint Survey List fields
- CKeditor - move cursor to next container when reached end of the first one
- How to delete an embeded link (content editor) in sharepoint?
- How to make a contenteditable div reversible after change made with js?
- Post installation styles are missing on the sitecore login and content editor pages
- Experience Editor does not work properly for pages with certain names in sitecore 8
- Adding two scripts inside one javascript file
- Sitecore Content Editor - Make the Publish Button "Approve and Publish"?
- How to add target window as Pop Up for General Link Type in Sitecore?
- How to put/paste the content where cursor is there in content editable div
- Sitecore 8 Content Editor error
- How to set the Content Property of 'Content Editor WebPart' in SharePoint 2007 from Designer
- parsley 2.0.3 not working with boostrap 3
Related Questions in EXPERIENCE-EDITOR
- Experience Editor does not work properly for pages with certain names in sitecore 8
- Limiting number of characters for sitecore single line text field while editing in Experiance editor
- Restrict media validation to only media library
- sitecore experience editor adding new datasource is slow
- While adding a new component to a new page in experience editor not getting added in sitecore 9.3
- How to use EditFrame to edit Multilist field with search
- Where do I set fields that can be edited in Sitecore editor options?
- Sitecore Upgrade to v.8.1-U2 : Experience Editor - A serious error occurred please contact the administrator
- Sitecore Experience editor error in xm cloud partial design
- An error occurred in Sitecore 8.1 Experience Editor
- Remove component data source in Sitecore
- How to make background image editable in Experience Editor in Sitecore using C#
- Rendering components are showing up twice when clicked on Add Here button in Sitecore Experience editor
- Sitecore Experience editor get data source
- Sitecore Experience Editor Ribbon not loading?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
This is a bit of a tricky one as the datasource might still be referenced by other pages, or potentially by the same page in another version or language.
You could use an event handler implementation to scan the renderings on save and look for renderings that are removed (i.e. were in the original, but not the new version being saved). Then, for each one, check if they are referenced anywhere.
A sample implementation is shown in this blog: http://r-coding-sitecoreblog.blogspot.com/2013/10/cleaning-up-datasource-items.html
The other thing to consider is that your datasource might have presentation itself and may have other datasources it references. So, be sure to consider this scenario when cascading your delete from the Experience Editor.