10 years ago
0
Topic

I want to send a confirmation mail to user and admins with links for reading, editing and deleting of the article. I want to use the email field. For the construction of the links I need the id of the new article in the mail body.

Using of field #art_id# is not possible because it returns the id only in the case that the article already exists.

In the email fields source code I saw that the expressions "[pk]" and "[id]" in mail subject and mail body will be replaced with different IDs. Both are not documented. I tried both:
o the expression "[pk]" was replaced with the ID of the new entry
o the expression "[id]" was replaced by an other number I don't know.

I have following questions:
o Is "[pk]" in every case the right expression to get the new ID?
o What means "pk" ?
o What is the Number returned by expression "[id]"?

Thanks
Jochen

Get a VIP membership