tag:blogger.com,1999:blog-5251195438749660493.post3639775371328573870..comments2024-03-27T18:06:31.934-07:00Comments on Sitecore Gadgets: YouTube Integration with Sitecore 6.0Ivanhttp://www.blogger.com/profile/09998430037866709466noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-5251195438749660493.post-21168176154542316462009-10-08T11:25:25.834-07:002009-10-08T11:25:25.834-07:00When you expand a branch in content tree the data ...When you expand a branch in content tree the data provider pulls out data of item's children and grand-children. It's two levels down from the branch root item. The GetChildIDs method is called for branch root item and for every single children of it.<br />To pull out external data for two levels, you need to build logic that fetches data depending on what item called the GetChildIDs method.<br />For example (somewhere inside GetChildIDs method):<br />......<br />if (itemDefinition.ID == RootID)<br />{<br /> //Get list of CD items<br />}<br />else if (itemDefinition.TemplateID == CDTemplateID)<br />{<br /> // Get list of tracks for current CD item<br />}<br />......Ivanhttps://www.blogger.com/profile/09998430037866709466noreply@blogger.comtag:blogger.com,1999:blog-5251195438749660493.post-26719479949223241902009-10-08T01:35:44.782-07:002009-10-08T01:35:44.782-07:00Yes that structure is what I want to achieve.
I k...Yes that structure is what I want to achieve. <br />I know we can populate a single level of Data Provider driven items but how would we go about Fetching tracks when the CD parent is Expanded?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5251195438749660493.post-11116587270533421842009-10-07T09:13:59.374-07:002009-10-07T09:13:59.374-07:00Sounds as appropriate solution to use data provide...Sounds as appropriate solution to use data provider.<br />Here is a mockup for content structure that you will have with your CD data provider:<br />- CD container (Sitecore item which is a root item for your external data)<br />--- CD1 item (represents external CD)<br />------ Track1 (represent CD1's track1)<br />------ Track2 (represent CD1's track2)<br />------ .... so forth<br />--- CD2 item<br />--- .... so forth<br /><br />CD items and their tracks will be fetched dynamically from your external source.Ivanhttps://www.blogger.com/profile/09998430037866709466noreply@blogger.comtag:blogger.com,1999:blog-5251195438749660493.post-59001750854673289782009-10-07T07:00:52.314-07:002009-10-07T07:00:52.314-07:00Hi Ivan,
I am trying to make a Data Provider that...Hi Ivan,<br /><br />I am trying to make a Data Provider that can be hierarchically generated. E.g. I would get a list of CD's from an external data source and then when the user clicks on the logical CD item it can be expanded to show its tracks as Children. We must assume the Tracks need to be fetched Dynamically and separate to the initial CD list. Any idea if this will be viable?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5251195438749660493.post-22019703508543715212009-03-08T23:02:00.000-07:002009-03-08T23:02:00.000-07:00Thanks guys! I'll try to add it to our trac system...Thanks guys! I'll try to add it to our trac system as soon as I have time.<BR/>Same thing about control that will make it easier to render YouTube video on front-end.Ivanhttps://www.blogger.com/profile/09998430037866709466noreply@blogger.comtag:blogger.com,1999:blog-5251195438749660493.post-84460152009496959502009-03-07T02:49:00.000-08:002009-03-07T02:49:00.000-08:00Whoah, too cool!Have you done anything (or plan) t...Whoah, too cool!<BR/><BR/>Have you done anything (or plan) to make it easier to insert youtube videos on the frontend?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5251195438749660493.post-13632998388683257102009-03-07T00:14:00.000-08:002009-03-07T00:14:00.000-08:00Hi Ivan,Thank you very much. Very cool!If possible...Hi Ivan,<BR/><BR/>Thank you very much. Very cool!<BR/><BR/>If possible, it would be great if you could convert this project into a Sitecore Shared Source module.<BR/><BR/>http://trac.sitecore.net/IndexAnonymousnoreply@blogger.com