basepagelayout.html – Changes Between 6.5 MP1 and 6.5 MP2

 

Summary of Changes:

-         Updated link to CSS stylesheet used for adaptive layouts by using pt://styles tag. By default, PT_HOME/ptimages/imageserver/plumtree/common/public/css/mainstyle.css will be used for adaptive layouts. There will be no mappings defined in CustomStyles.xml. To override mainstyle.css and use an alternate stylesheet for a specified language, add a new mapping into CustomStyles.css. [Go to change]

-         Added Javascript function for enabling and disabling an anchor link. This is used to support disabling of certain action links when the Join Community Flyout is activated. [Go to change]

-         Added rules debug link. [Go to change]

-         Moved FlyoutJSTag declaration from portletdefaultlayout.html to support displaying of Join Community Flyout on any portal page. [Go to change]

-         Changed flyout onclick call to pass in the flyout URL. The flyout will display in the selectionEditor div defined in portletdefaultlayout.html when on a MyPage or Community Page and display in the basenavSelectionEditor div on all other pages. [Go to change]

-         Added “basenavSelectionEditor” div. [Go to change]

-         Added “Edit My Communities” link in the Community drop-down menu when in adaptive layout mode. [Go to change]

-         Removed the old “Join Communities” and “Unsubscribe Communities” links from the Community drop-down. [Go to change]

-         Added new Error Page Tags for displaying and customization of errors. [Go to change]

 

 

Diff Legend

 

Type

Meaning

Matching Text

No difference between the sources. Text is the same.

Edited Text

Edited text that has been added into the newer source.

Important Difference

Changes made to existing text.

Deleted

A deletion has occurred in the original source.  It is shown in red or black with strike through font.

1

1

First column denotes line numbers in MP1 source. Second column denotes line numbers in MP2 source.

 

1

1

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

2

2

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:pt="http://www.plumtree.com/xmlschemas/ptui/">

3

3

<!-- This page uses the base page layout. -->

4

4

<head>

5

5

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

6

6

<title><pt:basepage.title/></title>

 

7

<pt:core.comment><!-- This includes the legacy stylesheet necessary for legacy portlets, layouts, and admin. --></pt:core.comment>

7

8

<pt:standard.stylesheets/>

8

 

<link href="pt://images/plumtree/portal/private/css/mainstyle.css" rel="stylesheet" type="text/css" />

 

9

<pt:core.comment><!-- This includes the new layout css stylesheet, and can be altered by CustomStyles.xml. --></pt:core.comment>

 

10

<link href="pt://styles" rel="stylesheet" type="text/css" />

9

11

 

10

12

<!-- Conditional CSS to deal with IE in Quirks mode -->

11

13

<!--[if IE]>

12

14

<style type="text/css">

13

15

    #ali-edit-cornerright {right:0px}

14

16

    .ali-portlet-botright {right:0px}

41

43

    #ali-secondPages li {margin:0px}

42

44

    #ali-secondNavBar {margin:0}

43

45

    #ali-action-bar {height:5px}

44

46

    #ali-kd-sort {margin-top:0}

45

47

    #ali-kd-item-number {margin-top:0}

46

48

    #ali-kd-item-type {margin-top:0}

47

 

    #ali-searchAdvanced {padding:0 80px 0 0}

 

49

    #ali-searchAdvanced {padding:0 215px 0 0}

48

50

</style>

49

51

<![endif]-->

50

52

 

 

53

<script type="text/javascript">

 

54

//Gray out and disable anchor links by passing in the object id 

 

55

disableAnchor = function(objId, disable)

 

56

{

 

57

  var obj = document.getElementById(objId);

 

58

  if(obj != null)

 

59

  {

 

60

    if(disable)

 

61

    {

 

62

      var href = obj.getAttribute("href");

 

63

      var onclick = obj.getAttribute("onclick");

 

64

      //Store the previous value in a new attribute

 

65

      if(href && href != "" && href != null)

 

66

      {

 

67

        obj.setAttribute('href_bak', href);

 

68

      }

 

69

      if(onclick != null)

 

70

      {

 

71

        obj.setAttribute('onclick_back', onclick);

 

72

        obj.setAttribute('onclick', "void(0);");

 

73

      }

 

74

      obj.removeAttribute('href');

 

75

      obj.style.color="gray";

 

76

    }

 

77

    else

 

78

    {

 

79

      //Swap back in the original href and onclick values

 

80

      var hrefBack = obj.getAttribute("href_bak");

 

81

      var onclickBack = obj.getAttribute("onclick_back");

 

82

      if(onclickBack !=null )

 

83

      {

 

84

        obj.setAttribute('onclick', onclickBack);

 

85

        obj.removeAttribute('onclick_back');

 

86

      }

 

87

      if(hrefBack !=null )

 

88

      {

 

89

        obj.setAttribute('href', hrefBack);

 

90

        obj.removeAttribute('href_bak');

 

91

        obj.style.color="blue";

 

92

      }

 

93

    }

 

94

  }

 

95

} 

 

