From: Brett G. <br...@ey...> - 2007-02-14 20:09:38
|
Cool you are looking into this, Asheesh. We've wanted to do something similar with opensourcecinema.org We've also looked into embedded movies, as well. Do you have plans for the blogging module to be able to include HTML? Ciao! Brett On 14-Feb-07, at 2:21 PM, Victor Stone wrote: > On 2/14/07, Victor Stone <fou...@gm...> wrote: >> The code is below. > > oops, like Jon suggests you probably want to store the original url as > well, patch here: > > $this->SetFormValue($fieldname, $vals); > $this->_remote_url = $url; // NEW LINE > > and here: > > if( $upload_id ) > { > // next two lines are NEW: > $uploads =& CCUploads::GetTable(); > > $uploads->SetExtraField($upload_id,'remote_url',$form->_remote_url); > > Then in your skin in the upload_listing macro you check for the > extra field > > <tr tal:condition="exists:record/upload_extra/remote_url"> > <td>Remote URL</td> > <td><a href="${record/upload_extra/remote_url}">${record/ > upload_extra/remote_url}</td> > </tr> > > This last bit is untested but the rest works. > > 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 > Cct...@li... > https://lists.sourceforge.net/lists/listinfo/cctools-cchost > |