problems with snippetBlocks

This forum is for all Flare issues not related to any of the other categories.
Post Reply
yonatanlehman
Propeller Head
Posts: 51
Joined: Mon Sep 18, 2017 6:14 am

problems with snippetBlocks

Post by yonatanlehman »

Hi
I use a snippet to put placeholders in my test where I want to insert image. It is defined like this:

<?xml version="1.0" encoding="utf-8"?>
<html xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd" MadCap:lastBlockDepth="2" MadCap:lastHeight="37" MadCap:lastWidth="718">
<head />
<p class="tbd">TBDIMG</p>
</html>

and looks like this in the XML Editor
madcap4a.PNG
The yellow background is done by the "tbd" class
I have two problems
1) I can't get Flare to insert the snippet as a snippetBlock - it always comes out as snippetText (so the yellow formating is lost)
The instructions say I cna drag the xnippet from the Content tree to an "empt line"
what is an empty line in the XML Editor - a line with a <p> ? How do I create an empty line ?

2) Even if I change the snippetText into a snippetBLock - both the "TBDIMG" text and the yellow formatting does not show up - just a small gray "-" sign
It looks like this in the XML Editor
madcap4.PNG
and like this in the text editor
<p>blah blah</p>
<MadCap:snippetBlock src="../_quickInserts/tbdimg.flsnp" />
<p>more blah blah</p>

help !!!
You do not have the required permissions to view the files attached to this post.
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: problems with snippetBlocks

Post by NorthEast »

The <body> tag is missing from your snippet.

Code: Select all

<body>
<p class="tbd">TBDIMG</p>
</body>
Did you edit the snippet code by hand?
yonatanlehman
Propeller Head
Posts: 51
Joined: Mon Sep 18, 2017 6:14 am

Re: problems with snippetBlocks

Post by yonatanlehman »

Oops....
I must have erased it by accident
Thanks that solved the placement problem as well. If I drag it on to a line with only a <p> then it indeed inserts a blovk.
It would have been nice if Flare would detect an illegal snippet (no body)......

Thanks
Post Reply