[Clipart] [Fwd: Re: [Cctools-cchost] placing php script in CChost XML file]

Jon Phillips jon at rejon.org
Thu Jan 11 17:31:45 PST 2007


Ryan and others, here is a simple new way to call up from templates on
ccHost and get a list including tags, etc....this is useful for pages
like home.xml, etc.

Cool?

Jon

-------- Forwarded Message --------
> From: Victor Stone <fourstones.net at gmail.com>
> To: Brett Gaylor <brett at eyesteelfilm.com>
> Cc: cctools-cchost at lists.sourceforge.net
> Subject: Re: [Cctools-cchost] placing php script in CChost XML file
> Date: Thu, 11 Jan 2007 14:56:39 -0800
> 
> On 1/11/07, Brett Gaylor <brett at eyesteelfilm.com> wrote:
> > > <script type="text/javascript"
> > > src="http://ccmixter.org/media/api/query?
> > > tags=remix&limit=5&template=links&chop=20&format=docwrite"
> > >> </script>
> > >
> > > The template 'links' can be found in cctemplates/formats but you can
> > > make that any mini-template anywhere in your 'skins' path..
> >
> > Sorry, not quite sure how to do that.  If I want to use my existing
> > template, and I want to put this script into home.xml, what would the
> > process be?
> 
> normally you would simply put that script tag (replacing ccmixter.org
> with osc) into home.xml where you want the links to appear, however I
> just checked and it seems you are quite a few months out of sync so
> that won't work.
> 
> In home.xml you can put the following:
> 
> <tal:block define="recs php: CC_tag_query('remix, 'all',
> 'upload_date', 'DESC', 5)" />
> <div tal:repeat="item recs">
>   <a href="${item/file_page_url}" class="cc_file_link">${item/upload_name}</a>
> </div>
> 
> and will list out the last 5 remixes as links.
> 
> VS
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Cctools-cchost mailing list
> Cctools-cchost at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cctools-cchost
-- 
Jon Phillips

San Francisco, CA
USA PH 510.499.0894
jon at rejon.org
http://www.rejon.org

MSN, AIM, Yahoo Chat: kidproto
Jabber Chat: rejon at gristle.org
IRC: rejon at irc.freenode.net




More information about the clipart mailing list