Creating resources with modCLI and template variables

Hi,
I need to create resources from the command line, so I gave modCLI a try and it worked very well.:

php modcli.php resource/create template=1 pagetitle="my title" content="test" tv.article_id="123" debug

But I just can’t figure out how to fill template variables. I’ve successfully created the template variable article_id and assigned it to my template with the ID 1, but neither tv.article_id="123" nor article_id="123" is working.

What’s the correct syntax when I need to create a new resource with some TV content?

Thank you!

Try tv1="123"

Post must be at least 20 characters.

Thank you very much! My article_id-TV had the ID 2, so tv2="123" did the trick.

1 Like

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.