I am unable to migrate data into the Sitecore/Content Field items through GatherContent module - sitecore

I am unable to fill data into the Sitecore/Content Field items through GatherContent module in Sitecore for content gathering mapping to Sitecore items.
I am unable to migrate the Home data items from Gathercontent to the sitecore/Content/Home data items.
I mean to field to field level data mapping or sharing.
Kindly prefer the below images.
I want to migrtate GC(Gathercontent)home item title and text data into
Sitecore fields Home items title and text.
Thanks in Advance.

I got the solutions.
In content migration from Gather content to sitecore items , doesn't
directly map with the already created Sitecore items,it create new
items to the Sitecore with new GC Content Id:,GCPath
[shared]:,MappingId: and Last syn date.
kindly prefer the below image
just update this all same data with the already created sitecore items field.
suppose want to add in the home item field ..
Now click the Update from Sitecore ribbon gathercontent update button to update the content and select the appropriate project and template.
next
Now confirm the locations items and click update , this update already created all Sitecore items.
comment below if you find best solutions, for this.

Related

List column(Text) not saving/showing data after setting attribute multiple=true on Attachments control so to enable uploading multiple Files at a time

By default we can only upload one file at a time so I followed solution given here(https://www.c-sharpcorner.com/article/attach-multiple-files-to-sharepoint-list-item-with-default-attachment-of-new-for/). Now I am unable to store RFI No column(text). It maybe stores value on form submit but the value does not show. Following is my column setting:
List view and inspect element:
I simply added the code in NewForm.aspx which works and enables user to upload multiple files but now New Item form does not save RFI No value which is not in anyway dependent on Attachments field
If I log the value of RFI No column to workflow history list through Workflow it is showing the saved value there..
If so, the value is saved in the RFI No column. Looks like there are some code in the list view page which hided the column value, that's why the value does not show.
You could click Edit page in the site settings to check if there are script editor or content editor web partin the view page.

Creating Managed Metadata field in html sharepoint

I am showing sharepoint list in jsgrid in custom html.
One of the column in list is of managed metadata type. I want to show this field in jsgrid along with editing. Possible?
If I understand you want to render a managed metadata field in your own jsgrid.
I believe this tutorial could be a start for you
https://github.com/SharePoint/PnP/tree/master/Components/Core.TaxonomyPicker

Sitecore users to add fields to template

I'm building a products table to show all the products attributes. However I need to allow users to add/edit/remove those attributes from the products later on in production without any dev work. I thought about branch templates but when I edit the branch template, existing products are not getting updated. Maybe I'm looking in the wrong direction? Any suggestions?
In an older project we have a similar setup with product and attributes and used a custom database to help us out:
products are stored as items in Sitecore
attributes are stored as items in Sitecore
a custom database stores the values of all attributes for all products
publish events are used to keep the custom database in sync when deleting products
on a product template we added an extra tab in the content editor including an aspx page that offers an editor on our custom database for that product. We use the products Sitecore ID and display all possible attributes in an editable way.
Most attributes have simple string values but that is extendable. Our attributes have a type (string, bool, (multi-)list, ..) and we use that to create the editor. The lists refer back to Sitecore items (a parent is selected on the attribute item).
Adding an extra tab in the editor can be done by creating a new item in the core database (/sitecore/content/Applications/Content Editor/Editors) that point towards your aspx file. In the standard values of your product template, you select the created "editor" in the Appearance section. (note that this is in Sitecore 6 - might have been changed although the path to the editors is still valid)
This solution does mean that the values of your attributes are stored outside Sitecore, but it worked for our requirements.

Sitecore 8: The model item passed into the dictionary is of type 'Sitecore.Mvc.Presentation.RenderingModel'

I'm randomly getting the following error when I try to login to the Sitecore back end.
The model item passed into the dictionary is of type 'Sitecore.Mvc.Presentation.RenderingModel', but this dictionary requires a model item of type 'Sitecore.ExperienceAnalytics.Client.Mvc.Presentation.ExperienceAnalyticsLineChartViewModel'.
I experience this issue after I have build the Sitecore link databases using Sitecore Launchpad --> Control Panel --> Rebuild link databases.
When I clear the Sitecore cache using http://{your website}/sitecore/admin/cache.aspx this is error is not throwing for sometime.
Is there anyway to eliminate this error permanently ?
When you Remove Broken Links on the Core database, the Model property of the ExperienceAnalyticsLineChart rendering is erroneously deleted.
Navigate to the Core database in the Content Editor of your Sitecore instance at http://{your-sitecore-url}/sitecore/shell/default.aspx?sc_content=core.
Navigate to the ExperienceAnalyticsLineChart rendering in the item tree at /sitecore/client/Applications/ExperienceAnalytics/Common/Layouts/Renderings/ExperienceAnalyticsLineChart.
Set the Model field to Sitecore.ExperienceAnalytics.Client.Mvc.Presentation.ExperienceAnalyticsLineChartViewModel, Sitecore.ExperienceAnalytics.Client.
Save the item and click OK if prompted that the item contains broken links.
Log back into Sitecore and the Launchpad will load.
In your view you're using Sitecore.ExperienceAnalytics.Client.Mvc.Presentation.ExperienceAnalyticsLineChartViewModel instead of Sitecore.Mvc.Presentation.RenderingModel witch is the default.
If you want to use your own model you have to register it in Sitecore
Navigate to /sitecore/layout/Models and add a new model in the model type add "Sitecore.ExperienceAnalytics.Client.Mvc.Presentation.ExperienceAnalyticsLineChartViewModel, YourAssemblyName"
go to your View rendering item in sitecore and select your model in the Model field.
https://community.sitecore.net/developers/f/8/t/109 looks like they have same issue like you

URLs of pages on which item appears in Sitecore

In Sitecore, how can I get a list of all pages on which an item appears? Thanks
Internally Sitecore maintains a database of references between Items called the Link Database. You can query this by using the "Links" dropdown on the "Navigate" tab on the Content Editor ribbon. That may give you the information you need.
(You can also query the Links Database via code - See example code on http://laubplusco.net/sitecore-item-extensions-get-referrers-as-items/ for one example of doing this - or the docs in SDN)
If the relations to your target Item are via selection field types (multilist, treeview etc) or via the DataSource property of Renderings/Sublayouts/etc then you should be able to select the item you're interested in and click the "Links" dropdown to see a list of the relationships Sitecore has recorded. This will list system relationships (which template does this item use) as well as the sort of relationships you're interested in where one item points at another item.
Note that this approach cannot tell you about some types of relationship: the most common sort being ones which are calculated at runtime. (EG API queries, or searches) because those relationships don't exist in the Links Database.
-- edited to add --
You ask about getting the URLs for these Items. In code you can get the URL for an item by calling LinkManager.GetItemUrl() and passing in the item you're interested in. That gives you the public website URL, rather than the Sitecore Item Path that you'd get directly from the Link Database.