trying to fix the new styles which are all broke to hell!!!!
removed convertCarriageReturns from article added two of the new content items for 7
This commit is contained in:
parent
8e219cdc75
commit
ac15407a7e
14 changed files with 373 additions and 354 deletions
|
|
@ -17,16 +17,66 @@ addPrototypes();
|
|||
rearrangeImportNode();
|
||||
addNewStyles();
|
||||
addRobots();
|
||||
#deleteOldContent();
|
||||
#addNewContent();
|
||||
deleteOldContent();
|
||||
addNewContent();
|
||||
$versionTag->commit;
|
||||
purgeOldRevisions();
|
||||
|
||||
finish($session); # this line required
|
||||
|
||||
#-------------------------------------------------
|
||||
sub addNewContent {
|
||||
print "\tAdding new content.\n";
|
||||
my $home = WebGUI::Asset->getDefault($session);
|
||||
$home->addChild({
|
||||
className=>"WebGUI::Asset::Wobject::Article",
|
||||
title=>"Welcome",
|
||||
menuTitle=>"Welcome",
|
||||
url=>"home/welcome",
|
||||
ownerUserId=>'3',
|
||||
groupIdView=>'7',
|
||||
groupIdEdit=>'4',
|
||||
description=>q|<p>The <a href="http://www.webgui.org">WebGUI Content Engine</a> is a powerful and easy to use system for managing web sites, and building web applications. It provides thousands of features out of the box, and lots of plug-in points so you can extend it to match your needs. It's easy enough for the average business user, but powerful enough for any large enterprise.</p>
|
||||
|
||||
<p>There are thousands of <a href="http://www.jeffmillerphotography.com">small</a> and <a href="http://www.brunswicknt.com">large</a> businesses, <a href="http://phila.k12.pa.us">schools</a>, <a href="http://www.csumathsuccess.org">universities</a>, <a href="http://beijing.usembassy.gov/">governments</a>, <a href="http://www.gama.org">associations</a>, <a href="http://www.monashwushu.com">clubs</a>, <a href="http://www.sunsetpres.org">churches</a>, <a href="http://www.k3b.org">projects</a>, and <a href="http://www.comparehangouts.com">communities</a> using WebGUI all over the world today. A brief list of some of them can be found <a href="http://www.plainblack.com/webgui/campaigns/sightings">here</a>. Your site should be on that list.</p>|,
|
||||
templateId=>'PBtmpl0000000000000002'
|
||||
});
|
||||
$home->addChild({
|
||||
className=>"WebGUI::Asset::Wobject::Article",
|
||||
title=>"Key Benefits",
|
||||
menuTitle=>"Key Benefits",
|
||||
url=>"home/key-benefits",
|
||||
ownerUserId=>'3',
|
||||
groupIdView=>'7',
|
||||
groupIdEdit=>'4',
|
||||
description=>q|
|
||||
<p>
|
||||
<b>Easy To Use</b> - WebGUI is absolutely easy to use. WebGUI 7 has a completely revamped user interface to make it even easier to use. There are lots of visual cues, consistent icons, helper apps, and a huge repository of built-in help files.
|
||||
</p>
|
||||
<p>
|
||||
<b>Workflow & Versioning</b> - Never again worry about content getting put on your site that you don't want there. Never again lose your old content after making an edit. And never again push out new changes until you're absolutely ready to release them. WebGUI's workflow and versioning system if fast, flexible, powerful, and easy to use.
|
||||
</p>
|
||||
<p>
|
||||
<b>Everything's a Template</b> - Worry nevermore about your CMS forcing you into a mould that doesn't suit you. With WebGUI everything a site visitor can see is a customizable template, so you can make it look exactly how you want. Moreover if you're the type that strives for excellence rest in the knowledge that all the templates that come with WebGUI are XHTML 1.0 strict compliant.
|
||||
</p>
|
||||
<p>
|
||||
<b>Localization</b> - WebGUI's entire user interface is set up to be internationalized. Visit one of the WebGUI Worldwide member sites to get translations for your language. Stay there to get support and services in your native language. Feel confident in the knowledge that WebGUI will work with your native characters because it's UTF-8 compliant. On top of that WebGUI allows you to customize dates, currency, and weights to match your locale.
|
||||
</p>
|
||||
<p>
|
||||
<b>Pluggable By Design</b> - With WebGUI 7 you have many plug-in points to add your own functionality. And best of all, the API is stable and standardized. Write it today and it will still work years from now and survive all upgrades.
|
||||
</p>
|
||||
|,
|
||||
templateId=>'PBtmpl0000000000000002'
|
||||
});
|
||||
}
|
||||
|
||||
#-------------------------------------------------
|
||||
sub deleteOldContent {
|
||||
print "\tDeleting old content\n";
|
||||
foreach my $id (qw(TKzUMeIxRLrZ3NAEez6CXQ sWVXMZGibxHe2Ekj1DCldA x_WjMvFmilhX-jvZuIpinw DC1etlIaBRQitXnchZKvUw wCIc38CvNHUK7aY92Ww4SQ)) {
|
||||
my $asset = WebGUI::Asset->newByDynamicClass($session, $id);
|
||||
$asset->purge if (defined $asset);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -150,7 +200,8 @@ sub addNewStyles {
|
|||
}
|
||||
}
|
||||
print "\t\tSetting all pages to use new style.\n";
|
||||
$session->db->write("update wobject set styleTemplateId='stevestyle000000000001' where styleTemplateId in ('B1bNjWVtzSjsvGZh9lPz_A','9tBSOV44a9JPS8CcerOvYw')");
|
||||
$session->db->write("update wobject set styleTemplateId='stevestyle000000000003' where styleTemplateId in ('B1bNjWVtzSjsvGZh9lPz_A','9tBSOV44a9JPS8CcerOvYw')");
|
||||
$session->setting->set("userFunctionStyleId","stevestyle000000000003");
|
||||
print "\t\tDeleting old styles.\n";
|
||||
my $asset = WebGUI::Asset->new($session,'9tBSOV44a9JPS8CcerOvYw');
|
||||
$asset->purge if defined $asset;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
#title:style01.css
|
||||
#menuTitle:style01.css
|
||||
#url:style01.css
|
||||
#processAsTemplate:yes
|
||||
#title:css01.css
|
||||
#menuTitle:css01.css
|
||||
#url:style1/css01.css
|
||||
#mimeType:text/css
|
||||
body, html
|
||||
{
|
||||
|
|
@ -14,7 +13,7 @@ body, html
|
|||
#main
|
||||
{
|
||||
width:800px;
|
||||
background: url('^FileUrl(style01/main_bg.jpg);') repeat-y;
|
||||
background: url('^FileUrl(style1/main_bg.jpg);') repeat-y;
|
||||
height:100%;
|
||||
margin-left:auto;
|
||||
margin-right:auto;
|
||||
|
|
@ -32,7 +31,7 @@ body > #main
|
|||
{
|
||||
width:800px;
|
||||
height:133px;
|
||||
background: url('^FileUrl(style01/header.jpg);') top left no-repeat;
|
||||
background: url('^FileUrl(style1/header.jpg);') top left no-repeat;
|
||||
margin-bottom:0px;
|
||||
position:relative;
|
||||
}
|
||||
|
|
@ -53,7 +52,7 @@ body > #main
|
|||
|
||||
#main #mainContent
|
||||
{
|
||||
background: url('^FileUrl(style01/orange_left01.jpg);') left top no-repeat;
|
||||
background: url('^FileUrl(style1/orange_left01.jpg);') left top no-repeat;
|
||||
width:100%;
|
||||
height:100%;
|
||||
margin-top:0px;
|
||||
|
|
@ -100,50 +99,50 @@ body > #main
|
|||
height:25px;
|
||||
display:block;
|
||||
float:left;
|
||||
background: url('^FileUrl(style01/nav1_off_left.jpg);') no-repeat top left;
|
||||
background: url('^FileUrl(style1/nav1_off_left.jpg);') no-repeat top left;
|
||||
}
|
||||
#main .mainNav_2 div .left {
|
||||
background: url('^FileUrl(style01/nav2_off_left.jpg);') no-repeat top left;
|
||||
background: url('^FileUrl(style1/nav2_off_left.jpg);') no-repeat top left;
|
||||
}
|
||||
#main .mainNav_1 div .center, #main .mainNav_2 div .center {
|
||||
height:25px;
|
||||
display:block;
|
||||
float:left;
|
||||
background: url('^FileUrl(style01/nav1_off_center.jpg);') repeat-x top left;
|
||||
background: url('^FileUrl(style1/nav1_off_center.jpg);') repeat-x top left;
|
||||
color:white;
|
||||
font-family:arial, verdana;
|
||||
font-size:8pt;
|
||||
}
|
||||
#main .mainNav_2 div .center {
|
||||
background: url('^FileUrl(style01/nav2_off_center.jpg);') repeat-x top left;
|
||||
background: url('^FileUrl(style1/nav2_off_center.jpg);') repeat-x top left;
|
||||
}
|
||||
#main .mainNav_1 div .right, #main .mainNav_2 div .right {
|
||||
width:10px;
|
||||
height:25px;
|
||||
display:block;
|
||||
float:left;
|
||||
background: url('^FileUrl(style01/nav1_off_right.jpg);') no-repeat top left;
|
||||
background: url('^FileUrl(style1/nav1_off_right.jpg);') no-repeat top left;
|
||||
}
|
||||
#main .mainNav_2 div .right {
|
||||
background: url('^FileUrl(style01/nav2_off_right.jpg);') no-repeat top left;
|
||||
background: url('^FileUrl(style1/nav2_off_right.jpg);') no-repeat top left;
|
||||
}
|
||||
#main .mainNav_1 div.navOn .left {
|
||||
background: url('^FileUrl(style01/nav1_on_left.jpg);') no-repeat top left;
|
||||
background: url('^FileUrl(style1/nav1_on_left.jpg);') no-repeat top left;
|
||||
}
|
||||
#main .mainNav_1 div.navOn .center {
|
||||
background: url('^FileUrl(style01/nav1_on_center.jpg);') repeat-x top left;
|
||||
background: url('^FileUrl(style1/nav1_on_center.jpg);') repeat-x top left;
|
||||
}
|
||||
#main .mainNav_1 div.navOn .right {
|
||||
background: url('^FileUrl(style01/nav1_on_right.jpg);') no-repeat top left;
|
||||
background: url('^FileUrl(style1/nav1_on_right.jpg);') no-repeat top left;
|
||||
}
|
||||
#main .mainNav_2 div.navOn .left {
|
||||
background: url('^FileUrl(style01/nav2_on_left.jpg);') no-repeat top left;
|
||||
background: url('^FileUrl(style1/nav2_on_left.jpg);') no-repeat top left;
|
||||
}
|
||||
#main .mainNav_2 div.navOn .center {
|
||||
background: url('^FileUrl(style01/nav2_center_on.jpg);') repeat-x top left;
|
||||
background: url('^FileUrl(style1/nav2_center_on.jpg);') repeat-x top left;
|
||||
}
|
||||
#main .mainNav_2 div.navOn .right {
|
||||
background: url('^FileUrl(style01/nav2_on_right.jpg);') no-repeat top left;
|
||||
background: url('^FileUrl(style1/nav2_on_right.jpg);') no-repeat top left;
|
||||
}
|
||||
#main .mainNav_1 div.navOn a:link, #main .mainNav_1 div.navOn a:visited, #main .mainNav_2 div.navOn a:link, #main .mainNav_2 div.navOn a:visited {
|
||||
color:black;
|
||||
|
|
@ -225,4 +224,4 @@ body > #main
|
|||
}
|
||||
* html #copyright {
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
<head>
|
||||
<title>^Page(title);</title>
|
||||
<tmpl_var head.tags>
|
||||
<link href="/css01.css" rel="stylesheet" type="text/css" />
|
||||
<link href="/style1/css01.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
^AdminBar();
|
||||
|
|
@ -44,9 +44,9 @@
|
|||
<div id="gui">
|
||||
^L("","","PBtmpl0000000000000044");
|
||||
<div style="clear:both;padding-right:12px;">^AdminToggle;</div>
|
||||
^AssetProxy(style01/gui_bottom.jpg);<br />
|
||||
<a href="http://www.plainblack.com/webgui"><img src="^FileUrl(style01/webgui_btn.jpg);" style="border:none;" alt="WebGUI Button" /></a>
|
||||
^AssetProxy(style1/gui_bottom.jpg);<br />
|
||||
<a href="http://www.plainblack.com/webgui"><img src="^FileUrl(style1/webgui_btn.jpg);" style="border:none;" alt="WebGUI Button" /></a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#stevenav00000000000001
|
||||
#title:Style 01 Nav
|
||||
#menuTitle:Style 01 Nav
|
||||
#url:style01_nav
|
||||
#url:style1_nav
|
||||
#namespace:Navigation
|
||||
<tmpl_if displayTitle>
|
||||
<h2><tmpl_var title></h2>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#id:PBnav000000style01lvl2
|
||||
#PBnav000000style01lvl2
|
||||
#title:Style 01 Nav lvl2
|
||||
#menutitle:Style 01 Nav lvl2
|
||||
#url:style01_nav_lvl2
|
||||
#url:style1_nav_lvl2
|
||||
<tmpl_if displayTitle>
|
||||
<h2><tmpl_var title></h2>
|
||||
</tmpl_if>
|
||||
|
|
@ -25,4 +25,4 @@
|
|||
<span class="right"> </span>
|
||||
</div>
|
||||
</tmpl_unless>
|
||||
</tmpl_loop>
|
||||
</tmpl_loop>
|
||||
|
|
|
|||
|
|
@ -1,35 +1,36 @@
|
|||
#title:css02.css
|
||||
#menuTitle:css02.css
|
||||
#url:css02.css
|
||||
#url:style/css02.css
|
||||
#mimeType:text/css
|
||||
body, html {
|
||||
height:100%;
|
||||
}
|
||||
body {
|
||||
background:#7c9ab0 url('^FileUrl(style02/main_bg.jpg);') repeat-y right;
|
||||
background:#7c9ab0 url('^FileUrl(style2/main_bg.jpg);') repeat-y right;
|
||||
margin:0px;
|
||||
}
|
||||
.rightColumn {
|
||||
width:20%;
|
||||
height:100%;
|
||||
background: #eeeeee url('^FileUrl(style02/rightCol_bg.jpg);') repeat-y right;
|
||||
background: #eeeeee url('^FileUrl(style2/rightCol_bg.jpg);') repeat-y right;
|
||||
text-align:center;
|
||||
}
|
||||
.rightColumn #pb_wg_bg {
|
||||
background: url('^FileUrl(style02/pb_wg_bg.jpg);') repeat-x;
|
||||
background: url('^FileUrl(style2/pb_wg_bg.jpg);') repeat-x;
|
||||
width:100%;
|
||||
text-align:left;
|
||||
}
|
||||
.rightColumn #pb_wg {
|
||||
background: url('^FileUrl(style02/pb_wg.jpg);') left no-repeat;
|
||||
background: url('^FileUrl(style2/pb_wg.jpg);') left no-repeat;
|
||||
height:53px;
|
||||
}
|
||||
.leftColumn {
|
||||
width:80%;
|
||||
background: white url('^FileUrl(style02/context_bg.jpg);') repeat-y right;
|
||||
background: white url('^FileUrl(style2/context_bg.jpg);') repeat-y right;
|
||||
}
|
||||
.leftColumn #header {
|
||||
width:100%;
|
||||
background:#7c9ab0 url('^FileUrl(style02/leftCol_header.jpg);') right no-repeat;
|
||||
background:#7c9ab0 url('^FileUrl(style2/leftCol_header.jpg);') right no-repeat;
|
||||
height:86px;
|
||||
position:relative;
|
||||
}
|
||||
|
|
@ -56,7 +57,7 @@ body {
|
|||
left:7px;
|
||||
}
|
||||
.leftColumn #context {
|
||||
/*background: #fff url('^FileUrl(style02/context_bg.jpg);') repeat-y right; */
|
||||
/*background: #fff url('^FileUrl(style2/context_bg.jpg);') repeat-y right; */
|
||||
width:95%;
|
||||
font-family:verdana;
|
||||
font-size:9pt;
|
||||
|
|
@ -75,11 +76,11 @@ body {
|
|||
text-decoration:none;
|
||||
}
|
||||
.leftColumn #pageTitleBG {
|
||||
background: url('^FileUrl(style02/page_title_bg.jpg);') repeat-x;
|
||||
background: url('^FileUrl(style2/page_title_bg.jpg);') repeat-x;
|
||||
width:100%;
|
||||
}
|
||||
.leftColumn #pageTitleBG #pageTitle {
|
||||
background: url('^FileUrl(style02/page_title.jpg);') right no-repeat;
|
||||
background: url('^FileUrl(style2/page_title.jpg);') right no-repeat;
|
||||
width:100%;
|
||||
height:50px;
|
||||
}
|
||||
|
|
@ -95,7 +96,7 @@ body {
|
|||
}
|
||||
.rightColumn #nav {
|
||||
width:85%;
|
||||
background: #b5b5b5 url('^FileUrl(style02/nav_bg.jpg);') repeat-x top;
|
||||
background: #b5b5b5 url('^FileUrl(style2/nav_bg.jpg);') repeat-x top;
|
||||
border-right:solid #848484 1px;
|
||||
margin-left:auto;
|
||||
margin-right:auto;
|
||||
|
|
@ -137,4 +138,4 @@ body {
|
|||
font-size:9pt;
|
||||
color:silver;
|
||||
text-align:center;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
<head>
|
||||
<tmpl_var head.tags>
|
||||
<title>^c; - ^Page(title);</title>
|
||||
<link href="/css02.css" rel="stylesheet" type="text/css" />
|
||||
<link href="/style2/css02.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
^AdminBar();
|
||||
|
|
@ -31,23 +31,23 @@
|
|||
<td class="rightColumn" valign="top">
|
||||
<div id="pb_wg_bg">
|
||||
<div id="pb_wg">
|
||||
<a href="http://www.plainblack.com">^AssetProxy(style02/pb.jpg);</a><a href="http://www.plainblack.com/webgui">^AssetProxy(style02/wg.jpg);</a><br />
|
||||
<a href="http://www.plainblack.com">^AssetProxy(style2/pb.jpg);</a><a href="http://www.plainblack.com/webgui">^AssetProxy(style2/wg.jpg);</a><br />
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<table style="width:90%;margin-left:auto;margin-right:auto;background: url('^FileUrl(style02/navbar_bg.jpg);') repeat-x;" cellpadding="0" cellspacing="0" border="0">
|
||||
<table style="width:90%;margin-left:auto;margin-right:auto;background: url('^FileUrl(style2/navbar_bg.jpg);') repeat-x;" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td style="background: url('^FileUrl(style02/navbar_left.jpg);') no-repeat left;height:9px;width:10%;" align="left"></td>
|
||||
<td style="background: url('^FileUrl(style02/navbar_right.jpg);') no-repeat right;height:9px;width:90%;" align="right"></td>
|
||||
<td style="background: url('^FileUrl(style2/navbar_left.jpg);') no-repeat left;height:9px;width:10%;" align="left"></td>
|
||||
<td style="background: url('^FileUrl(style2/navbar_right.jpg);') no-repeat right;height:9px;width:90%;" align="right"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id="nav">
|
||||
^AssetProxy(flexmenu);
|
||||
</div>
|
||||
<table style="width:90%;margin-left:auto;margin-right:auto;background: url('^FileUrl(style02/navbar_bg.jpg);') repeat-x;" cellpadding="0" cellspacing="0" border="0">
|
||||
<table style="width:90%;margin-left:auto;margin-right:auto;background: url('^FileUrl(style2/navbar_bg.jpg);') repeat-x;" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td style="background: url('^FileUrl(style02/navbar_left.jpg);') no-repeat left;height:9px;width:10%;" align="left"></td>
|
||||
<td style="background: url('^FileUrl(style02/navbar_right.jpg);') no-repeat right;height:9px;width:90%;" align="right"></td>
|
||||
<td style="background: url('^FileUrl(style2/navbar_left.jpg);') no-repeat left;height:9px;width:10%;" align="left"></td>
|
||||
<td style="background: url('^FileUrl(style2/navbar_right.jpg);') no-repeat right;height:9px;width:90%;" align="right"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id="loginStyles">
|
||||
|
|
@ -64,4 +64,4 @@
|
|||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -2,253 +2,253 @@
|
|||
#title:Newer Coolmenu
|
||||
#menuTitle:Newer Coolmenu
|
||||
#url:newer-coolmenu
|
||||
#namespace:Navigation
|
||||
<tmpl_if displayTitle>
|
||||
<h1><tmpl_var title></h1>
|
||||
</tmpl_if>
|
||||
|
||||
<tmpl_if description>
|
||||
<p><tmpl_var description></p>
|
||||
</tmpl_if>
|
||||
|
||||
<tmpl_if session.var.adminOn>
|
||||
<tmpl_var controls>
|
||||
</tmpl_if>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
/*****************************************************************************
|
||||
Copyright (c) 2001 Thomas Brattli (webmaster@dhtmlcentral.com)
|
||||
|
||||
DHTML coolMenus - Get it at coolmenus.dhtmlcentral.com
|
||||
Version 4.0_beta
|
||||
This script can be used freely as long as all copyright messages are
|
||||
intact.
|
||||
|
||||
Extra info - Coolmenus reference/help - Extra links to help files ****
|
||||
CSS help: http://coolmenus.dhtmlcentral.com/projects/coolmenus/reference.asp?m=37
|
||||
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
|
||||
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
|
||||
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
|
||||
|
||||
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
|
||||
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
|
||||
******************************************************************************/
|
||||
|
||||
/***
|
||||
This is the menu creation code - place it right after you body tag
|
||||
Feel free to add this to a stand-alone js file and link it to your page.
|
||||
**/
|
||||
|
||||
//Menu object creation
|
||||
coolmenu=new makeCM("coolmenu") //Making the menu object. Argument: menuname
|
||||
|
||||
coolmenu.frames = 0
|
||||
|
||||
//Menu properties
|
||||
coolmenu.onlineRoot=""
|
||||
coolmenu.pxBetween=2
|
||||
coolmenu.fromLeft=25
|
||||
coolmenu.fromTop=138
|
||||
<tmpl_if session.var.adminOn>
|
||||
coolmenu.fromLeft=186
|
||||
coolmenu.fromTop=160
|
||||
</tmpl_if>
|
||||
coolmenu.rows=1
|
||||
coolmenu.menuPlacement="left" //The whole menu alignment, left, center, or right
|
||||
|
||||
coolmenu.resizeCheck=1
|
||||
coolmenu.wait=250
|
||||
coolmenu.fillImg="cm_fill.gif"
|
||||
coolmenu.zIndex=100
|
||||
|
||||
//Background bar properties
|
||||
coolmenu.useBar=0
|
||||
coolmenu.barWidth="100%"
|
||||
coolmenu.barHeight="menu"
|
||||
coolmenu.barClass="cBar"
|
||||
coolmenu.barX=0
|
||||
coolmenu.barY=0
|
||||
coolmenu.barBorderX=0
|
||||
coolmenu.barBorderY=0
|
||||
coolmenu.barBorderClass=""
|
||||
|
||||
//Level properties - ALL properties have to be spesified in level 0
|
||||
coolmenu.level[0]=new cm_makeLevel() //Add this for each new level
|
||||
coolmenu.level[0].width=150
|
||||
coolmenu.level[0].height=25
|
||||
coolmenu.level[0].regClass="cLevel0"
|
||||
coolmenu.level[0].overClass="cLevel0over"
|
||||
coolmenu.level[0].borderX=1
|
||||
coolmenu.level[0].borderY=1
|
||||
coolmenu.level[0].borderClass="cLevel0border"
|
||||
|
||||
coolmenu.level[0].offsetX=0
|
||||
coolmenu.level[0].offsetY=0
|
||||
coolmenu.level[0].rows=0
|
||||
coolmenu.level[0].arrow=0
|
||||
coolmenu.level[0].arrowWidth=0
|
||||
coolmenu.level[0].arrowHeight=0
|
||||
coolmenu.level[0].align="bottom"
|
||||
|
||||
//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to specify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
|
||||
coolmenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
coolmenu.level[1].width=coolmenu.level[0].width //+20
|
||||
coolmenu.level[1].height=25
|
||||
coolmenu.level[1].regClass="cLevel1"
|
||||
coolmenu.level[1].overClass="cLevel1over"
|
||||
coolmenu.level[1].borderX=1
|
||||
coolmenu.level[1].borderY=1
|
||||
coolmenu.level[1].align="right"
|
||||
coolmenu.level[1].offsetX=0
|
||||
coolmenu.level[1].offsetY=0
|
||||
coolmenu.level[1].borderClass="cLevel1border"
|
||||
|
||||
//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to specify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
|
||||
coolmenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
coolmenu.level[2].width=coolmenu.level[0].width //+20
|
||||
coolmenu.level[2].height=25
|
||||
coolmenu.level[2].offsetX=0
|
||||
coolmenu.level[2].offsetY=0
|
||||
coolmenu.level[2].regClass="cLevel2"
|
||||
coolmenu.level[2].overClass="cLevel2over"
|
||||
coolmenu.level[2].borderClass="cLevel2border"
|
||||
|
||||
//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to specify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
|
||||
coolmenu.level[3]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
coolmenu.level[3].width=coolmenu.level[0].width+20
|
||||
coolmenu.level[3].height=25
|
||||
coolmenu.level[3].offsetX=0
|
||||
coolmenu.level[3].offsetY=0
|
||||
coolmenu.level[3].regClass="cLevel2"
|
||||
coolmenu.level[3].overClass="cLevel2over"
|
||||
coolmenu.level[3].borderClass="cLevel2border"
|
||||
|
||||
<tmpl_loop page_loop>
|
||||
coolmenu.makeMenu('coolmenu_<tmpl_var page.assetId escape=JS>'.replace(/\-/g,"a"),'coolmenu_<tmpl_var page.parent.assetId escape=JS>'.replace(/\-/g,"a"),"<tmpl_var page.menuTitle escape=JS>",'<tmpl_var page.url escape=JS>'<tmpl_if page.newWindow>,'_blank'</tmpl_if>);
|
||||
</tmpl_loop>
|
||||
|
||||
coolmenu.construct();
|
||||
|
||||
</script>
|
||||
~~~
|
||||
^JavaScript("<tmpl_var session.config.extrasURL>/coolmenus/coolmenus4.js");
|
||||
<style type="text/css">
|
||||
/* CoolMenus 4 - default styles - do not edit */
|
||||
.cCMAbs {
|
||||
position: absolute;
|
||||
visibility: hidden;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
/* CoolMenus 4 - default styles - end */
|
||||
|
||||
/*Styles for level 0*/
|
||||
.cLevel0,.cLevel0over {
|
||||
position: absolute;
|
||||
padding: 2px;
|
||||
font-family: tahoma, arial, helvetica;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.cLevel0 {
|
||||
color:#ededed;
|
||||
text-align: center;
|
||||
/*border-left:#353535 solid 1px;
|
||||
border-right:#353535 solid 2px;
|
||||
border-bottom:#353535 solid 2px;*/
|
||||
background: url(^FileUrl('style03/main_top_bg.jpg);');
|
||||
}
|
||||
|
||||
.cLevel0over {
|
||||
color: gold;
|
||||
cursor: hand;
|
||||
text-align: center;
|
||||
/*border-left:#353535 solid 1px;
|
||||
border-right:#353535 solid 2px;
|
||||
border-bottom:#353535 solid 2px; */
|
||||
background: url(^FileUrl('style03/main_top_bg.jpg);');
|
||||
}
|
||||
|
||||
.cLevel0border {
|
||||
position: absolute;
|
||||
visibility: hidden;
|
||||
/*background-color: #569635;
|
||||
layer-background-color: #006699;*/
|
||||
|
||||
}
|
||||
|
||||
/*Styles for level 1*/
|
||||
.cLevel1, .cLevel1over {
|
||||
position: absolute;
|
||||
padding: 2px;
|
||||
font-family: tahoma, arial, helvetica;
|
||||
font-size: 11px;
|
||||
font-weight:bold;
|
||||
cursor-type: hand;
|
||||
}
|
||||
|
||||
.cLevel1 {
|
||||
color: white;
|
||||
text-align: center;
|
||||
border:solid #111 1px;
|
||||
}
|
||||
|
||||
.cLevel1over {
|
||||
color: black;
|
||||
text-align: center;
|
||||
border-left:solid #111 1px;
|
||||
border-right:solid #111 1px;
|
||||
border-bottom:solid #111 1px;
|
||||
background-color:#eeeeee;
|
||||
cursor: hand;
|
||||
}
|
||||
|
||||
.cLevel1border {
|
||||
opacity:0.9;
|
||||
-moz-opacity:0.9;
|
||||
-khtml-opacity:0.9;
|
||||
position: absolute;
|
||||
visibility: hidden;
|
||||
background-color: #444;
|
||||
layer-background-color: #444;
|
||||
}
|
||||
|
||||
/*Styles for level 2*/
|
||||
.cLevel2, .cLevel2over {
|
||||
position: absolute;
|
||||
padding: 2px;
|
||||
font-family: tahoma, arial, helvetica;
|
||||
font-size: 11px;
|
||||
font-weight:bold;
|
||||
cursor-type: hand;
|
||||
}
|
||||
|
||||
.cLevel2 {
|
||||
color: white;
|
||||
text-align: center;
|
||||
border:solid #111 1px;
|
||||
}
|
||||
|
||||
.cLevel2over {
|
||||
color: black;
|
||||
text-align: center;
|
||||
border-left:solid #111 1px;
|
||||
border-right:solid #111 1px;
|
||||
border-bottom:solid #111 1px;
|
||||
background-color:#eeeeee;
|
||||
cursor: hand;
|
||||
}
|
||||
|
||||
.cLevel2border {
|
||||
opacity:0.9;
|
||||
-moz-opacity:0.9;
|
||||
-khtml-opacity:0.9;
|
||||
position: absolute;
|
||||
visibility: hidden;
|
||||
background-color: #444;
|
||||
layer-background-color: #444;
|
||||
}
|
||||
|
||||
</style>
|
||||
#namespace:Navigation
|
||||
<tmpl_if displayTitle>
|
||||
<h1><tmpl_var title></h1>
|
||||
</tmpl_if>
|
||||
|
||||
<tmpl_if description>
|
||||
<p><tmpl_var description></p>
|
||||
</tmpl_if>
|
||||
|
||||
<tmpl_if session.var.adminOn>
|
||||
<tmpl_var controls>
|
||||
</tmpl_if>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
/*****************************************************************************
|
||||
Copyright (c) 2001 Thomas Brattli (webmaster@dhtmlcentral.com)
|
||||
|
||||
DHTML coolMenus - Get it at coolmenus.dhtmlcentral.com
|
||||
Version 4.0_beta
|
||||
This script can be used freely as long as all copyright messages are
|
||||
intact.
|
||||
|
||||
Extra info - Coolmenus reference/help - Extra links to help files ****
|
||||
CSS help: http://coolmenus.dhtmlcentral.com/projects/coolmenus/reference.asp?m=37
|
||||
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
|
||||
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
|
||||
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
|
||||
|
||||
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
|
||||
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
|
||||
******************************************************************************/
|
||||
|
||||
/***
|
||||
This is the menu creation code - place it right after you body tag
|
||||
Feel free to add this to a stand-alone js file and link it to your page.
|
||||
**/
|
||||
|
||||
//Menu object creation
|
||||
coolmenu=new makeCM("coolmenu") //Making the menu object. Argument: menuname
|
||||
|
||||
coolmenu.frames = 0
|
||||
|
||||
//Menu properties
|
||||
coolmenu.onlineRoot=""
|
||||
coolmenu.pxBetween=2
|
||||
coolmenu.fromLeft=25
|
||||
coolmenu.fromTop=138
|
||||
<tmpl_if session.var.adminOn>
|
||||
coolmenu.fromLeft=186
|
||||
coolmenu.fromTop=160
|
||||
</tmpl_if>
|
||||
coolmenu.rows=1
|
||||
coolmenu.menuPlacement="left" //The whole menu alignment, left, center, or right
|
||||
|
||||
coolmenu.resizeCheck=1
|
||||
coolmenu.wait=250
|
||||
coolmenu.fillImg="cm_fill.gif"
|
||||
coolmenu.zIndex=100
|
||||
|
||||
//Background bar properties
|
||||
coolmenu.useBar=0
|
||||
coolmenu.barWidth="100%"
|
||||
coolmenu.barHeight="menu"
|
||||
coolmenu.barClass="cBar"
|
||||
coolmenu.barX=0
|
||||
coolmenu.barY=0
|
||||
coolmenu.barBorderX=0
|
||||
coolmenu.barBorderY=0
|
||||
coolmenu.barBorderClass=""
|
||||
|
||||
//Level properties - ALL properties have to be spesified in level 0
|
||||
coolmenu.level[0]=new cm_makeLevel() //Add this for each new level
|
||||
coolmenu.level[0].width=150
|
||||
coolmenu.level[0].height=25
|
||||
coolmenu.level[0].regClass="cLevel0"
|
||||
coolmenu.level[0].overClass="cLevel0over"
|
||||
coolmenu.level[0].borderX=1
|
||||
coolmenu.level[0].borderY=1
|
||||
coolmenu.level[0].borderClass="cLevel0border"
|
||||
|
||||
coolmenu.level[0].offsetX=0
|
||||
coolmenu.level[0].offsetY=0
|
||||
coolmenu.level[0].rows=0
|
||||
coolmenu.level[0].arrow=0
|
||||
coolmenu.level[0].arrowWidth=0
|
||||
coolmenu.level[0].arrowHeight=0
|
||||
coolmenu.level[0].align="bottom"
|
||||
|
||||
//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to specify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
|
||||
coolmenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
coolmenu.level[1].width=coolmenu.level[0].width //+20
|
||||
coolmenu.level[1].height=25
|
||||
coolmenu.level[1].regClass="cLevel1"
|
||||
coolmenu.level[1].overClass="cLevel1over"
|
||||
coolmenu.level[1].borderX=1
|
||||
coolmenu.level[1].borderY=1
|
||||
coolmenu.level[1].align="right"
|
||||
coolmenu.level[1].offsetX=0
|
||||
coolmenu.level[1].offsetY=0
|
||||
coolmenu.level[1].borderClass="cLevel1border"
|
||||
|
||||
//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to specify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
|
||||
coolmenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
coolmenu.level[2].width=coolmenu.level[0].width //+20
|
||||
coolmenu.level[2].height=25
|
||||
coolmenu.level[2].offsetX=0
|
||||
coolmenu.level[2].offsetY=0
|
||||
coolmenu.level[2].regClass="cLevel2"
|
||||
coolmenu.level[2].overClass="cLevel2over"
|
||||
coolmenu.level[2].borderClass="cLevel2border"
|
||||
|
||||
//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to specify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
|
||||
coolmenu.level[3]=new cm_makeLevel() //Add this for each new level (adding one to the number)
|
||||
coolmenu.level[3].width=coolmenu.level[0].width+20
|
||||
coolmenu.level[3].height=25
|
||||
coolmenu.level[3].offsetX=0
|
||||
coolmenu.level[3].offsetY=0
|
||||
coolmenu.level[3].regClass="cLevel2"
|
||||
coolmenu.level[3].overClass="cLevel2over"
|
||||
coolmenu.level[3].borderClass="cLevel2border"
|
||||
|
||||
<tmpl_loop page_loop>
|
||||
coolmenu.makeMenu('coolmenu_<tmpl_var page.assetId escape=JS>'.replace(/\-/g,"a"),'coolmenu_<tmpl_var page.parent.assetId escape=JS>'.replace(/\-/g,"a"),"<tmpl_var page.menuTitle escape=JS>",'<tmpl_var page.url escape=JS>'<tmpl_if page.newWindow>,'_blank'</tmpl_if>);
|
||||
</tmpl_loop>
|
||||
|
||||
coolmenu.construct();
|
||||
|
||||
</script>
|
||||
~~~
|
||||
<script src="^Extras;coolmenus/coolmenus4.js" type="text/javascript"></script>
|
||||
<style type="text/css">
|
||||
/* CoolMenus 4 - default styles - do not edit */
|
||||
.cCMAbs {
|
||||
position: absolute;
|
||||
visibility: hidden;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
/* CoolMenus 4 - default styles - end */
|
||||
|
||||
/*Styles for level 0*/
|
||||
.cLevel0,.cLevel0over {
|
||||
position: absolute;
|
||||
padding: 2px;
|
||||
font-family: tahoma, arial, helvetica;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.cLevel0 {
|
||||
color:#ededed;
|
||||
text-align: center;
|
||||
/*border-left:#353535 solid 1px;
|
||||
border-right:#353535 solid 2px;
|
||||
border-bottom:#353535 solid 2px;*/
|
||||
background: url('^FileUrl(style3/main_top_bg.jpg);');
|
||||
}
|
||||
|
||||
.cLevel0over {
|
||||
color: gold;
|
||||
cursor: hand;
|
||||
text-align: center;
|
||||
/*border-left:#353535 solid 1px;
|
||||
border-right:#353535 solid 2px;
|
||||
border-bottom:#353535 solid 2px; */
|
||||
background: url('^FileUrl(style3/main_top_bg.jpg);');
|
||||
}
|
||||
|
||||
.cLevel0border {
|
||||
position: absolute;
|
||||
visibility: hidden;
|
||||
/*background-color: #569635;
|
||||
layer-background-color: #006699;*/
|
||||
|
||||
}
|
||||
|
||||
/*Styles for level 1*/
|
||||
.cLevel1, .cLevel1over {
|
||||
position: absolute;
|
||||
padding: 2px;
|
||||
font-family: tahoma, arial, helvetica;
|
||||
font-size: 11px;
|
||||
font-weight:bold;
|
||||
cursor-type: hand;
|
||||
}
|
||||
|
||||
.cLevel1 {
|
||||
color: white;
|
||||
text-align: center;
|
||||
border:solid #111 1px;
|
||||
}
|
||||
|
||||
.cLevel1over {
|
||||
color: black;
|
||||
text-align: center;
|
||||
border-left:solid #111 1px;
|
||||
border-right:solid #111 1px;
|
||||
border-bottom:solid #111 1px;
|
||||
background-color:#eeeeee;
|
||||
cursor: hand;
|
||||
}
|
||||
|
||||
.cLevel1border {
|
||||
opacity:0.9;
|
||||
-moz-opacity:0.9;
|
||||
-khtml-opacity:0.9;
|
||||
position: absolute;
|
||||
visibility: hidden;
|
||||
background-color: #444;
|
||||
layer-background-color: #444;
|
||||
}
|
||||
|
||||
/*Styles for level 2*/
|
||||
.cLevel2, .cLevel2over {
|
||||
position: absolute;
|
||||
padding: 2px;
|
||||
font-family: tahoma, arial, helvetica;
|
||||
font-size: 11px;
|
||||
font-weight:bold;
|
||||
cursor-type: hand;
|
||||
}
|
||||
|
||||
.cLevel2 {
|
||||
color: white;
|
||||
text-align: center;
|
||||
border:solid #111 1px;
|
||||
}
|
||||
|
||||
.cLevel2over {
|
||||
color: black;
|
||||
text-align: center;
|
||||
border-left:solid #111 1px;
|
||||
border-right:solid #111 1px;
|
||||
border-bottom:solid #111 1px;
|
||||
background-color:#eeeeee;
|
||||
cursor: hand;
|
||||
}
|
||||
|
||||
.cLevel2border {
|
||||
opacity:0.9;
|
||||
-moz-opacity:0.9;
|
||||
-khtml-opacity:0.9;
|
||||
position: absolute;
|
||||
visibility: hidden;
|
||||
background-color: #444;
|
||||
layer-background-color: #444;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#title:css03.css
|
||||
#menuTitle:css03.css
|
||||
#url:css03.css
|
||||
#url:style3/css03.css
|
||||
#mimeType:text/css
|
||||
body, html {
|
||||
margin:0px;
|
||||
background-color:#b53018;
|
||||
|
|
@ -18,18 +19,18 @@ body, html {
|
|||
}
|
||||
|
||||
#header {
|
||||
background: url('^FileUrl(style03/header_bg.jpg);') repeat-x;
|
||||
background: url('^FileUrl(style3/header_bg.jpg);') repeat-x;
|
||||
width:100%;
|
||||
margin:0px;
|
||||
height:115px;
|
||||
}
|
||||
#headerTitle {
|
||||
background: url('^FileUrl(style03/header_left.jpg);') no-repeat left top;
|
||||
background: url('^FileUrl(style3/header_left.jpg);') no-repeat left top;
|
||||
height:100%;
|
||||
width:100%;
|
||||
}
|
||||
#headerRight {
|
||||
background: url('^FileUrl(style03/header_right.jpg);') no-repeat right top;
|
||||
background: url('^FileUrl(style3/header_right.jpg);') no-repeat right top;
|
||||
width:100%;
|
||||
height:100%;
|
||||
text-align:right;
|
||||
|
|
@ -113,7 +114,7 @@ html #main #mainBody #contentArea {
|
|||
position:absolute;
|
||||
top:0px;
|
||||
left:0px;
|
||||
background: url('^FileUrl(style03/main_top_bg.jpg);') repeat-x;
|
||||
background: url('^FileUrl(style3/main_top_bg.jpg);') repeat-x;
|
||||
z-index:1;
|
||||
}
|
||||
#bottomCorner {
|
||||
|
|
@ -122,14 +123,14 @@ html #main #mainBody #contentArea {
|
|||
position:absolute;
|
||||
bottom:0px;
|
||||
right:0px;
|
||||
background: url('^FileUrl(style03/main_bottom.jpg);') no-repeat right;
|
||||
background: url('^FileUrl(style3/main_bottom.jpg);') no-repeat right;
|
||||
z-index:1;
|
||||
}
|
||||
|
||||
#footer {
|
||||
width:100%;
|
||||
margin:0px;
|
||||
background:#000 url('^FileUrl(style03/footer_right.jpg);') no-repeat right top;
|
||||
background:#000 url('^FileUrl(style3/footer_right.jpg);') no-repeat right top;
|
||||
height:57px;
|
||||
border-top:solid #B53018 2px;
|
||||
text-align:right;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
<head>
|
||||
<tmpl_var head.tags>
|
||||
<title>^c; - ^Page(title);</title>
|
||||
<link href="/css03.css" rel="stylesheet" type="text/css" />
|
||||
<link href="/style3/css03.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
^AdminBar();
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
<h1>^H(^c;);</h1>
|
||||
<h2>^Page(title);</h2>
|
||||
</div>
|
||||
<a href="http://www.plainblack.com/weggui">^AssetProxy(style03/wg.jpg);</a><br />
|
||||
<a href="http://www.plainblack.com/weggui">^AssetProxy(style3/wg.jpg);</a><br />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
<tmpl_var body.content>
|
||||
</div>
|
||||
<div id="topCorner">
|
||||
^AssetProxy(style03/main_top.jpg);
|
||||
^AssetProxy(style3/main_top.jpg);
|
||||
</div>
|
||||
<div id="bottomCorner"></div>
|
||||
</div>
|
||||
|
|
@ -44,10 +44,10 @@
|
|||
<div id="copyright">
|
||||
© ^D(%y); ^c;
|
||||
</div>
|
||||
<a href="http://www.plainblack.com">^AssetProxy(style03/pb.jpg);</a><br />
|
||||
<a href="http://www.plainblack.com">^AssetProxy(style3/pb.jpg);</a><br />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -91,8 +91,14 @@ sub updateArticle {
|
|||
$child->purge;
|
||||
}
|
||||
}
|
||||
if ($asset->get("convertCarriageReturns")) {
|
||||
my $description = $asset->get("description");
|
||||
$description =~ s/\n/\<br \/\>\n/g;
|
||||
$asset->update({description=>$description});
|
||||
}
|
||||
}
|
||||
}
|
||||
$session->db->write("alter table Article drop column convertCarriageReturns");
|
||||
}
|
||||
|
||||
#-------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -57,11 +57,6 @@ ID of a tempate from the Article namespace to display the contents of the Articl
|
|||
|
||||
The text displayed to the user as a hyperlink to the linkURL.
|
||||
|
||||
=item convertCarriageReturns
|
||||
|
||||
A boolean. If set to true, all newlines will be converted to Break tags so that simple
|
||||
text will come out formatted as paragraphs.
|
||||
|
||||
=back
|
||||
|
||||
=cut
|
||||
|
|
@ -125,15 +120,6 @@ sub definition {
|
|||
hoverHelp=>$i18n->get('link title description'),
|
||||
uiLevel=>3
|
||||
},
|
||||
convertCarriageReturns=>{
|
||||
tab=>"display",
|
||||
fieldType=>'yesNo',
|
||||
defaultValue=>0,
|
||||
label=>$i18n->get(10),
|
||||
subtext=>' <span style="font-size: 8pt;">'.$i18n->get(11).'</span>',
|
||||
hoverHelp=>$i18n->get('carriage return description'),
|
||||
uiLevel=>5
|
||||
},
|
||||
storageId=>{
|
||||
tab=>"properties",
|
||||
fieldType=>"image",
|
||||
|
|
@ -239,7 +225,7 @@ sub prepareView {
|
|||
|
||||
sub purge {
|
||||
my $self = shift;
|
||||
my $sth = $self->session->db->read("select storageId from Articlewhere assetId=?",[$self->getId]);
|
||||
my $sth = $self->session->db->read("select storageId from Article where assetId=?",[$self->getId]);
|
||||
while (my ($storageId) = $sth->array) {
|
||||
my $storage = WebGUI::Storage::Image->get($self->session,$storageId);
|
||||
$storage->delete if defined $storage;
|
||||
|
|
@ -308,9 +294,6 @@ sub view {
|
|||
}
|
||||
}
|
||||
$var{description} = $self->get("description");
|
||||
if ($self->get("convertCarriageReturns")) {
|
||||
$var{description} =~ s/\n/\<br \/\>\n/g;
|
||||
}
|
||||
$var{"new.template"} = $self->getUrl.";overrideTemplateId=";
|
||||
$var{"description.full"} = $var{description};
|
||||
$var{"description.full"} =~ s/\^\-\;//g;
|
||||
|
|
|
|||
|
|
@ -27,12 +27,6 @@ our $HELP = {
|
|||
namespace => 'Asset_Article',
|
||||
uiLevel => 3,
|
||||
},
|
||||
{
|
||||
title => '10',
|
||||
description => 'carriage return description',
|
||||
namespace => 'Asset_Article',
|
||||
uiLevel => 5,
|
||||
},
|
||||
],
|
||||
related => [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,11 +21,6 @@ our $I18N = {
|
|||
lastUpdated => 0
|
||||
},
|
||||
|
||||
'11' => {
|
||||
message => q|(Select "Yes" only if you aren't adding <br> manually.)|,
|
||||
lastUpdated => 1031514049
|
||||
},
|
||||
|
||||
'71' => {
|
||||
message => q|<P>Articles are the Swiss Army knife of WebGUI. Most pieces of static content can be added via the Article. Articles are Wobjects, so they inherit the properties of both Wobjects and Assets.
|
||||
<P>
|
||||
|
|
@ -234,17 +229,6 @@ The URL to view the replies to this article.
|
|||
lastUpdated => 1031514049
|
||||
},
|
||||
|
||||
'10' => {
|
||||
message => q|Convert carriage returns?|,
|
||||
lastUpdated => 1031514049
|
||||
},
|
||||
|
||||
'carriage return description' => {
|
||||
message => q|
|
||||
If you're publishing HTML there's generally no need to check this option, but if you aren't using HTML and you want a carriage return every place you hit your "Enter" key, then check this option.|,
|
||||
lastUpdated => 1119066524
|
||||
},
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue