Change #_content in native module articles category

61 views
Skip to first unread message

Merak

unread,
Jul 18, 2012, 1:22:07 PM7/18/12
to joomla-de...@googlegroups.com
Change #_content in native module articles category

Hi!
I want to modify a native joomla module that display articles of a category. I want it to display articles of an other prefix tables (both joomla website are ON THE SAME DB).

Notice that I already looked at available extension but none of them would fit.

I did try to modify the router.php by changing the #__tablename with rsc_tablename

But it did not change anything, the article displayed ar still from the intern tables (ARCS_tables)

Thanks!

Lemings

unread,
Jul 18, 2012, 1:41:55 PM7/18/12
to joomla-de...@googlegroups.com
Table prefix is replaced in database class not in router.php so it would not help.

You can take I look in falang component where database object is replaced with the help of plugin.
You can try overriding query methods and pass table prefix in function call, but I am not sure how easy it will be.

I would suggest to read multisites working group list, and ask them how to proceed better.

Regards.

Merak

unread,
Jul 18, 2012, 6:31:34 PM7/18/12
to joomla-de...@googlegroups.com
Thank you so much Lemings for having taken the time to reply.
What I am trying to do is summarize here:
 - I have 2 Joomla websites. ARCS and RSC
 - Ialso have 1 database that contains the tables for both Joomla sites.
 - The table prefix for ARCS is ARCS_
- The table prefix for RSC 2 is RSC_

I are trying to install the module Article category on ARCS and get the articles from RSC_.
 
I did  look for this multisites working group list but could find it anywhere! where can I find it?

Thanks for your help and your time!
Reply all
Reply to author
Forward
0 new messages