This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

kevin.vermeulen
kevin.vermeulen

Hi all,

On October 1, there's this plugin that can change the content type of a CMS page: https://octobercms.com/plugin/xeor-contenttype However, this one doesn't work. Does anyone have a solution for V2?

daftspunky
daftspunky

Hey Kevin,

To change the content type of a CMS page, add the following code to the code section

function onStart()
{
    $this->setResponseHeader('Content-Type', 'application/json');
}

I hope this helps!

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.