#208: I wish couple who desperately take every means to conceive a child would realize that adoptions is a wonderful alternative. A child who becomes your child through adoptions completes a family. Just as when you commit to your souse or partner there are no biological ties, yet a family is formed. This child enters a family the same way! It is not blood and flesh that form a famaily, but the heart. -- Michele Johnson" class="at-xid-6a010534988cd3970b0120a5b36451970c" src="https://steveivy.typepad.com/.a/6a010534988cd3970b0120a5b36451970c-pi" title="The Way I See It #208"/>
Entries for #208
page 1 of 1
The Way I See It
Text Resources and Post Formatting
I recently found a solution to a problem that had been bugging me for some time.
Conversant has this really cool email gateway - all posts to this site go out to anyone who is subscribed to the site and has the list feature turned on.
So, when I write a post like #item2084">this one, the post goes out over email, and the <blockquote> tags are stripped. How do my subscribers know where the quote is?
To the rescue: Conversant's #resourceTypes">text resources. A resource is like a Manila/Radio shortcut: it's a defined piece of text that gets replaced with something else when the content gets rendered. Resources are most often used for links and images, but Conversant has a powerful resource type called a Text Resource.
A text resource can have anything in it - html, text, and Conversant template macros. So I essentially write my own no-arg macro called'quote':
<-[#if](http://monkinetic.blog/tag/if) condition="ioInterface&[#39](http://monkinetic.blog/tag/39);email&[#39](http://monkinetic.blog/tag/39);"--> ----- quote --<-[#else](http://monkinetic.blog/tag/else)--><blockquote><-[#endif](http://monkinetic.blog/tag/endif)-->
If the post is being rendered for email, it inserts the "----quote----" text, otherwise it renders the blockquote tag. A partner resource called'endquote' inserts "------" or the closing blockquote tag.
Now, when excerpting text, I start the excerpt with |quote| and close it with |endquote|, and it gets rendered legibly both on the site and in the list email.
page 1 of 1