portletdefaultlayout.html – Changes Between 6.5 MP1 and 6.5 MP2

 

Summary of Changes:

-         Moved One-Click Join/Unsubscribe this Community action link to the left after breadcrumbs. [Go to change]

-         Removed flyoutJS declaration. This has been moved to the basepagelayout.html and profilepagelayout.html to support displaying of the Join Community Flyout Editor from any 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. Changes also include switching the “Edit Page” link text when opening and closing the Portlet Selection Flyout. [Go to change]

-         Renamed flyout div id from “portletSelection” to “selectionEditor”. This is to generalize the name of the ID as this is shared between the Join Community Flyout and Portlet Selection Flyout Editors. [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.

 

4

4

<span xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'>

5

5

 

6

6

<pt:portletpage.portletregiondata pt:key="region1" pt:region="1" />

7

7

<pt:portletpage.portletregiondata pt:key="region2" pt:region="2" />

8

8

<pt:portletpage.portletregiondata pt:key="region3" pt:region="3" />

9

9

 

 

10

<pt:ptdata.currcommunitypagesdata       pt:id="currCommPagesData" />

 

11

<pt:logic.existexpr pt:data="currCommPagesData" pt:key="hasCurrCommPagesData"/>

10

12

 

11

13

<div id="ali-breadcrumb-container">

12

14

<!-- Start breadcrumbs path -->

13

15

<div id="ali-breadcrumb">

14

16

  <ul>

15

17

    <li>

16

18

      <pt:portletpage.pagenamebreadcrumbsdata pt:id="pagenamebreadcrumbs"/>

27

29

          </pt:logic.iffalse>

28

30

        </pt:logic.if>

29

31

        <pt:logic.separator> &#62; </pt:logic.separator>

30

32

      </pt:logic.foreach>

31

33

    </li>

 

34

          

 

35

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

 

36

       <pt:core.comment><!-- Add One-Click Join/Unsubscribe Community links after breadcrumbs --></pt:core.comment>

 

37

       <pt:logic.iftrue>

 

38

          <pt:ptdata.joincurrcommunitydata        pt:id="commPageActions"       pt:img="pt://images/plumtree/portal/private/img/action_communities_join.gif"/>

 

39

          <pt:ptdata.unsubscribecurrcommunitydata pt:id="commPageActions"       pt:img="pt://images/plumtree/portal/private/img/action_communities_unsub.gif"/>

 

40

       </pt:logic.iftrue>

 

41

 

 

42

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

 

43

          |<li>

 

44

              <pt:core.html pt:tag="img" src="$link.img"/>

 

45

              <pt:core.html pt:tag="a" href="$link.url" >

 

46

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

 

47

              </pt:core.html>

 

48

          </li>

 

49

       </pt:logic.foreach>                                      

 

50

    </pt:logic.if>

32

51

  </ul>

33

52

</div>

34

53

<!-- End breadcrumbs path -->

35

54

 

36

55

<!-- Start Page Action Buttons -->

37

56

<pt:core.comment><!-- DCA - get the Portlet Selection Flyout URL --></pt:core.comment>

38

57

<pt:portletpageeditor.sortpropertiesdata pt:id="sortpropspt:scope="session" pt:defaultsort="1"/>

39

 

 

40

58

<pt:portletpageeditor.addportletsflyoutdata pt:id="flyoutLinkpt:sortprops="sortpropspt:propscope="session" />

41

 

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

42

 

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

43

 

    <pt:logic.iftrue>

44

 

      <pt:portletpageeditor.flyoutjs pt:flyoutID="portletSelection" pt:onclick="openFlyout" pt:headerId="ali-header-nav" pt:url="$flyoutLink.url" pt:anchorId="ali-pageEdit-anchor" pt:flyoutAnchorText="$#130.ptmsgs_portalinfrastructure" pt:flyinAnchorText="$#301.ptmsgs_portalcommonmsgs"/>

45

 

    </pt:logic.iftrue>

46

 

</pt:logic.if>

47

59

 

48

60

<pt:core.comment><!-- DCA - add javascript fro collapsing and expanding portlets --></pt:core.comment>

49

 

<pt:portletpageeditor.collapseexpandjs pt:onclick="sendCollapseExpandRequestpt:flyoutID="portletSelection1" />

 

61

<pt:portletpageeditor.collapseexpandjs pt:onclick="sendCollapseExpandRequestpt:flyoutID="selectionEditor1" />

50

62

 

51

 

<pt:ptdata.currcommunitypagesdata       pt:id="currCommPagesData" />

52

 

<pt:logic.existexpr pt:data="currCommPagesData" pt:key="hasCurrCommPagesData"/>

53

 

 

54

63

<!-- Page Actions -->

55

64

<div id="ali-pageEdit">

56

65

        

57

66

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

58

67

    <pt:core.comment><!-- Community Page Edit Links --></pt:core.comment>

59

68

    <pt:logic.iftrue>

60

 

                  <pt:ptdata.joincurrcommunitydata        pt:id="pageActions"   pt:img="pt://images/plumtree/portal/private/img/action_communities_join.gif"/>

61

 

      <pt:ptdata.unsubscribecurrcommunitydata pt:id="pageActions"       pt:img="pt://images/plumtree/portal/private/img/action_communities_unsub.gif"/>

62

69

      <pt:ptdata.createcommpageoneclickdata     pt:id="pageActions"     pt:img="pt://images/plumtree/portal/private/img/icon_add_page.png"/> 

63

70

      <pt:ptdata.editcommunitydata                                              pt:id="editPage" />

64

71

    </pt:logic.iftrue>

65

72

    <pt:core.comment><!-- MyPage Actions Links --></pt:core.comment>

66

73

    <pt:logic.iffalse>

67

74

      <pt:ptdata.createnewmypageoneclickdata  pt:id="pageActions" pt:img="pt://images/plumtree/portal/private/img/icon_add_page.png"/>

80

87

    </pt:logic.foreach>    

81

88

 

82

89

    <pt:core.comment><!-- The Edit Page Link, foreach loop is used to get the single entry out of the edit page data --></pt:core.comment

83

90

    <pt:logic.foreach pt:data="editPagept:var="editpagelink">

84

91

    |<li>

 

92

        <!-- Portlet Flyout Onlick JS. Switch the flyout/flyin anchor text during onclick -->

 

93

        <pt:logic.variable pt:key="portletflyoutjs" pt:value="try {bea.PortalPageDnD.dndToggle(); PTFlyoutselectionEditor.openFlyout('"/>

 

94

        <pt:logic.concat pt:key="portletflyoutjs" pt:value1="$portletflyoutjs" pt:value2="$flyoutLink.url" />

 

95

        <pt:logic.concat pt:key="portletflyoutjs" pt:value1="$portletflyoutjs" pt:value2="'); var anchor = bea.dojoObj.byId('ali-pageEdit-anchor'); anchor.innerHTML = '" />

 

96

        <pt:logic.concat pt:key="portletflyoutjs" pt:value1="$portletflyoutjs" pt:value2="$#130.ptmsgs_portalinfrastructure" />

 

97

        <pt:logic.concat pt:key="portletflyoutjs" pt:value1="$portletflyoutjs" pt:value2="'; return false;} catch (e) {return true;}" />

 

98

 

85

99

        <img src="pt://images/plumtree/portal/private/img/icon_edit_page.png" />

86

100

        <!-- openFlyout is defined by the pt:portletpageeditor.flyoutjs tag and PortalPageDND is defined in dojo -->

87

 

      <pt:core.html pt:tag="a" id="ali-pageEdit-anchoronclick="try {bea.PortalPageDnD.dndToggle(); PTFlyoutportletSelection.openFlyout(); return false;} catch (e) {return true;}href="$editpagelink.url" >

 

101

        <pt:core.html pt:tag="a" id="ali-pageEdit-anchoronclick="$portletflyoutjshref="$editpagelink.url" >

88

102

          <pt:logic.value pt:value="$#301.ptmsgs_portalcommonmsgs"/>

89

103

        </pt:core.html>

90

104

    </li>

91

105

        </pt:logic.foreach>

92

106

  

93

107

        </ul>

113

127

</pt:logic.if>

114

128

</div>

115

129

<!-- End Page Action Buttons -->

116

130

 

117

131

</div>

118

132

<br clear="all" />

119

 

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

 

133

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

120

134

</div>

121

135

 

122

136

<table width="100%" height="100%" style="clear:left;">

123

137

    <tr>

124

138

        <td class="columnOnevalign="top">

125

139

  <!-- Vertical Region One -->

126

140

  <pt:portletpage.portletregiondisplay class="portletRegionpt:region="1" pt:direction="v">