KrazyEyez
KrazyEyez

Reputation: 11

Joomla 3.x onContentAfterSave not triggering

my over all goal is to grab the articles content after they have saved it and send it though my API. It's stated that onContentAfterSave is fired after they save to the database, my database is getting updated, but nothing coming though api.

Im using Joomla! 3.2.3 Stable Owtest is my api call, it currently has hard coded data in it. I feel im either extending the wrong class or missing an import. code below.

<?php

// no direct access
defined('_JEXEC') or die;
jimport('joomla.plugin.plugin');


class plgContentHelloworld extends JPlugin
{
  public function onContentAfterSave( $context, &$article, $isNew  ) 
  {
    owTest();

   }

 }
?>

Xml Code:

<?xml version="1.0" encoding="utf-8"?>
<extension version="2.5" type="plugin" group="content" method="upgrade">
     <name>plg_content_helloworld</name>
    <author>Keith</author>
    <creationDate>March 18th, 2014</creationDate>
    <copyright></copyright>
    <license>GNU General Public License</license>
    <authorEmail></authorEmail>
    <version>1.0</version>
    <files>
            <filename plugin="helloworld">helloworld.php</filename>
            <filename>index.html</filename>
    </files>
</extension>

file names are helloworld.php and helloworld.xml respectfully.

Upvotes: 0

Views: 676

Answers (1)

KrazyEyez
KrazyEyez

Reputation: 11

what solved my problem was passing article by value and not reference

Upvotes: 1

Related Questions