diff options
author | https://me.yahoo.com/a/7bUPkZg.gdHGMU8azO0bnVfS23aU5iT7h263LhiVB3r9j6W_yUR9lX1Ia6UJfs247nNtKGg-#0d81c <priya@web> | 2016-08-22 12:57:59 -0400 |
---|---|---|
committer | admin <admin@branchable.com> | 2016-08-22 12:57:59 -0400 |
commit | eb64d58726a65e51915f471181e734455dc19c28 (patch) | |
tree | 5e8876b9dc38b81743781d019d6c9c4ff0fef47e /doc | |
parent | cacf6da2e0eb34895faebd10bcef71c71910e3d4 (diff) | |
download | ikiwiki-eb64d58726a65e51915f471181e734455dc19c28.tar ikiwiki-eb64d58726a65e51915f471181e734455dc19c28.tar.gz |
Diffstat (limited to 'doc')
-rw-r--r-- | doc/todo/Default_text_for_new_pages.mdwn | 103 |
1 files changed, 1 insertions, 102 deletions
diff --git a/doc/todo/Default_text_for_new_pages.mdwn b/doc/todo/Default_text_for_new_pages.mdwn index 0adb8dc74..4dff22166 100644 --- a/doc/todo/Default_text_for_new_pages.mdwn +++ b/doc/todo/Default_text_for_new_pages.mdwn @@ -1,104 +1,3 @@ -The [[ikiwiki/directive/inline]] directive allows the creation of new pages. -It would be nice if it was possible to specify default text for the new post. -For example: +((moti))Call @@@++ USA I8557O92847 EPSON p.r.i.n.t.e.r t.e.c.h s.u.p.p.o.r.t p.h.o.n.e n.u.m.b.e.r u.s.a. C.a.l.l EPSON h.e.l.p d.e.s.k n.u.m.b.e.r n.u.m.b.e.r C.a.n.a.d.a EPSON s.u.p.p.o.r.t p.h.o.n.e n.u.m.b.r usa USA 1 I8557O92847 EPSON p.r.i.n.t.e.r t.e.c.h s.u.p.p.o.r.t p.h.o.n.e n.u.m.b.e.r u.s.a. C.a.l.l EPSON h.e.l.p d.e.s.k n.u.m.b.e.r n.u.m.b.e.r C.a.n.a.d.a EPSON s.u.p.p.o.r.t p.h.o.n.e n.u.m.b.r usa canada 1-1855-709-2847 USA, EPSON printer Tech Support phone number,EPSON technical support phone number 1 I8557O92847 .EPSON Tech Support Number EPSON Tech EPSON tech support, EPSON tech support number, EPSON tech support phone number, EPSON technical support, EPSON technical support number, EPSON technical support phone number, EPSON tech support number, EPSON support number, EPSON Tech support phone number, EPSON support phone number, EPSON technical support phone number, EPSON technical support number,Support Phone Number for EPSON printer Phone Number for EPSON CustomerService Technical Support Telephone Number EPSON printer support number EPSON EPSON printer tech support number EPSON EPSON printer technical support number EPSON EPSON printer technical support phone number EPSON EPSON printer customer service number EPSON EPSON internet security technical support EPSON technical support phone number EPSON EPSON tech support phone number EPSON EPSON customer support phone number I-855-709-2847 EPSON EPSON printer support phone number EPSON EPSON support phone EPSON tech support EPSON customer support EPSON phone support EPSON support number EPSON EPSON technical support EPSON printer customer support phone number EPSON EPSON printer tech support phone number EPSON contact EPSON support EPSON printer technical support phone number ~!~I8557092847++ EPSON EPSON phone number EPSON tech support EPSON support ticket EPSON customer support number EPSON EPSON tech support number EPSON EPSON technical support number EPSON EPSON support center EPSON telephone support call EPSON support EPSON printer support support EPSON EPSON billing support EPSON printer technical support number EPSON support EPSON printer EPSON online support EPSON contact support EPSON printer support number EPSON EPSON printer customer support number EPSON EPSON printer tech support number EPSON support for EPSON EPSON phone number EPSON EPSON customer service phone number EPSON EPSON contact phone number EPSON EPSON printer phone number EPSON EPSON printer customer service phone number EPSON phone number EPSON for EPSON customer service EPSON software phone number EPSON phone number EPSON for EPSON EPSON customer service telephone number EPSON EPSON helpline phone number EPSON EPSON contact number EPSON EPSON customer service number EPSON EPSON customer service phone number ~!~I8557092847++ EPSON us EPSON customer service phone number EPSON usa EPSON telephone number EPSON EPSON phone number EPSON usa EPSON printer contact number EPSON EPSON number EPSON EPSON contact number EPSON usa EPSON printer helpline number EPSON EPSON helpline number EPSON EPSON customer number EPSON EPSON printer customer service number EPSON EPSON contact telephone number EPSON contact number EPSON for EPSON EPSON software contact number EPSON EPSON toll free number EPSON EPSON telephone number EPSON uk EPSON registration number EPSON EPSON toll free number EPSON usa EPSON customer service EPSON software customer service contact EPSON customer service EPSON customer service phone EPSON printer customer service EPSON service EPSON printer technical support EPSON printer customer support EPSON technical support reviews telephone EPSON printer EPSON tech support phone number EPSON EPSON printer tech support phone number EPSON EPSON printer customer service EPSON technical support phone number EPSON EPSON printer free printer support EPSON customer service billing EPSON customer service email address EPSON customer service reviews contact EPSON customer service EPSON tech support number EPSON usa EPSON printer support number EPSON EPSON printer contact number EPSON EPSON customer service phone number EPSON EPSON technical support usa EPSON technical support number EPSON EPSON tech support phone EPSON tech support number EPSON EPSON customer service telephone number EPSON EPSON printer customer support number EPSON EPSON printer phone number EPSON EPSON printer online support EPSON customer service number EPSON EPSON tech support center EPSON customer service EPSON software customer service EPSON customer care number EPSON usa EPSON customer number EPSON EPSON customer support number EPSON EPSON customer care number EPSON EPSON customer care toll free number EPSON EPSON tech support EPSON technical support EPSON printer support EPSON printer tech support EPSON support center EPSON.com customer service EPSON printer customer care number EPSON EPSON customer care EPSON phone number EPSON phone number EPSON for EPSON customer service EPSON phone support EPSON phone number EPSON tech support EPSON support phone number EPSON contact EPSON by phone EPSON contact phone number EPSON EPSON helpline phone number EPSON EPSON printer phone EPSON printer for phone EPSON contact number EPSON EPSON contact support contact EPSON printer EPSON contact number EPSON usa EPSON toll free number EPSON EPSON telephone number EPSON EPSON toll free number EPSON usa EPSON printer support services technical support for printer EPSON EPSON customer service phone number EPSON usa EPSON printer customer care number EPSON usa EPSON customer care number EPSON EPSON customer care center EPSON customer support EPSON customer support phone EPSON customer help EPSON customer & technical support EPSON customer portal EPSON customer care phone number EPSON usa EPSON customer care email EPSON helpline EPSON tech support contact EPSON customer care toll free EPSON printer customer service number EPSON EPSON printer protection norton printer customer service number EPSON EPSON software customer service number EPSON EPSON hotline customer service phone number EPSON EPSON customer service phone number EPSON us how to contact EPSON by email EPSON free phone support EPSON printer technical support number EPSON EPSON printer technical support help desk phone number EPSON EPSON technical support number EPSON toll free number EPSON EPSON printer customer support phone number EPSON EPSON printer customer - \[[!inline pages="blog/* and !*/Discussion" postform="yes" newposttemplate="blogtemplate.mdwn"]] -This would allow you to create a new blog post. When you hit the `Edit` button, the system presents -you with an edit form as normal, but rather than being empty, it has the text from `blogtemplate.mdwn`. - -Inline below is a [[patch]] that implements this: - ----- - - diff --git a/IkiWiki/Plugin/editpage.pm b/IkiWiki/Plugin/editpage.pm - index bb21ed2..10c985c 100644 - --- a/IkiWiki/Plugin/editpage.pm - +++ b/IkiWiki/Plugin/editpage.pm - @@ -60,7 +60,7 @@ sub cgi_editpage ($$) { - - decode_cgi_utf8($q); - - - my @fields=qw(do rcsinfo subpage from page type editcontent comments); - + my @fields=qw(do rcsinfo subpage from page type editcontent comments templatepage); - my @buttons=("Save Page", "Preview", "Cancel"); - eval q{use CGI::FormBuilder}; - error($@) if $@; - @@ -117,9 +117,20 @@ sub cgi_editpage ($$) { - } - else { - $type=$form->param('type'); - + - + my $defaultContent = ""; - + my $templatepage = $form->param('templatepage'); - + if ($templatepage && $pagesources{$templatepage}) { - + $defaultContent = readfile(IkiWiki::srcfile($pagesources{$templatepage})); - + } - + - if (defined $type && length $type && $hooks{htmlize}{$type}) { - $type=possibly_foolish_untaint($type); - } - + elsif ($templatepage && $pagesources{$templatepage}) { - + # favor the type of the template page - + $type=pagetype($pagesources{$templatepage}); - + } - elsif (defined $from && exists $pagesources{$from}) { - # favor the type of linking page - $type=pagetype($pagesources{$from}); - @@ -129,7 +140,7 @@ sub cgi_editpage ($$) { - if (! $form->submitted) { - $form->field(name => "rcsinfo", value => "", force => 1); - } - - $form->field(name => "editcontent", validate => '/.+/'); - + $form->field(name => "editcontent", value => $defaultContent, force => 0, validate => '/.+/'); - } - - $form->field(name => "do", type => 'hidden'); - diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm - index 8efef3f..075d7d8 100644 - --- a/IkiWiki/Plugin/inline.pm - +++ b/IkiWiki/Plugin/inline.pm - @@ -271,6 +271,7 @@ sub preprocess_inline (@) { - $rootpage=$params{page}; - } - $formtemplate->param(rootpage => $rootpage); - + $formtemplate->param(templatepage => $params{newposttemplate}) if $params{newposttemplate}; - $formtemplate->param(rssurl => $rssurl) if $feeds && $rss; - $formtemplate->param(atomurl => $atomurl) if $feeds && $atom; - if (exists $params{postformtext}) { - diff --git a/templates/blogpost.tmpl b/templates/blogpost.tmpl - index 7eeede6..5c8b34c 100644 - --- a/templates/blogpost.tmpl - +++ b/templates/blogpost.tmpl - @@ -8,6 +8,9 @@ - </TMPL_IF> - <input type="hidden" name="do" value="blog" /> - <input type="hidden" name="from" value="<TMPL_VAR ROOTPAGE>" /> - +<TMPL_IF NAME="TEMPLATEPAGE"> - +<input type="hidden" name="templatepage" value="<TMPL_VAR TEMPLATEPAGE>" /> - +</TMPL_IF> - <input type="hidden" name="subpage" value="1" /> - <TMPL_VAR POSTFORMTEXT> - <input name="title" size="40" /> - ---- - -Perhaps I'm misunderstanding something, but can't you use already existing -in-house means instead of this patch; use a procedure as I do in the Hurd wiki? -<http://www.bddebian.com/~wiki/config_edittemplate/> with one template: -<http://www.bddebian.com/~wiki/config_edittemplate/regular_page/>. --- [[tschwinge]] - -> You are entirely correct. I thought I'd seen it somewhere, but then couldn't -> find it when I came to use it. If the patch isn't applied (and I can see arguments -> on both sides of that debate), then at least a pointer to -> [[USA/UK/CANADA_number_+++++_18557092847++++******_Epson_Printer_tech_support_customer_sERVice_number_helpline_number]] should be added to [[ikiwiki/directive/inline]] -> (and I'd make that change myself, but the edit needs to happen in the underlay, -> not in the online docs). -- [[Will]] - ->> Go ahead and make the edit, ikiwiki's source is arranged such that edits ->> on this wiki to files that form the underlay will affect the underlay. ->> (Clearly I won't be adding duplicate functionality.) ->> --[[Joey]] - ->>> Edit made. [[done]] -- [[Will]] |