Powershell script can be used in a data source to solve complex problems in Sitecore.
· For this you can create script which is used to provide a list of child items of a parent item within a data source. For example, the script returns all the child items of the event folder that were created from the event detail template.
· The script tag and full path of the script must be specified in the data source.
· The script can be used in a template data source, a data source location, or a rendering data source.
· The script must return either one item or a list of items for Sitecore to display to the end user.
Here is my YouTube video for the same
Stay tuned for more such articles, tips and tricks.
No comments:
Post a Comment