Jump to:

23550 Posts in 19336 Topics by 2890 members

General Questions

SilverStripe Forums » General Questions » Creating simple admin module help

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 322 Views
  • Kenson
    Community Member
    2 Posts

    Creating simple admin module help Link to this post

    Dear All,

    Good day to you. I am just started learning SS about 1 month ago and trying to build a simple admin site module for learning purpose.
    I am using SS v3.0.5 with CMS. My module layout is look like this:

    Marker has relationship with Sub Markers

    Below is my problem would like solve it:
    1. On submit validation and display error message below the field box
    - my current validation is look like this:

    Targeted to achieve:

    2. Stop deletion action and redirect page to main and display error message if validation not pass (onBeforeDelete function)
    This action activated when Marker still has child in Sub Markers. So when I delete the Marker I will check whether there is child in Sub Markers. If yes, then delete method will stop and the page redirect to main and display error message.

    For more detail please view script attached.

    Appreciate if someone can help me on above problem. Thank you very much. : )

    Attached Files
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.