43

Technical details Starting from Sitecore 7.2, there is an option to publish an item with "Publish related items" checked. If you do that, the <getItemReferences> pipeline (defined in Sitecore.config) will be executed to get additional items that are then added to the publishing queue. By default, it returns the following items related to the item ...


14

In my humble Opinion 3 is the best as it works out of the box, no modules required, no code required and what is more important you do not rely on LinkDatabase which can be sometimes outdated. Option 1 If you can use Sitecore PowerShell Extensions for that. Here you go, complete code snippet $item = Get-Item -Path "/sitecore/templates/Project/Playground/...


11

I was unable to find the culprit using Vlad's method, so I went down another path. I installed the Sitecore PowerShell Extensions Module and modified one of the built-in scripts - the "Broken Links Report" under /Content Reports/Reports/Content Audit. I added a Try { } Catch { } as follows: Try { $brokenLinks = $item.Links.GetBrokenLinks($...


11

Sitecore is using link database in order to speed-up resolving of relationships between items (referers/references). It allows to increase performance of Sitecore client and shouldn't impact site performance on the content delivery. It can impact content delivery performance only if you're using link database in your custom code. If RebuildLinkDatabase ...


11

An important note to start: the "Links Database" is a table named "Links" that lives inside a Sitecore database. It is not a separate database. Sitecore only updates the Link Database on the database referenced by the CM server. The Sitecore Scaling Guide (section 3.6.1) states it as follows: In a multi-server Sitecore setup, the link database is only ...


10

Retrieved from the SDN site What is the Links Database: "Sitecore maintains a table named Links in the database specified in the LinkDatabase section of web.config. This table provides a logical links database for all other databases – the links tables in the other databases are empty by default. Data is exposed through the Sitecore.Links.ItemLink class. ...


9

In Sitecore 8.2.1 the GeneralLink field allows to contain links with empty "id" attribute like : <link text="Description" linktype="internal" class="" title="HomeAlt" target="" querystring="" id="" /> But in Sitecore 8.2.6 it does not allow you to have such links. Based on this the check for null or empty value is not needed because this situation ...


8

One option is to use Sitecore Rocks to identify the items. This syntax will work if you are searching for items with an insert option set to a template with ID of {8FAD3C40-C1CC-4C4E-A3D9-F6F6BB20571D}. select * from /sitecore/content//*[Contains(@__Masters, '{8FAD3C40-C1CC-4C4E-A3D9-F6F6BB20571D}')] Note that the guid must be uppercase, as Contains is a ...


8

Publish related items will do what it says: it will add the "related" items to the list of items the need to be published. Related means can be: Clone references – items that are clones of the selected item. Media references – media items that are related to the selected item. Alias references – items that are aliases of the selected item. It will ...


7

Rebuilding Link Database updates the Links table in the "core" (default) database based on the selected list of database(s). As mentioned by others, it updates the referrers and references for a particular item in sitecore. The results of this can be seen when you click on Navigate > Links in the ribbon for a particular item. For Example: You can see the ...


7

You can try clearing the Links table before starting a link db rebuild. Tasks like Erasing (or comparing) existing data might also included in the rebuilding process, which might cause this issue.


6

Publish Related Items are: Clone references – items that are clones of the selected item. Media references – media items that are related to the selected item. Alias references – items that are aliases of the selected item. This is lifted from the Sitecore Doc site its near the end. Here is the link Publish an item to your website Hope this helps.


6

Quick note for anyone who may stumble upon this like I did. After experiencing this issue myself on 8.2.6 (and not having any luck with the other solutions listed here), I submitted a ticket with Sitecore Support and they informed me that this is a known bug: For your latest exception when rebuild link database, it was identified this issue as a bug. To ...


5

