Jump to content

giom

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

giom's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I tried to modify a native joomla module that do the trick using the internal tables, by changing the $com_path = but i am getting a Fatal error. Native code: $com_path = JPATH_SITE.'/components/com_content/'; My try : $com_path = '/homez.420/kmxsiksf/rsc/components/com_content/helpers/route.php';
  2. What should I do to share articles from a same category across multiple, separate Joomla! 2.5 websites but host on the same DataBase (different tablepr?fix)? I want to be able to write articles of a category on one site and allow my other site to display all the articles of this category (to avoid duplicates). Ps: There is too many articles to call them one by one into many different modules. (Most content is different but there is some that is the same.)
  3. I have several websites on the same db running on joomla 2.5. I would like to display the articles from a category (article +sub-category) that are from an other website but on the same db. I was thinking to use the native joomla module that displays the articles from a category and to modified its php and ask it to pickup the category from an other table (bbb_tables) Here is the helper.php of the native module (in the FTP) that displays articles of a category. (../module/display_articles_category ): it is programmed to play with the internal aaa_tables "bbb_" is the DB I want the module to use so I guess I should add that piece of code somewhere: $db = & JDatabase::getInstance($options);$options['prefix'] = 'bbb'; Somewhere around here : but how? defined('_JEXEC') or die; $com_path = JPATH_SITE.'/components/com_content/'; require_once $com_path.'router.php'; require_once $com_path.'helpers/route.php'; JModelLegacy::addIncludePath($com_path . '/models', 'ContentModel'); abstract class modArticlesCategoryHelper { public static function getList(&$params) { // Get an instance of the generic articles model $articles = JModelLegacy::getInstance('Articles', 'ContentModel', array('ignore_request' => true)); // Set application parameters in model $app = JFactory::getApplication(); $appParams = $app->getParams(); $articles->setState('params', $appParams); Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.