Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: JComment and many tables in components
Pages: [1]   Go Down
  Print  
Author Topic: JComment and many tables in components  (Read 1265 times)
0 Members and 1 Guest are viewing this topic.
gristic
Newbie
*

Karma: 0
Offline Offline

Posts: 1


Email
« on: February 09, 2010, 03:14:08 »

Hi,

I develop component that has several different tables (djs,artist,vj,others...). How to integrate JComment into my component?
The guide you provided for one table is not a problem. However, how to perform with several different tables?

Thanks in advance
Logged
smart
Administrator
Hero Member
*****

Karma: 146
Offline Offline

Gender: Male
Posts: 2579



WWW
« Reply #1 on: February 09, 2010, 14:22:15 »

You could make as many plugins as you need (for each object's group). For example:

com_myextension_djs.plugin.php
com_myextension_artists.plugin.php


And then load plugins as:

Code: (php)
JComments::showComments($dj->id, 'com_myextension_djs', $dj->name);
and
Code: (php)
JComments::showComments($artist->id, 'com_myextension_artists', $artist->name);

The first code will use first plugin and works with tables related to DJs, and the second one - with artists. This is simple Wink
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: JComment and many tables in components
 
Jump to: