Difference between revisions of "Template: EPPOHead"

From Genesys Documentation
Jump to: navigation, search
(removing tabs from rss links)
 
(92 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<onlyinclude>{{#switch:{{{PageType}}}
+
<onlyinclude>
|RNProduct
+
{{#css:  
|RNComponent=
+
ul.related-links, ul.related-links li {display: inline; margin-left: 0;}
<div class="icons"><span class="sub-heading">'''Platforms''': </span>{{SMART_Icons|Offering={{{Platform}}}}}</div>
+
ul.related-links li, ul.related-links>a {padding: 0 20px;border-left: 1px solid #5d3e5d; font-size: 15px;}
<div class="col-md-12" style="padding-left:0;">
+
ul#prod-link li {border: 0 none;}
<div  style="padding: 30px 50px;background-color: #f5f5f5;margin-bottom: 40px;">
+
ul.related-links li:last-child { border-right: 0 none;}
<div class="text-center icon hidden-xs" style=" display: table-cell;
+
ul.related-links li.roles {padding:0 18px; border-left: 1px solid #77828f;}
    padding-right: 50px;
+
ul.related-links li.roles a, ul.related-links li.roles a:focus, ul.related-links li.roles a:hover {font-weight: 400; color: #77828f;}
    vertical-align: middle;
+
ul.related-links li.apps {padding: 0 18px 0 18px;}
    text-align: center;
+
ul.related-links li.apps:last-child {padding-right: 18px;}
    font-size:0.75em;">
+
ul.related-links li.apps:first-child {padding-left: 18px;border-left: 1px solid #77828f;}
<span class="fa-stack fa-5x" style="position: relative;
+
ul.related-links.pages li:first-child, ul.related-links>a:first-child {border:0 none;}
    display: inline-block;
+
span.mw-redirectedfrom {display: none;}
    width: 2em;
+
}}<div class="eppo-head" style="background-color:#f6f6f6; color: #5d3e5d;margin:-20px -18px 20px -36px; padding:20px 20px 30px 40px;">
    height: 2em;
+
<div class="col-md-10" id="eppo-links" style="padding:0; margin-top:-10px;min-height:20px;">
    line-height: 2em;
+
<ul class="related-links">
    vertical-align: middle;
+
{{#if:{{{Application|}}}
" >
+
|{{#arraymaptemplate:{{{Application|}}}
<i class="fa fa-circle fa-stack-2x text-primary" style="color: #5d3e5d !important;"></i>
+
|ApplicationsMap
<i class="fa fa-bullhorn fa-stack-1x fa-inverse"> </i>
+
|,
</span>
+
|
</div>
+
}}
<div style="display: table-cell;margin: 0;padding: 0;vertical-align: top; color: #666 !important;line-height: 1.8333333;">
+
}}</ul>
{{#cargo_query:
+
<ul class="related-links">
tables=RNSection,CloudRN
+
{{#if:{{{Role|}}}
|join on=RNSection._pageName=CloudRN._pageName
+
|{{#arraymaptemplate:{{{Role|}}}
|fields=CloudRN._pageName=Page,DisplayName,ProductArea,RNShort,Component,Product
+
|RolesMap
|format=template
+
|,
|template={{#switch:{{{PageType|}}}|RNProduct=CloudRNLatestCollectionPrint|RNComponent=CloudRNLatestComponentPrint}}
+
|
|named args=yes
+
}}
|where=Product="{{MINTYDOCSPRODUCT}}" {{#if:{{{Component|}}}|AND Component="{{{Component}}}"|}} AND MintyDocsVersion="{{MINTYDOCSVERSION}}"
+
}}</ul>
|order by=DisplayName DESC
 
|limit=1
 
|more results text=}}</div></div>{{#switch:{{{PageType}}}|RNProduct={{#cargo_query:
 
tables=RNSection,CloudRN
 
|join on=RNSection._pageName=CloudRN._pageName
 
|fields=CloudRN._pageName=Page,DisplayName,Component,ProductArea,RNShort,Product
 
|format=template
 
|template=CloudRNCollectionPrint
 
|named args=yes
 
|where=Product="{{MINTYDOCSPRODUCT}}"
 
|order by=DisplayName DESC
 
|group by=DisplayName
 
|offset=1}}|RNComponent={{#cargo_query:
 
tables=RNSection,CloudRN
 
|join on=RNSection._pageName=CloudRN._pageName
 
|fields=CloudRN._pageName=Page,DisplayName,ProductArea,RNShort,Component
 
|format=template
 
|template=CloudRNPrint
 
|named args=yes
 
|where=Product="{{MINTYDOCSPRODUCT}}" AND Component="{{{Component}}}"
 
|order by=DisplayName DESC
 
|default=
 
|group by=DisplayName
 
|offset=1}}}}
 
|#default=<div class="panel eppo">
 
<div class="panel-body">
 
{{#if:{{{Context|}}}|
 
{{#if:{{{Dimension|}}}|{{#if:{{{Tags|}}}|
 
<div class="col-md-6 context">
 
<div class="icons"><span class="sub-heading">'''Platforms''': </span>{{SMART_Icons|Offering={{{Platform}}}}}</div>
 
{{{Context}}}
 
</div>
 
<div class="col-md-6 related">
 
<div class="col-md-6 tags">
 
<span>tags</span>
 
{{#cargo_query:
 
  tables=Article,Article__Tags
 
          |join on=Article._ID=Article__Tags._rowID
 
          |fields=CONCAT('[[',Article__Tags._value,']]')
 
  |where=Article._pageName="{{FULLPAGENAME}}" AND Article__Tags._value IS NOT NULL
 
  |format=ul
 
          |default=
 
  }}
 
</div>
 
<div class="col-md-6 links">
 
<span>links</span>
 
  {{#cargo_query:
 
  tables=Article
 
  |fields=CONCAT('[[',_pageName,'|',DisplayName,']]')
 
  |where=Dimension="{{{Dimension}}}" AND Dimension IS NOT NULL AND _pageName!="{{FULLPAGENAME}}"
 
  |format=ul
 
  |default=test1
 
  }}
 
</div>
 
 
</div>
 
</div>
 +
<div class="col-md-2" id="eppo-version" style="padding:0;"></div>
 +
<div class="clearfix"></div>
 +
<div id="eppo-heading" style="margin-bottom: 15px;"></div>
 +
{{#ifeq:{{{ComingSoon|}}}|Yes|
 +
<span style="background-color: #5D3E5D; color: #fff; padding: 3px 10px; border: 1px solid #5D3E5D; border-radius: 3px; font-size: 90%; font-weight: 500;margin-right: 5px;"><i class="glyphicon glyphicon-flag" style="margin-right: 5px;"></i>Feature coming soon!</span>
 +
|}}{{#if:{{{Context|}}}|
 +
<span>{{{Context}}}</span>}}
 +
<!-- An IF to find if any links at all exist. If yes, format accordingly. If no, do nothing. -->
 +
{{#if:{{EPPOQueries
 +
|PageType={{{PageType|}}}
 +
|RN={{{RN|}}}
 +
|ServiceId={{{ServiceId|}}}
 +
|DepGuideServiceId={{{DepGuideServiceId|}}}
 +
}}
 +
|<div style="margin-top:20px;"><span style="font-weight:600;">Related documentation:</span><ul class="related-links pages">
 +
{{EPPOQueries
 +
|PageType={{{PageType|}}}
 +
|RN={{{RN|}}}
 +
|ServiceId={{{ServiceId|}}}
 +
|DepGuideServiceId={{{DepGuideServiceId|}}}
 +
}}
 +
</ul>
 +
|<!-- do nothing if no links
 +
-->}}
 +
<div>
 +
{{#if:{{{UseCase|}}}
 +
|
 +
{{#switch:{{{Platform|}}}
 +
|GenesysEngage-onpremises=<span style="font-weight:600; ">Related use cases:</span><ul class="related-links">{{#arraymaptemplate:{{{UseCase|}}}|UseCasesMapPE|,|}}</ul>
 +
|GenesysCloud=<span style="font-weight:600; ">Related use cases:</span><ul class="related-links">{{#arraymaptemplate:{{{UseCase|}}}|UseCasesMapPC|,|}}</ul>
 +
|PureConnect=<span style="font-weight:600; ">Related use cases:</span><ul class="related-links">{{#arraymaptemplate:{{{UseCase|}}}|UseCasesMapPCON|,|}}</ul>
 +
}}
 
|
 
|
<div class="col-md-9 context">
+
}}<!--
<div class="icons"><span class="sub-heading">Platforms: </span>{{SMART_Icons|Offering={{{Platform}}}}}</div>
+
 
{{{Context}}}
+
adding RSS links to Relase notes pages & PE guide pages
</div>
+
 
<div class="col-md-3 related">
+
-->{{#switch:{{{RN|}}}
<div class="col-md-3 links">
+
|Yes=<span style="font-weight:600; ">RSS:</span><ul class="related-links pages"><li>[https://all.docs.genesys.com/ReleaseNotes/Current/GenesysEngage-cloud/Hosted?action=rnrss For cloud]</li><li>[https://all.docs.genesys.com/ReleaseNotes/Current/GenesysEngage-cloud/PrivateEdition?action=rnrss For private edition]</li></ul>
<span>links</span>
+
|#default={{#cargo_query:
{{#cargo_query:
+
tables=MintyDocsManual,Article,Service
  tables=Article
+
|join on=
  |fields=CONCAT('[[',_pageName,'|',DisplayName,']]')
+
MintyDocsManual.Manual=Article.Manual,
  |where=Dimension="{{{Dimension}}}" AND Dimension IS NOT NULL AND _pageName!="{{FULLPAGENAME}}"
+
MintyDocsManual.ServiceId=Service.Id
  |format=ul
+
|intro=<span style="font-weight:600; ">RSS:</span><ul class="related-links pages">
  |default=
+
|outro=</ul>
  }}
+
|fields=CONCAT('[https://all.docs.genesys.com/ReleaseNotes/Current/GenesysEngage-cloud/PrivateEdition?action=rnrss For private edition]')
</div>
+
|where=
</div>
+
Article._pageName="{{FULLPAGENAME}}"  
 +
AND (MintyDocsManual.ServiceId IS NOT NULL OR MintyDocsManual.Manual="PEGuide" OR MintyDocsManual.Manual="Operations")
 +
AND Article._pageNamespace="{{NAMESPACENUMBER}}"
 +
|format=template
 +
|template=ListItems
 +
|default=
 +
|group by=Article._pageName
 +
}}
 
}}
 
}}
|
 
{{#if:{{{Tags|}}}|
 
<div class="col-md-9 context">
 
<div class="icons"><span class="sub-heading">Platforms: </span>{{SMART_Icons|Offering={{{Platform}}}}}</div>
 
{{{Context}}}
 
 
</div>
 
</div>
<div class="col-md-3 related">
 
<div class="col-md-6 tags">
 
<span>tags</span>
 
  {{#cargo_query:
 
          tables=Article,Article__Tags
 
                  |join on=Article._ID=Article__Tags._rowID
 
                  |fields=CONCAT('[[',Article__Tags._value,']]')
 
          |where=Article._pageName="{{FULLPAGENAME}}" AND Article__Tags._value IS NOT NULL
 
          |format=ul
 
                  |default=
 
          }}
 
 
</div>
 
</div>
 
</div>
 
</div>
|
+
<!-- Notices--><div id="footer-notice" style="margin: 0 auto;margin-top:20px;display: none;">
<div class="col-md-12 context" style="border-right: 0;">
+
{{#cargo_query:
<div class="icons"><span class="sub-heading">Platforms: </span>{{SMART_Icons|Offering={{{Platform}}}}}</div>
+
tables=
{{{Context}}}
+
Article,
</div>
+
MintyDocsManual
}}
+
|join on=Article._pageNamespace=MintyDocsManual._pageNamespace
}}
+
|fields=MintyDocsManual.Notice
 +
|where=
 +
Article._pageName="{{FULLPAGENAME}}"
 +
AND Article.Manual=MintyDocsManual.Manual
 +
|named args=yes
 +
|format=template
 +
|template=Notices
 +
|default=
 
}}
 
}}
</div></div>}}<nowiki /></onlyinclude>
+
</div></onlyinclude>
<noinclude>[[Category:MintyDocs_Cargo]][[Category:EPPO_Cargo]][[Category:Cargo_CloudRN]]
+
<noinclude>[[Category:MintyDocs_Cargo]][[Category:EPPO_Cargo]][[Category:Cargo_CloudRN]][[Category:UCSales_Cargo]]
</noinclude>
+
</noinclude><noinclude>[[Category:GroupByFix]]</noinclude>

Latest revision as of 12:42, August 25, 2022

Related documentation:
Retrieved from "https://all.docs.genesys.com/Template:EPPOHead (2024-11-09 12:59:36)"