Page 1 of 1

[solved] {process_pagedata} since 1.11 not working

Posted: Wed Oct 10, 2012 1:52 pm
by NikNak
[EDIT - This issue is apparent only with the Advanced Content module in place (currently v0.9.4 beta)}

Hi all

Since cmsms 1.11 I havent managed to get {process_pagedata} to really do anything.

For example - in the backend in the field: Smarty data or logic that is specific to this page if I add:
{assign var="foo" value="bar"}

and put {process_pagedata} at the top of my template, the pagedata isn't processed and the {$foo} is not available to the template.

With the 1.11+ install, in the plugins folder, function.process_pagedata.php has now been replaced with content.process_pagedata.php - the contents of the new file being:
<?php // This is a stub file ?>
So perhaps this is why nothing happens now.

How do I get {process_pagedata} to work these days?

Many thanks
Nik
(running cmsms 1.11.2)

Re: {process_pagedata} since 1.11 not working

Posted: Wed Oct 10, 2012 2:40 pm
by uniqu3
Just had a quick test as you described in 1.11.2 added the assign to "Home" called it three times, on top of template right after process pagedata, inside head and inside body, as well as testing each individually.
$foo variable was available in each section and gave output of bar.

Re: {process_pagedata} since 1.11 not working

Posted: Wed Oct 10, 2012 4:02 pm
by NikNak
Thanks Goran - could you possibly try one thing for me?

If you now change the value of that variable in the pagedata - is that updated variable available within the template? or is it stuck on the previous value?

If I put the same smarty within the metadata field - all works exactly as I expected it to. I'd just rather not use it for pagedata.

Many thanks
Nik

Re: {process_pagedata} since 1.11 not working

Posted: Wed Oct 10, 2012 4:10 pm
by uniqu3
As result i get updated value which is bar2.

Re: {process_pagedata} since 1.11 not working

Posted: Wed Oct 10, 2012 4:54 pm
by NikNak
Dang!!

The issue only occurs when AdvancedContent is used. Funny how long these small issues can take to trace!

Thanks for your help again Goran

Regards
Nik