96

</script>

51

97

 

52

98

<SCRIPT type="text/JavaScript">

53

99

// @TODO: Generate this code on the server

54

100

 

55

101

// CSSMenu initialization for IE

56

102

var cssMenuIds = ["ali-nav", "ali-secondNav" ];

57

103

sfHover = function()

96

142

 

97

143

<div id="ali-actionbar" xmlns:pt="http://www.plumtree.com/xmlschemas/ptui/">

98

144

<div id="ali-bannerWelcome"><pt:ptui.welcome pt:usespan="false" /></div>

99

145

<div id="ali-bannerNav">

100

146

  <ul>

101

147

    <pt:core.comment><!-- DCA - get the Rules Debug link; if we don't have access to the rules debug page, the variable won't exist --></pt:core.comment>

 

148

    <pt:ptdata.rulesdebugdata pt:id="rulesDebugLink" />

 

149

    <pt:logic.existexpr pt:data="rulesDebugLink" pt:key="canAccessRulesDebug"/>

 

150

    <pt:logic.if pt:expr="$canAccessRulesDebug">

 

151

        <pt:logic.iftrue>

 

152

            <pt:core.comment><!-- DCA - there should only be 1 --></pt:core.comment>

 

153

            <pt:logic.foreach pt:data="rulesDebugLink" pt:var="link">

 

154

                <li><pt:core.html pt:tag="a" target="_blank" href="$link.url"><pt:core.html pt:tag="img" src="pt://images/plumtree/portal/private/img/icon_subportal_rule.gif" alt="$link.title"/></pt:core.html><pt:core.html pt:tag="a" target="_blank" href="$link.url"><pt:logic.value pt:value="$link.title"/></pt:core.html></li> &nbsp;|

 

155

            </pt:logic.foreach>

 

156

        </pt:logic.iftrue>

 

157

    </pt:logic.if>

 

158

    <pt:core.comment><!-- DCA - get the Administration link; if we don't have access to the admin page, the variable won't exist --></pt:core.comment>

102

159

    <pt:ptdata.administrationdata pt:id="adminLink" />

103

160

    <pt:logic.existexpr pt:data="adminLink" pt:key="canAccessAdmin"/>

104

161

    <pt:logic.if pt:expr="$canAccessAdmin">

105

162

        <pt:logic.iftrue>

106

163

            <pt:core.comment><!-- DCA - there should only be 1 --></pt:core.comment>

107

164

            <pt:logic.foreach pt:data="adminLink" pt:var="link">

108

165

                <li><pt:core.html pt:tag="a" href="$link.url"><pt:core.html pt:tag="img" src="pt://images/plumtree/portal/private/img/icon_admin.gif" alt="$link.title"/></pt:core.html><pt:core.html pt:tag="a" href="$link.url"><pt:logic.value pt:value="$link.title"/></pt:core.html></li> &nbsp;|

146

203

<pt:basepage.header/>

147

204

<pt:basepage.navarea pt:area="BELOWHEADER"/>

148

205

<!-- Begin Navigation links -->

149

206

<div id="ali-mainNav">

150

207

<ul id="ali-nav">

 

208

 

 

209

    <pt:joincommunitypageeditor.addcommunitiesflyoutdata pt:id="flyoutLink" pt:scope="session" />

 

210

    <pt:logic.existexpr pt:data="flyoutLink" pt:key="hasFlyout"/>

 

211

    <pt:logic.if pt:expr="$hasFlyout">

 

212

      <pt:logic.iftrue>

 