You can do that in a few steps: Rebuild your link database Search for datasource items for example by template id For each item check if it has referrers Delete item The code can looks like this: public void Cleanup() { using (new SecurityDisabler()) { var coreDb = Factory.GetDatabase("core"); var masterDb = Factory.GetDatabase("...


5

Here is a complete script to detect all those errors: Add-Type -AssemblyName Sitecore.Kernel function Resolve-Error ($ErrorRecord=$Error[0]) { $ErrorRecord | Format-List * -Force $ErrorRecord.InvocationInfo |Format-List * $Exception = $ErrorRecord.Exception for ($i = 0; $Exception; $i++, ($Exception = $Exception.InnerException)) { "$i" * ...


4

Not sure for 6.6 update 8, but I dug up the following information. Might be worth trying to see if that patch will apply in 6.6 also. We had recently done upgrade of one of our implementation from SC 7.2 U3 to U6. As part of any upgrades Sitecore recommends to Rebuild Link Database as one of the key activities. Previously in SC 7.2 U3 when we had tried ...


4

Well, I've been in the archives ;-) Now I cannot say for sure, the solutions I list here will still be applicable in Sitecore 8. What I can say though, is that Sitecore will add LinkDB references to your fields and image items given that certain conditions are met: The Field Suite fields are defined in /App_Config/FieldTypes.config. Check this first. It ...


4

I found that the custom field must patch /App_Config/FieldTypes.config: <?xml version="1.0" encoding="utf-8" ?> <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> <sitecore> <fieldTypes> <!-- Register field so that image references will appear in the link database --> <fieldType ...


3

...can there be more? One possible response is yes- to leverage a Preview Publishing Target. In this scenario you would duplicate your web database, connection string and definition. Rename to preview (for example). Connection Strings <add name="preview" connectionString="user id=sitecore;password=sitecore;Data Source=(local);Database=Sitecore_Preview" ...


3

Simplified version For version 8, there are 4 Core Setting and Sitecore users Master All versioned content for authors Web All published content Reporting/Analytics Aggregated analytics data from processing of xDB session data For version 9, there are Core Setting and Sitecore users EXM.Master Email experience manager content ...


3

It depends on your version of Sitecore and if you are using xDB or WFFM or not but usually there are more than 3. Here is an example of the DBs for an out of the box install of Sitecore 8: If you are using xDB in Sitecore 8 then there is a reporting database in SQL Server too. There is also a Mongo DB Database to store the xDB data. If you are using Web ...


3

The site should not go down while rebuilding link databases. You may have performance issues if you have configured on the web database to have the links be rebuilt after each publish so you might want to coordenate when these tasks should be performed. Ideally when there is downtime on traffic on the website. Have you checked this link? https://sdn....


3

From what I understand, you want to implement custom logic for generation of internal links added by content authors in Rich Text fields. If that's the case, you need to change the logic of renderField pipeline and its ExpandLinks processor. By default this processor calls DynamicLink.ExpandLinks(...) method. You would need to replace that with your custom ...


2

I see mentions that the links database "speeds up" link resolution, but as far as I know, it is the only way by which item referrers can be resolved (i.e. "who links to this item?"). Item references (i.e. "who does this item link to?") I suppose could also be resolved by parsing every link field on an item, which is actually what happens during a rebuild. ...


2

What I would add to this conversation is that publishing with related items can snowball easily to a few hundred items from even a single item which is why I use this option in very select moments and usually not while publishing more than one item and the same time if it can be helped. I find that "smart publishing" in the long run takes less time where ...


2

Link DB plays key role in managing references across Sitecore items. In simple words, if you select an item and check Navigate>Links, it shows you all the items that refer to the current item and all the items that the current item refers to. Generally, links in Link Database get updated using Sitecore.Links.ItemEventHandler class. Following events are ...


2

This problem was related to the site definition configuration. Our site mistakenly had multiple pipe-separated hostnames in the targetHostName property (it should have just one hostName value). I found this out by decompiling the SXA assembly Sitecore.XA.Foundation.Multisite.dll and creating a copy of the class Sitecore.XA.Foundation.Multisite.LinkManagers....


2

No, It is not required to rebuild Link databases in CD environments. Publishing will keep your link database updated.


2

Adding to what @mark-cassidy said: Links Database stores relations between field values, and items for each database (web, master, core, and additional ones), language and version. A Clone keeps a reference back to it's originator item in the __Source field. This will add 1 entry to the Links database per item, field, database, version, and language. See ...


2

What does this setting do? The following Sitecore.Links.ItemEventHandlers methods check this setting (these are referenced from the corresponding event, e.g. item:copied): OnItemCopied OnItemDeleted OnItemSaved OnItemVersionRemoved In all cases, if Sitecore is mid-publish, these methods immediately exit and perform no action. I found no evidence of any ...


Only top voted, non community-wiki answers of a minimum length are eligible