Cookbook /
AddDeleteLine2-Talk
Summary: Talk page for AddDeleteLine2.
Maintainer: Nils Knappmeier
This space is for User-contributed commentary and notes. Please include your name and a date along with your comment.
Errors
With php 5.4.11 (pmWiki 2.2.47, 1&1) I get an error while adding a line:
- Deprecated: Function split() is deprecated in /cookbook/adddeleteline2.php on line 268
- Warning: Cannot modify header information - headers already sent by (output started at /cookbook/adddeleteline2.php:268) in /pmwiki.php on line 1163
- Warning: Cannot modify header information - headers already sent by (output started at /cookbook/adddeleteline2.php:268) in /pmwiki.php on line 1164
Any help? --Jochen
Maybe try to use
preg_split
(or explode
?) instead. http://stackoverflow.com/questions/10543382/split-deprecated. gb February 12, 2013, at 06:34 PM
Comments
- Now that you have the ability to create new pages with this recipe, it can be used as more powerful version of newpagebox. A newpage form could be created which has input fields whose value will be added to a newpage on creation. This is similar to using a newpage template, but now the template can be populated with user submitted values from the newpage form! Martin Fick October 24, 2006, at 03:54 PM
- This recipe provides a very good way of managing categories. I put this at the bottom of each page:
Categories: ||border=0 (:adl append cat:) (:table border=0 cellpadding=0 cellspacing=0:) (:cell valign=top:) (:adl form cat:)(:input submit ok "Add category:":) (:cell valign=top:) (:pagelist fmt=#catdropdown group=Category name=-*PageTemplate*,-Category list=normal:) (:adl template "||[[! {dd} ]] || (:adl delete:) ||":)(:adl end:) (:tableend:)
and add this to the
(:pagelist:)
templates:
[[#catdropdown]] (:input select dd {=$Name} "{=$Namespaced}":) [[#catdropdownend]]
~ Squander Two
Talk page for the AddDeleteLine2 recipe (users?).