213

        <pt:portletpageeditor.flyoutjs pt:flyoutID="selectionEditor" pt:onclick="openFlyout" pt:headerId="ali-header-nav" pt:url="$flyoutLink.url" pt:specifyonclickurl="true" pt:basenavFlyoutID="basenavSelectionEditor"/>

 

214

      </pt:logic.iftrue>

 

215

    </pt:logic.if>

151

216

 

152

217

    <pt:core.comment><!-- set value for page layout --></pt:core.comment>

153

218

    <pt:portletpage.currpagelayoutid pt:id="pageLayout" />

154

219

    <pt:logic.intexpr pt:expr="($pageLayout) > -1" pt:key="isClassicLayout"/>

155

220

 

156

221

    <pt:core.comment><!-- MRC - Profile links --></pt:core.comment>

157

222

    <pt:ptdata.myprofiledata pt:id="myProfileLinks" />

210

274

    <pt:logic.if pt:expr="$addMyCommMenu">

211

275

    <pt:logic.iftrue>

212

276

 

213

277

        <pt:core.comment><!-- Definition of Tab --></pt:core.comment>

214

278

        <li><a href="#"><pt:logic.value pt:value="$#1841.ptmsgs_portalbrowsingmsgs" /> <img src="pt://images/plumtree/portal/private/img/main_nav_arrow.gif" /></a>

215

279

          <ul>

 

280

            <pt:core.comment><!-- Add "Edit My Communities" flyout editor link to the top of the community list --></pt:core.comment>

 

281

            <pt:joincommunitypageeditor.addcommunitiesflyoutdata pt:id="commFlyoutLink" />

 

282

            <pt:logic.existexpr pt:data="commFlyoutLink" pt:key="hasCommFlyout"/>

 

283

                                         

 

284

            <pt:core.comment><!-- Generate JS for onclick event. Activate flyout and disable the "Edit Page" link on portlet page layouts --></pt:core.comment>

 

285

            <pt:logic.if pt:expr="$hasCommFlyout"><pt:logic.iftrue>

 

286

                <pt:logic.variable pt:key="commflyoutjs" pt:value="try {PTFlyoutselectionEditor.openFlyout('"/>

 

287

                <pt:logic.concat pt:key="commflyoutjs" pt:value1="$commflyoutjs" pt:value2="$commFlyoutLink.url" />

 

288

                <pt:logic.concat pt:key="commflyoutjs" pt:value1="$commflyoutjs" pt:value2="'); disableAnchor('ali-pageEdit-anchor', true); return false;} catch (e) {return true;}" />

 

289

                                           

 

290

                <li><pt:core.html pt:tag="a" onclick="$commflyoutjs" class="ali-nav-actions" href="#" ><pt:logic.value pt:value="$#825.ptmsgs_portalcommonmsgs"/></pt:core.html></li>

 

291

            </pt:logic.iftrue></pt:logic.if>

 

292

                                 

216

293

            <pt:core.comment><!-- Begin list Communities --></pt:core.comment>

217

294

            <pt:logic.if pt:expr="$hasCommLinks">

218

295

            <pt:logic.iftrue>

219

296

                <pt:logic.sort pt:data="commLinks" pt:sorteddata="sortedComms" />

220

297

                <pt:logic.foreach pt:data="sortedComms" pt:var="link">

229

306

                <pt:logic.iftrue>

230

307

                 <pt:logic.if pt:expr="$isClassicLayout">

231

308

                   <pt:logic.iftrue>

232

309

                     <pt:core.comment><!-- Add all community actions to the community list if the page layout is "classic" (i.e., not adaptive)--></pt:core.comment>

233

310

                     <pt:ptdata.communityactionsdata        pt:id="commActionsToDisplay"         />

234

311

                   </pt:logic.iftrue>

235

 

                   <pt:logic.iffalse>

236

 

                     <pt:core.comment><!-- Add just "Join Communities" and "Unsubscribe Communities" action links to the community list if the page layout is not "classic" (i.e., adaptive)--></pt:core.comment>

237

 

                     <pt:ptdata.joincommunitiesdata         pt:id="commActionsToDisplay"         />

238

 

                     <pt:ptdata.unsubscribecommunitiesdata  pt:id="commActionsToDisplay"         />

239

 

                   </pt:logic.iffalse>

240

312

                 </pt:logic.if>

241

313

                 </pt:logic.iftrue>

242

314

                                 

 

