get blog postId in plugin

thomas's Avatar


16 Mar, 2012 01:28 PM


great to see that there is a new secretary version. so first off all thanks Mikael for your work.

I'm working on a little comment plugin for the blog module. clerk and receptionist are working fine, but I need the current post id for writing the comments in the database.
is there a simple way to get the post ID in the plugin? (something like the postId() function in the template)

thanks in advance

  1. 1 Posted by thomas on 17 Mar, 2012 09:55 AM

    thomas's Avatar

    ok, I've found a solution -> insert hidden field in form with postId();

  2. Support Staff 2 Posted by Mikael on 19 Mar, 2012 02:27 PM

    Mikael's Avatar

    Interested to see how this plugin turns out!

  3. 3 Posted by Cermmerve on 30 Mar, 2012 01:40 AM

    Cermmerve's Avatar


    I'm sorry I post in a wrong section.

    Best regards!

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


? 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