pdnh_TextProbe revealed
Well, PDnH development continues steadily. Other jobs are starting to slow the progression of development now, but things are progressing - honest guv!
The first major hurdle has been overcome; pdnh_TextProbe is a new function that searches through text looking for PDnH code hints. These hints control classes like the column generator, infomation boxes and dynamic content lists. In fact, you could write your own class and tie it to a PDnH code hint, which is the idea eventually.
Code hints use this syntax;
< (!)–PDnH(name) arguments START –>
In reality, the exclamation marks are not in brackets, thus hiding the code hint from the user when the page is rendered normally (viewing source will reveal the hints). The arguments are read into an array and passed to the registered plug-in targetted using the (name) part of the tag. All code hints should START and END, even those that have no internal content. pdnh_TextProbe can handle nested code hints, for example; a three column block within another column block. Below is how a code hint should end its block.
< (!)–PDnH(name) END –>
Currently I have only written two plug-ins for pdnh_TextProbe, ‘column’ and ‘box’, but more are following. When PDnH is released I invite you all to write more. Below is an image of the column plug-in in action. These columns are rendered using < div > tags unlike the current tabular columns.

Leave a Reply
You must be logged in to post a comment.