Is there any example on how to use fivestar without cck in a custom content type? thanks -- Ivan Sergio Borgonovo http://www.webthatworks.it
Ivan Sergio Borgonovo ha scritto:
Is there any example on how to use fivestar without cck in a custom content type?
Hi, have you read the README.TXT file ? M. -- Michel 'ZioBudda' Morelli michel@ziobuddalabs.it Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ziodrupal.net MSN: michel@ziobuddalabs.it JABBER: michel@ziobuddalabs.it
On Thu, 05 Aug 2010 14:05:32 +0200 Michel Morelli <michel@ziobuddalabs.it> wrote:
Ivan Sergio Borgonovo ha scritto:
Is there any example on how to use fivestar without cck in a custom content type?
Hi, have you read the README.TXT file ?
Yes that's exactly the place where I learnt it has: " * An easy-to-use Form API element type for use in other modules" but I couldn't find any example. -- Ivan Sergio Borgonovo http://www.webthatworks.it
On 2010/08/05, at 8:16, Ivan Sergio Borgonovo wrote:
On Thu, 05 Aug 2010 14:05:32 +0200 Michel Morelli <michel@ziobuddalabs.it> wrote:
Ivan Sergio Borgonovo ha scritto:
Is there any example on how to use fivestar without cck in a custom content type?
Hi, have you read the README.TXT file ?
Yes that's exactly the place where I learnt it has:
" * An easy-to-use Form API element type for use in other modules"
but I couldn't find any example.
The Fivestar config page tells you to go to your content type, where you can engage Fivestar without CCK. Have you checked your content type? -- - Hiro Hiroaki Honshuku, A-NO-NE Music, Greater Boston http://a-no-ne.com http://anonemusic.com
On Thu, 5 Aug 2010 11:46:30 -0400 A-NO-NE Music <madflute@anonemusic.com> wrote:
The Fivestar config page tells you to go to your content type, where you can engage Fivestar without CCK. Have you checked your content type?
Yeah but I need to control the widget. I don't need to rate the node, I need to rate content (that's not a node) to which the node refers to. I'd like to put several widgets in the node edit form. I hope I could exploit further fivestar avoiding to build my own submit hook. eg. I was hoping to be able to write something like: $form['fs1'] = array( '#type' => 'fivestar', '#content_id' => 1, // some layout parameters etc... ... ); $form['fs2'] = array( '#type' => 'fivestar', '#content_id' => 2, ... ); and in hook_insert/update something like fivestar_magic($node); that will invoke the votingapi functions... or just use ajax or whatever... -- Ivan Sergio Borgonovo http://www.webthatworks.it
participants (3)
-
A-NO-NE Music -
Ivan Sergio Borgonovo -
Michel Morelli