I’ve been trying to do something very similar to this but I haven’t been able to get it to work.
I have an RSS feed being imported via FeedX. It pulls everything in fine though it looks really ugly.
I need to change the [+SOURCE+] variable.
simply: If [+SOURCE+] == ’twitter’ then [+SOURCE+] Twitter Update.
So far I have the following:
FeedX is installed and working perfectly.
FeedX snippet is properly installed.
I created a FeedXmod snippet with the following code (probably totally wrong syntax):
<?php
$source->runSnippet('FeedX', array('param1'=>var1); //I have no idea what the param1 and var1 should be, if this is even right at all)
if ($source == 'twitter'){
$source = 'Twitter Update';
}
?>
I am assuming (once the param1 and var1 are fixed) $source = [+source+] created by FeedX.
Once again, I am trying to intercept the [+SOURCE+] variable and modify it before it’s put on the page.
Hopefully that made sense.