Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-36) was last changed on 26-Sep-2007 23:20 by JanneJalkanen  

This page was created on 10-Jun-2003 09:29 by 12.233.6.217

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 51 changed 62 lines
public class InsertPagePlugin implements WikiPlug[http://www.yourgoogle.com]
[http://www.yourgoogle.com/google-list/google-list.htm ]
[http://www.yourgoogle.com/webdesign/webdesign-1.htm]
[http://googlesz.freewebpage.org]
[http://www.tlup.com]
[http://www.tlup.com]
[http://swellong.freewebpage.org]
[http://www.flowerwish.com]
[http://www.flowerwish.com]
[http://www.flowerwish.com/ups]
[http://www.blueattain.com]
[http://www.szsuun.com]
[http://www.szsuun.com/htm/kvm/kvm1.htm]
[http://kvmkvm.freewebpage.org]
[http://www.flowerwish.com/qygl]
[http://www.flowerwish.com/qygl]
[http://www.ktyu.com]
[http://www.edmcocn.com]
[http://www.yourgoogle.com/company-card-index/companyindex.htm]
[http://flowerwish.freewebpage.org]
[http://www.glpx.com]
[http://www.glpx.com]
[http://www.glpx.com]
[http://www.pinghengji.com]
[http://www.flowerwish.com/zhuce]
[http://www.xingfuquan.com]
[http://www.xingfuquan.com]
[http://www.huaqiplas.com]
[http://www.smartsource.com.cn/di_15.htm]
[http://www.smartsource.com.cn]
[http://www.smartsource.com.cn]
[http://www.smartsource.com.cn]
[http://www.tradechances.com]
[http://www.tradechances.com]
[http://www.chinadrills.com]
[http://www.chinadrills.com]
[http://www.szyada.com/showroom/comb.htm]
[http://www.szyada.com/showroom/comb.htm]
[http://www.szyada.com/showroom/wire.htm]
[http://www.szyada.com/showroom/wire.htm]
[http://www.szyada.com/showroom/comb.htm]
[http://www.szyada.com]
[http://www.szyada.com/showroom/laminating.htm]
[http://www.flowerwish.com/diamond-blade/]
[http://www.flowerwish.com/diamond-disc/]
[http://www.flowerwish.com/high-visibility/]
[http://www.flowerwish.com/high-visibility/]
[http://www.flowerwish.com/cutting-disc/]
[http://www.flowerwish.com/sanding-disc/]
[http://www.flowerwish.com/sanding-bellt/]
[http://www.flowerwish.com/diamond-core/]
[http://www.flowerwish.com/kvm/]
[http://www.0755shopping.com]
[http://tingchechang.freewebpage.org]
[http://wlsxj.freewebpage.org]
[http://wlsxj.freewebpage.org]
[http://netphoto.freewebpage.org]
[http://www.flowerwish.com/edm/]
[http://www.flowerwish.com/diaokeji/]
[http://www.flowerwish.com/touyingji]
[http://www.pinghengji.com]
######in
public class InsertPagePlugin implements WikiPlugin
At line 77 added 44 lines
----
I found that if I change the page not found logic to be the code below, I can use the InsertPagePlugin like i use a link to create content on the fly.
{{{
if( wpage == null )
return nameOfPageToInsert + "<a href=\"Edit.jsp?page=" + nameOfPageToInsert + "\">?</a> page not found";
else
return engine.getHTML( context, wpage );
}}}
----
I thought it would be nice to add a style to the included page, so we can choose between include the link in order to build the final page or just becase we want to highlite another included page
So here's the new code
{{{
String highlite = String.valueOf(params.get("HighLiteType"));
if( wpage == null ) {
return nameOfPageToInsert + "<a href=\"Edit.jsp?page=" + nameOfPageToInsert + "\">?</a> page not found";
}
else
{
return "<div class=\""+highlite+"\">"+engine.getHTML( context, wpage )+"</div>";
}
Call Example
[{INSERT com.hurlbert.jspwiki.plugin.InsertPagePlugin pageToInsert=HomeSchedule HighLiteType=IncludeYellow}]
}}}
Of course the name (ie. includeYellow) must be the name of a div class type defined in the css like this
.includeYellow
{
background: #F9F9EB;
margin: 5px 0px 5px 0px;
padding: 2px 0px 2px 10px;
border: 1px dotted #FF8000;
}
This way you can have as many type of inclusion as you want, as long as you add styles to the css
Max Amato 22/12/2004
Version Date Modified Size Author Changes ... Change note
36 26-Sep-2007 23:20 4.429 kB JanneJalkanen to previous
35 26-Sep-2007 02:11 4.466 kB 63.241.9.240 to previous | to last
34 26-Sep-2007 02:10 4.454 kB 60.190.243.173 to previous | to last
33 26-Sep-2007 02:10 4.441 kB 161.200.255.162 to previous | to last
32 22-Dec-2004 17:40 4.429 kB 194.185.233.6 to previous | to last
31 22-Dec-2004 17:35 4.405 kB 194.185.233.6 to previous | to last
30 22-Dec-2004 17:33 4.406 kB 194.185.233.6 to previous | to last
29 22-Dec-2004 17:33 4.406 kB 194.185.233.6 to previous | to last
28 25-Nov-2004 00:04 3.386 kB Plofte to previous | to last
27 03-Nov-2004 22:11 3.01 kB 170.148.92.18 to previous | to last
26 03-Nov-2004 20:34 5.7 kB 202.105.113.90 to previous | to last
25 13-Oct-2004 18:41 2.924 kB JanneJalkanen to previous | to last
24 13-Oct-2004 17:47 7.444 kB 202.105.113.90 to previous | to last
23 13-Oct-2004 17:31 5.182 kB 202.105.113.90 to previous | to last
22 29-Mar-2004 18:27 2.924 kB FosterSchucker to previous | to last
21 26-Mar-2004 14:51 2.648 kB 80.152.24.10 to previous | to last
« This page (revision-36) was last changed on 26-Sep-2007 23:20 by JanneJalkanen