I wanted to include the text of our Terms of Service page in the confirmation mail generated when a user registers. I wanted it to come from the article so that, in the event that the terms are modified by the site owners, they only have to edit that page and the text is carried through to all functions where it was needed. I did not want the site owners to have to mess around with cutting and pasting updated text into a languag string file.
Here is the solution I finally came up with:
I created a new CB field of type Query, called it TOS RETRIEVAL, which created the field name cb_tosretrieval
I set it to show on profile but made it a hidden field by typing the word "hidden" (without quotes) in the CSS Class box.
For Parameters/Query I used the following code:
SELECT `introtext` FROM `y2vfp_content` WHERE `id` = 127;
Someone else would substitute the "y2vfp" part with whatever prefix your tables have, and you would also need to use the article id from the article you intend to use. The article id for mine was 127.
In my email template I am now able to insert the article contents with the substitution [cb_tosretrieval]