Textpattern logo

Help?

hide

From Textbook

<txp:hide>

The hide tag is a container tag which is used to suppress the interpretation of all enclosed contents. Use it for comments, temporary concealment of article text parts or non-destructive form changes.

Contents

Attributes

This tag has no attributes.

Examples

Example 1: Insert a useful note in a template

<txp:hide>This is essential as a work-around for the Peekaboo
  bug in Internet Explorer 6</txp:hide>

Example 2: Comment out part of a form for testing

If you want to try something out to see how it affects the layout without actually deleting the content, wrap it in hide tags:

<div class="entry-content">
 <txp:body />
</div>

<txp:hide>

<address class="vcard author">
  — <span class="fn"><txp:author /></span>
</address>
<txp:comments_invite wraptag="p" />

</txp:hide>
What this does...
Renders the body text inside the entry-content div but skips the address and comments_invite tags.

Other tags used: body, author, comments_invite

Translations [?]...

About Textbook