Set contents of page_standard in PHP


(Nic Hubbard) #1

I am creating some new assets using a PHP script that I am writing. These are page_standard assets.

After they are created, I need to set the contents of each asset. How can I do this if I have the asset object?


(Nic Hubbard) #2

Nevermind, I figured it out. :slight_smile:


(Arivarasan) #3

Hi,
I also want to set the content for created standard page using js api . can tell me the function name so that i can set the content .
Thanks


(Nic Hubbard) #4

My question was specific to PHP and calling internal Matrix methods to create and edit assets. So it wouldn’t apply to the JS API.


(Douglas (@finnatic at @waikato)) #5

Is using PHP to call internal Matrix methods a Squiz supported way of creating assets? Would be interesting to get some documentation on the community site if so.


(Nic Hubbard) #6

If you have an SLA I suspect not. But if you run your own server then you can do whatever you want. :slight_smile:


(Mahearnpad) #7

You can do a lot of things using the SOAP API. I use it a lot to create and update assets.