IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Page 1 of 2 1 2 >
Topic Options
#36888 - 08/12/11 12:40 PM Variable Paragraph
Kent Moon Offline
OL Newbie

Registered: 02/16/11
Posts: 5
Loc: CA
I have a document that has a conditional paragraph. There are several paragraph that changes based on "code". Paragraphs are different length and some has bold words in them. Please help!

Thank you.

Top
#36891 - 08/12/11 01:50 PM Re: Variable Paragraph [Re: Kent Moon]
Marc-André
Unregistered


Hi Kent,

Please be more specific as to what you need help with.

The best description possible will allow us to provide you with a better solution.

Regards,

Marc

Top
#36894 - 08/12/11 02:47 PM Re: Variable Paragraph [Re: ]
Kent Moon Offline
OL Newbie

Registered: 02/16/11
Posts: 5
Loc: CA
We have a document. One of paragraphs needs to be different for each versions. For Version A, that paragraphs has 10 sentence, for Version B, that paragraph has 8 sentence ...etc.

How do we switch the paragraph based on Version?

Thanks.

Top
#36943 - 08/17/11 09:37 AM Re: Variable Paragraph [Re: Kent Moon]
Benoit Potvin
Unregistered


Hi,

An expression using IF and TEXT_FILE should help you achieve this behavior. You can find a description of the TEXT_FILE expression in the PrintShop Mail Design User Guide (Page 153)

Hope this helps


Edited by Benoit Potvin (08/17/11 09:37 AM)

Top
#37254 - 09/20/11 04:44 AM Re: Variable Paragraph [Re: ]
Kent Moon Offline
OL Newbie

Registered: 02/16/11
Posts: 5
Loc: CA
This worked. Thank you.

Now I want to add variable within RTF. For example, "Your membership expires on @stopdate@ Renew your..."

Is this possible? Thank you.

Top
#37256 - 09/20/11 07:21 AM Re: Variable Paragraph [Re: Kent Moon]
Tyran van Zyl
Unregistered


Yes this is possible, just put the @variable@ in the rtf file.

Also note that you do not need to use the IF statement if you are a variable in your data that matches the name of your text file.

You can do that using something like this:

TEXT_FILE("c:/My Text Files/" & [VERSION] & ".txt")

Regards,

Top
#37259 - 09/20/11 12:31 PM Re: Variable Paragraph [Re: ]
Kent Moon Offline
OL Newbie

Registered: 02/16/11
Posts: 5
Loc: CA
I did that, but it is not populating variable. It just shows up as "Your membership expires on @stopdate@ Renew your..."

Thank you.

Top
#37260 - 09/20/11 12:36 PM Re: Variable Paragraph [Re: Kent Moon]
Eric Lachance
Unregistered


Kent,

If you have PrintShop Mail 7.1, you need to define @stopdate@ as a persistent variable. In the Variables pane, right-click and click Add Variable. Name it stopdate and put in a value. That should work.

If you're on 7.0 you need to use a workaround. Simply create a text object, place it outside of the printable area, type in @stopdate@ in it, then modify the value in the Variables pane for the value you want. You also need to make sure that the text object is played *on top* (or "before") the object where the rtf file is output, so that it's evaluated first (or else the variable wouldn't exist at that time). You can change the object order in the Layout pane.

Top
#37261 - 09/20/11 12:38 PM Re: Variable Paragraph [Re: Kent Moon]
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
Kent,

You must make sure that your variable actually exists in your PSM document. So if you put @stopdate@ in your rtf, the variable must exist in the PSM document already.

The best way is to create a persistent variable. In your Variables window, right-click and choose "Add Variable". Give it the name stopdate. Then, you can right-click on it and say "Edit Expression", and enter whatever expression that you need. The variable is then created, without it being placed in any text boxes. Next time you load up your rtf, it should put the value of the variable where @stopdate@ is.

Hope that helps!

Regards,
Raphaël Lalonde Lefebvre

Top
#37264 - 09/20/11 03:05 PM Re: Variable Paragraph [Re: Raphael Lalonde Lefebvre]
Kent Moon Offline
OL Newbie

Registered: 02/16/11
Posts: 5
Loc: CA
That worked! I did realized variable name is case sensitive. Thank you.

Top
#37273 - 09/21/11 11:37 AM Re: Variable Paragraph [Re: ]
GDGeorge Offline
OL Newbie

Registered: 09/21/11
Posts: 2
Is this feature only available in 7 or later?
I am using PSM V6.1.2 (build1) and can't embed variable names in RTF files, they just appear as @variable name@ without populating

Top
#37276 - 09/21/11 12:19 PM Re: Variable Paragraph [Re: GDGeorge]
Eric Lachance
Unregistered


George,

You posted in the PrintShop Mail Suite 7 forums, it was safe to assume you were on version 7. I'm not sure if that worked in version 6.

Top
Page 1 of 2 1 2 >