315

                 <pt:logic.variable pt:key="joincommstr" pt:value="$#297.ptmsgs_portalcommonmsgs"/>

 

316

                 <pt:logic.variable pt:key="unsubscribecommstr" pt:value="$#638.ptmsgs_portalcommonmsgs"/>

 

317

                                 

 

318

                 <pt:core.comment><!-- Skip displaying of "Join Communities" and "Unsubscribe Communities" action links in the community list --></pt:core.comment>

243

319

                 <pt:logic.foreach pt:data="commActionsToDisplay" pt:var="link">

 

320

                     <pt:logic.variable pt:key="commactiontitle" pt:value="$link.title"/>

 

321

                     <pt:logic.stringexpr pt:expr="($commactiontitle) == ($joincommstr)" pt:key="isjoinactionlink" />

 

322

                     <pt:logic.stringexpr pt:expr="($commactiontitle) == ($unsubscribecommstr)" pt:key="isunsubscribeactionlink" />

 

323

                     <pt:logic.boolexpr pt:expr="($isjoinactionlink) || ($isunsubscribeactionlink)" pt:key="displayActionLink"/>

 

324

                     <pt:logic.if pt:expr="$displayActionLink">

 

325

                        <pt:logic.iffalse>

244

326

                          <li><pt:core.html pt:tag="a" class="ali-nav-actions" href="$link.url" ><pt:logic.value pt:value="$link.title"/></pt:core.html></li>

 

327

                        </pt:logic.iffalse>

 

328

                     </pt:logic.if>  

245

329

                 </pt:logic.foreach>                 

246

 

 

247

330

            </pt:logic.if>

248

331

            <pt:core.comment><!-- End Community Actions--></pt:core.comment>

249

332

           </ul>

250

333

        </li>

358

441

  <pt:basepage.navarea pt:area="LEFTOFBODY"/>

359

442

</div>

360

443

<div style="float:right; width:200px;" >

361

444

  <pt:basepage.navarea pt:area="RIGHTOFBODY"/>

362

445

</div>

 

446

 

 

447

<br clear="all" />

 

448

<div id="basenavSelectionEditor" style="float:left; height:0px; text-align:center;">

 

449

</div>

 

450

 

363

451

<pt:basepage.navarea pt:area="ABOVEBODY"/>

364

 

<pt:common.error/>

 

452

<pt:ptui.error>

 

453

                <table border="0" cellpadding="5" cellspacing="0" width="100%">

 

454

                        <tbody>

 

455

                                <tr class="alertBg">

 

456

                                        <td colspan="1" class="alertErrorTitle" align="center" width="80">

 

457

                                                <pt:core.html pt:tag="img" src="pt://images/plumtree/portal/public/img/icon_error.gif" alt="$#624.ptmsgs_portalbrowsingmsgs" border="0" height="20" width="20"/>

 

458

                                        </td>

 

459

                                        <td colspan="1" class="alertErrorTitle" align="left" width="100%">

 

460

                                                <span class="alertErrorTitle" >                                         

 

461

                                                        <pt:logic.value pt:value="$#624.ptmsgs_portalbrowsingmsgs"/>

 

462

                                                        <pt:logic.value pt:value=" - "/>                                                        

 

463

                                                        <pt:ptui.errortext/>

 

464

                                                        <pt:logic.value  pt:encode="0" pt:value="<!--"/>  

 

465

                                                                <pt:logic.value pt:value="$#1949.ptmsgs_portalbrowsingmsgs" />                                                          

 

466

                                                                <pt:ptui.errorextendedmessage/>                                                                 

 

467

                                                        <pt:logic.value pt:encode="0" pt:value="-->" />                                                 

 

468

                                                </span>

 

469

                                        </td>

 

470

                                        <td colspan="1" align="right" width="0">

 

471

                                        </td>                           

 

472

                                </tr>                   

 

473

                        </tbody>

 

474

                </table>

 

475

</pt:ptui.error>

365

476

<pt:basepage.content/>

366

477

<pt:basepage.navarea pt:area="BELOWBODY"/>

367

478

<pt:basepage.navarea pt:area="ABOVEFOOTER"/>

368

479

<pt:basepage.footer/>

369

480

<pt:basepage.navarea pt:area="BELOWFOOTER"/>

370

481

</pt:basepage.pagebody>

371

482

</html>