Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5357 มุมมอง

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!

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ส.ค. 24
1413
0
ม.ค. 25
1300
2
มิ.ย. 23
1717
0
พ.ค. 23
1752
1
เม.ย. 23
31971