Adding frontend content

wouter's Avatar

wouter

24 Nov, 2012 05:45 PM

I've made a module to allow teams to reservate for a tournament. (sports)
The backend is all fine, and was fun to work with!

Now, how can I generate a meta_id and fill in the meta table fields when they registrate on the frontend?
Is there already a way to insert content from the frontend (by users) or do I need to migrate the meta class from the backend to the frontend?

Thx!

  1. Support Staff 1 Posted by John on 25 Nov, 2012 07:37 PM

    John's Avatar

    Can't you use

    $this->meta = new FrontendMeta()
    

    and

    $this->meta->save();
    

    I don't know if it works but that's the way it works in the backend.

  2. 2 Posted by wouter on 01 Dec, 2012 07:29 AM

    wouter's Avatar

    @John: that's the problem. I would like to use it that way but there is no FrontendMeta.

    I will have a look if I can convert the BackendMeta to a FrontendMeta.

  3. Support Staff 3 Posted by John on 01 Dec, 2012 06:56 PM

    John's Avatar

    for what kind of thing do you need this? Normally meta is created through the backend

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac