Search

So I have a datasource I created and I wanted to customize the processEntry function so I can alter the output of the datasource. Currently I am having trouble Overriding the function in my data.article.php it seems the only way for the changes to take effect is to put the code directly in class.datasource.section.php, however this will run on every section which is not what I want to do.

This is a stripped down version of my data.article.php that doesn't work:

<?php
require_once(TOOLKIT . '/class.datasource.php');
Class datasourcearticle extends SectionDatasource
{
    public function processEntry(Entry $entry)
    {
        //Custom Code    
    }
}

Any Thoughts on this? Not sure if it has to do with order that symphony includes files?

Not too sure I've never quite extended / replaced the processEntry function before usually I edit either the grab or execute

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details