跳至内容
菜单
此问题已终结
1 回复
5334 查看

How to create a server action on website ?

"Available on the Website" field value are true on server action.

Can anybody help me on server actions ?


形象
丢弃
最佳答案

Hello @Jar,

You can create server action on website side. To do you need to do following things.

- Create server action and check "Available on the Website"

- Then you will find new text field "Website Path" so enter your action name you want to perform like "extra_info"

- Now save the record it will give you value in "Website URL" like "<hostname>/website/action/extra_info"

Now here website/action/extra_info is your controller so what ever you need to perform python in server action it will come under this controller so that you can use it in for ex. javascript.


Let me know if you need more info

形象
丢弃

Hi @Ronak thanks for the answer, could you explain the last step more with some example, thanks again!

相关帖文 回复 查看 活动
2
8月 24
1396
0
1月 25
1245
2
6月 23
1711
0
5月 23
1728
1
4月 23
31954