I am using the printPageContent function within a printCodeBlock to insert the contents of a specific page into another page by using the page's titlelink.
Is there an equivalent function for inserting content from a news article using its titlelink?
I looked in the functions list but only saw printNewsContent which doesn't seem to do the same thing.
I apologize if I overlooked a function.
Thank you.
Comments
From within a codeblock you should be using object methods to refeence specific items. You can use `echo $obj->getContent();` to print the content of a the object in question.
I can make do with using the printPageContent('titlelink') so hope that you don't remove that function for us non-programmers ...
Substitute `ZenpageNews` for `ZenpagePage` and you will print the content of a specific news article.
`
$newsinsert = new ZenpageNews('insertyourtitlelink');
echo $newsinsert->getContent();
`