Page 2 of 2

Re: Cached Youtube API Client (CaYAC)

Posted: Fri Feb 19, 2010 7:59 pm
by nhaack
I just thought, you could also go for a foreach loop... something like

Code: Select all


{foreach from=$videos item=video name=vid}
{if $smarty.foreach.vid.first}
... do something for first video
{else}
... do something for the other videos
{/if}
{/foreach}

Could you post your template code again? Do you get any error messages or what do and don't you see? With a very simple foreach loop... do you see all the videos? Is the video feed actually providing enough videos?

Just some questions that popped into my mind ...

Hope it helps

Best
Nils

Re: Cached Youtube API Client (CaYAC)

Posted: Mon Mar 01, 2010 8:46 pm
by JohnnyB
Sorry for the long delay  - foreach works and there are enough videos.  I haven't had a chance to work with it recently though :(

Re: Cached Youtube API Client (CaYAC)

Posted: Wed Mar 10, 2010 3:17 pm
by sirphuzz
Hi!

This tag seems to do exactly what I need, but I can't make it work. I'm using CMSMS 1.4.1, is that too old? I can't find any minimum required version in the help section. I put the tag in, but nothing shows on the page, whether I use the "name" parameter or not.

What is the connection between api_youtube and api_twitterfeed (The help section for CaYaC states to use the api_twitterfeed in the template, why is this needed?)

Thanks,

Carl

Re: Cached Youtube API Client (CaYAC)

Posted: Wed Mar 10, 2010 7:17 pm
by nhaack
Sorry Carl,

I've obviously made a mistake in the sample embedding  :-[.

Please call the plug-in as follows (and drop that twitter reference):

{api_youtubefeed name="some_youtube_user"}

This should do the trick. Please let me know if that worked.

Best
Nils