Author Topic: template renderring <roundcube:object />  (Read 4093 times)

Offline jamil_isayyed

  • Jr. Member
  • **
  • Posts: 37
template renderring <roundcube:object />
« on: October 09, 2013, 04:50:47 AM »
Hello Folks,

i am stuck in this problem, i have successfully implemented my plugin but i am facing a problem in my templates. i have added the following code in the html template:

Code: [Select]
<roundcube:object name="plugin.myTestContent" />

and as in the documentation i have added the handling in the plugin php file as follow:
Code: [Select]
//in the init
$this->register_handler('plugin.myTestContent', array($this, 'processMyTestContent'));

//i have added a function
 function processMyTestContent($args)
  {
                $content = "i am a test content";
                return ($content);
   }


the problem is this is not resolved and i don't see the text in the view (page), but in case i used <roundcube:object name="version" /> this tag is processed and i get the value?!!!

so any idea why my tag i snot processed? what i should do?

Thanks in advance.
Jamil Isayyed

Offline jamil_isayyed

  • Jr. Member
  • **
  • Posts: 37
Re: template renderring <roundcube:object />
« Reply #1 on: October 09, 2013, 05:38:00 AM »
Well i have changed the roundcube: object to a container as follow:

Code: [Select]
<div id="contenttest">
<roundcube:container name="plugin.myTestContent" id="contenttest"/>
</div>

and still facing the same problem, any idea about how to solve this issue?

Thanks,
Jamil Isayyed