Wednesday 05 July 2006 6:20:14 pm
I'm trying to implement the following task -
There is an object of my custom class - publications (which is a CSV file with links to publications). This object sits in an content tree in a folder company. When I type in http://localhost/index.php/company/publications/ then I need data from this file to be parsed and passed to the custom template. How can I know from the PHP class in module what is current node to reach current object properties? I have tried this construction and it doesn't work: {let pubs=fetch( 'AgiPubs', 'fetchPubs',hash('node_id',$module_result.node_id) ) a=$module_result.node_id} {$a|attribute( show, 3 )} {let} Parameter $node_id that arrives to fetchPubs is empty and $a appears to be empty either. I also found out that inside of a module class "$tpl->variables['']['node']->NodeID" - returns the desired number What would be the best way to get properties of a current object from a custom module class? Sorry for a bit messy questions, Best regards, Mihhail
|