Content Show/Hide

From View from the Bench Wiki

Jump to: navigation, search

Contents

Introduction

This plugin is called Content Show/Hide and I've been using it for some time now. Content Show/Hide grew out of my old Movable Type blogging days. I believe that I used this plugin when I used Movable Type before switching to WordPress. To me, it seemed that there were a few things missing from the plugin; well at least from the "ease of use" standpoint. The first problem is that if you wanted a different message show you had to hack in to the code of that plugin. This plugin gives you an Admin Panel page that allows you to customize how the (more) tag works; whether to show more of the entry on the same page or to open the entire entry in a new page. It also allows you to easily set the message displayed by the (more) tag.

Installation

To install this plugin, simply drop it in the "wp-content/plugins/" directory. Then go to the "Plugins" area of your Admin Panel and activate the plugin.

Configuration

To configure the plugin, go to the "Options" area of your Admin Panel and select the "ShowHide" entry. There are three configurable elements.

  • Show More - This is the message displayed when you want your readers to display the entire post on a new page. It replaces the WordPress entry tag. If it is left blank, then no link to display the entire post on a new page will be available for the reader.
  • Show More Right Here - This is the message displayed when you want your readers to display the entire post in the current position on the same page. It replaces the WordPress entry tag. If it is left blank, then no link to display the entire post in the current position on the same page will be available for the reader.
  • Hide - This is the message displayed when you want your readers to close up the entire post back to the original state on the same page. It is the mate to the "Show More Right Here" entry above and MUST be defined if the "Show More Right Here" tag is defined. If the "Show More Right Here" tag is defined and the "Hide" tag is not defined, the "Hide" tag will be replaced with a default value.
  • NOTE Both "Show More" and "Show More Right" Here cannot be left blank! If both are left blank, the Show More message will be used with a default message.
  • NOTE You can have entries in both the "Show More" and "Show More Right Here" tags. The entry will then give the option to the reader that they can view the entire post displayed on a new page or displayed at the current cursor position.

Download the Content Show/Hide plugin

Screenshot

Here is what the Content Show/Hide Admin Panel looks like:

Image:csh_shot.jpg

Credits

All the credit here for the original programming goes to scriptygoddess. I simply took what she did and expanded it a bit and wrote an Admin Panel interface. Thanks, scriptygoddess, for the excellent plugin.

Download

Download the Content Show/Hide plugin

Personal tools