Content last modified Monday 6 March 2017
hop to #bottom
Categories:
Author:
About It:
Rate it:
  • Helpful?
  • 1 Yes
  • 3 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

Creating Article Popups in Textpattern

Recently I wanted to open up the article body in an new window. On the page I had set up I exposed the title and the excerpt and then an link to where the article body was opened up in a new window. Below I will briefly cover how I did.

This is in the article form.

<h2><txp:title /></h2> <txp:excerpt /> <p><txp:dmn_popup_article_link width="595" height="550" /></p>

We also need to create a new form which we can call popup_article, in that form we place the html markup for the popup page, and where you want the article to be exposed place this tag <txp:dmn_popup_article />.

And at-least we need to put some magic to textpattern so it will understand all this. To bad I have not got the time to convert this code to a decent plugin, but so for now I only post the code, but it is quite simple to just copy paste it into a file and place it in textpatterns plugin cache dir

Alot of this code is borrowed from the way txp handles popup comments.

continued…

Article Request Count:

Archived [?]: orphaned: broken links

Initially released:
February, 19, 2006
Posted here:
26 Mar 2006
Article modified:
21 Apr 2009

If there is a comment form at the Information URL, you may want to leave your comments/questions there for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern