It's all about the answers!

Ask a question

[closed] Publishing - How exactly do you create and save snippets in Document Studio?


Jonas Winkler (112) | asked Mar 05 '21, 11:16 a.m.
closed Sep 22 '23, 5:58 a.m. by Ralph Schoon (63.3k33646)

 Hello!


The documentation clearly states that you should be able to add snippets from the palette into a document template [1], and that there should be a section called 'snippets'.

The documentation also states that it's possible to add custom snippets to that palette section [2], but no information is given about where I actually have to save snippets in order for them to appear in the palette. The snippets section is not even visible over here.

Could anyone provide some insights on this?

Thanks, Jonas.

The question has been closed for the following reason: "The question is answered, right answer was accepted" by rschoon Sep 22 '23, 5:58 a.m.

Accepted answer


permanent link
Subramanya Prasad Pilar (4.6k16) | answered Mar 05 '21, 1:30 p.m.
edited Mar 05 '21, 1:45 p.m.
Hi Jonas,
You will see the snippets in Palette view of Studio in both cases:
1. When Studio is not integrated with Document Builder
Place the snippets (reusable .dta files) within %rpe_home%\snippets folder. Restart Studio or click File->New->Document Template. You will find them in Palette view.
Note: If you place the snippet in a folder within %rpe_home%\snippets, it will not be shown in Palette view. There is a defect created for the same.
2. When Studio is integrated with Document Builder. In Preferences -> Remote Services, set the URL (https://<server>:<port>/rpeng), User and Password.
In Document Builder, upload snippet (Templates) and tag it as snippet-<name> as documented in
https://www.ibm.com/support/knowledgecenter/SS6RHZ_7.0.2/com.ibm.rational.pe.publishing.doc/topics/t_rpeng_snippet.html#connectingtothecentralmanagementcomponent
You will find it in Palette view of Studio.
Ralph Schoon selected this answer as the correct answer

Comments
Subramanya Prasad Pilar commented Mar 05 '21, 1:37 p.m.

I suggest changing the setting "Enable Palette Drawers" to "No" in Preferences->Document Design.

One other answer



permanent link
Wiley Ridley (111) | answered Mar 19 '21, 9:54 p.m.
edited Mar 19 '21, 9:54 p.m.
 Hi Jonas,
You will see the snippets in Palette view of Studio in both cases:
1. When Studio is not integrated with Document Builder
Place the snippets (reusable .dta files) within %rpe_home%\snippets folder. Restart Studio or click File->New->Document Template. You will find them in Palette view.
Note: If you place the snippet in a folder within %rpe_home%\snippets, it will not be shown in Palette view. There is a defect created for the same.
2. When Studio is integrated with Document Builder. In Preferences -> Remote Services, set the URL (https://<server>:<port>/rpeng), User and Password.
In Document Builder, upload snippet (Templates) and tag it as snippet-<name> as documented in
https://www.ibm.com/support/knowledgecenter/SS6RHZ_7.0.2/com.ibm.rational.pe.publishing.doc/topics/t_rpeng_snippet.html#connectingtothecentralmanagementcomponent happy wheels
You will find it in Palette view of Studio.

Thank you I will give it a look