Difference between revisions of "Template: EPPOHead"

From Genesys Documentation
Jump to: navigation, search
m (1 revision imported)
(removing tabs from rss links)
 
(46 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<onlyinclude>{{#css:  
+
<onlyinclude>
ul.related-links, ul.related-links li {display: inline; margin-left: 0;}
+
{{#css:  
ul.related-links li {padding: 0 20px; border-left: 1px solid #5d3e5d; font-size: 15px;}
+
ul.related-links, ul.related-links li {display: inline; margin-left: 0;}
ul#prod-link li {border: 0 none;}
+
ul.related-links li, ul.related-links>a {padding: 0 20px;border-left: 1px solid #5d3e5d; font-size: 15px;}
ul.related-links li:last-child { border-right: 0 none;}
+
ul#prod-link li {border: 0 none;}
ul.related-links li.roles {padding:0 18px; border-left: 1px solid #77828f;}
+
ul.related-links li:last-child { border-right: 0 none;}
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;}
+
ul.related-links li.roles {padding:0 18px; border-left: 1px solid #77828f;}
ul.related-links li.apps {padding: 0 6px 0 0}
+
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;}
ul.related-links li.apps:last-child {padding-right: 18px;}
+
ul.related-links li.apps {padding: 0 18px 0 18px;}
ul.related-links li.apps:first-child {padding-left: 18px;border-left: 1px solid #77828f;}
+
ul.related-links li.apps:last-child {padding-right: 18px;}
ul.related-links.pages li:first-child{border:0 none;}
+
ul.related-links li.apps:first-child {padding-left: 18px;border-left: 1px solid #77828f;}
}}<div style="background-color:#f6f6f6; color: #5d3e5d;margin:-20px -18px 20px -36px; padding:20px 20px 30px 40px;">
+
ul.related-links.pages li:first-child, ul.related-links>a:first-child {border:0 none;}
 +
span.mw-redirectedfrom {display: none;}
 +
}}<div class="eppo-head" style="background-color:#f6f6f6; color: #5d3e5d;margin:-20px -18px 20px -36px; padding:20px 20px 30px 40px;">
 
<div class="col-md-10" id="eppo-links" style="padding:0; margin-top:-10px;min-height:20px;">
 
<div class="col-md-10" id="eppo-links" style="padding:0; margin-top:-10px;min-height:20px;">
<ul class="related-links">{{#if:{{{Application|}}}|
+
<ul class="related-links">
{{#arraymaptemplate:{{{Application|}}}|ApplicationsMap|,|}}
+
{{#if:{{{Application|}}}
 +
|{{#arraymaptemplate:{{{Application|}}}
 +
|ApplicationsMap
 +
|,
 +
|
 +
}}
 
}}</ul>
 
}}</ul>
<ul class="related-links">{{#if:{{{Role|}}}|
+
<ul class="related-links">
{{#arraymaptemplate:{{{Role|}}}|RolesMap|,|}}
+
{{#if:{{{Role|}}}
 +
|{{#arraymaptemplate:{{{Role|}}}
 +
|RolesMap
 +
|,
 +
|
 +
}}
 
}}</ul>
 
}}</ul>
 
</div>
 
</div>
Line 25: Line 37:
 
<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>
 
<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|}}}|
 
|}}{{#if:{{{Context|}}}|
<span>{{{Context}}}</span>
+
<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>
 +
}}
 +
|
 +
}}<!--
 +
 
 +
adding RSS links to Relase notes pages & PE guide pages
 +
 
 +
-->{{#switch:{{{RN|}}}
 +
|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>
 +
|#default={{#cargo_query:
 +
tables=MintyDocsManual,Article,Service
 +
|join on=
 +
MintyDocsManual.Manual=Article.Manual,
 +
MintyDocsManual.ServiceId=Service.Id
 +
|intro=<span style="font-weight:600; ">RSS:</span><ul class="related-links pages">
 +
|outro=</ul>
 +
|fields=CONCAT('[https://all.docs.genesys.com/ReleaseNotes/Current/GenesysEngage-cloud/PrivateEdition?action=rnrss For private edition]')
 +
|where=
 +
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:{{#cargo_query:
 
  tables=HIW
 
  |fields=CONCAT('[[',HIW._pageName ,'|',HIW.DisplayName,']]')
 
  |where=HIW.productshort LIKE '%{{#explode:{{FULLPAGENAME}}|/|0}}%' AND HIW._pageNamespace="{{NAMESPACENUMBER}}" AND HIW._pageName!="{{FULLPAGENAME}}"
 
  |format=template
 
  |template=ListItems
 
  |default=
 
}}{{#cargo_query:
 
  tables=GetStarted
 
  |fields=CONCAT('[[',GetStarted._pageName,'|',GetStarted.DisplayName,']]')
 
  |where=GetStarted.productshort LIKE '%{{#explode:{{FULLPAGENAME}}|/|0}}%' AND GetStarted._pageNamespace="{{NAMESPACENUMBER}}" AND GetStarted._pageName!="{{FULLPAGENAME}}" AND _pageName LIKE "%/{{#explode:{{FULLPAGENAME}}|/|2}}/%"
 
  |format=template
 
  |template=ListItems
 
  |default=
 
}}{{#cargo_query:
 
    tables={{{PageType|}}}
 
    |fields=CONCAT('[[',_pageName,'|',DisplayName,']]')
 
    |where=Dimension="{{{Dimension|}}}" AND Dimension IS NOT NULL AND _pageName!="{{FULLPAGENAME}}" AND {{{PageType|}}}._pageName LIKE '%{{#explode:{{FULLPAGENAME}}|/|1}}%' AND {{{PageType|}}}._pageNamespace="{{NAMESPACENUMBER}}"
 
    |format=template
 
    |template=ListItems
 
    |default=
 
}}|<div style="margin-top:20px;"><span style="font-weight:600;">Related pages:</span><ul class="related-links pages">
 
{{#cargo_query:
 
  tables=HIW
 
  |fields=CONCAT('[[',HIW._pageName ,'|',HIW.DisplayName,']]')
 
  |where=HIW.productshort LIKE '%{{#explode:{{FULLPAGENAME}}|/|0}}%' AND HIW._pageNamespace="{{NAMESPACENUMBER}}" AND HIW._pageName!="{{FULLPAGENAME}}"
 
  |format=template
 
  |template=ListItems
 
  |default=
 
}}{{#cargo_query:
 
  tables=GetStarted
 
  |fields=CONCAT('[[',GetStarted._pageName,'|',GetStarted.DisplayName,']]')
 
  |where=GetStarted.productshort LIKE '%{{#explode:{{FULLPAGENAME}}|/|0}}%' AND GetStarted._pageNamespace="{{NAMESPACENUMBER}}" AND GetStarted._pageName!="{{FULLPAGENAME}}" AND _pageName LIKE "%/{{#explode:{{FULLPAGENAME}}|/|2}}/%"
 
  |format=template
 
  |template=ListItems
 
  |default=
 
}}{{#cargo_query:
 
    tables={{{PageType|}}}
 
    |fields=CONCAT('[[',_pageName,'|',DisplayName,']]')
 
    |where=Dimension="{{{Dimension|}}}" AND Dimension IS NOT NULL AND _pageName!="{{FULLPAGENAME}}" AND {{{PageType|}}}._pageName LIKE '%{{#explode:{{FULLPAGENAME}}|/|1}}%' AND {{{PageType|}}}._pageNamespace="{{NAMESPACENUMBER}}"
 
    |format=template
 
    |template=ListItems
 
    |default=
 
}}</ul></div>|}}
 
<div>
 
{{#if:{{{UseCase|}}}|
 
{{#switch:{{{Platform|}}}
 
|PureEngage=<span style="font-weight:600; ">Related use cases:</span><ul class="related-links">{{#arraymaptemplate:{{{UseCase|}}}|UseCasesMapPE|,|}}</ul>
 
|PureCloud=<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>
 
</div>
 
</div>
 
</div>
 
+
</div>
<nowiki /></onlyinclude>
+
<!-- Notices--><div id="footer-notice" style="margin: 0 auto;margin-top:20px;display: none;">
 +
{{#cargo_query:
 +
tables=
 +
Article,
 +
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></onlyinclude>
 
<noinclude>[[Category:MintyDocs_Cargo]][[Category:EPPO_Cargo]][[Category:Cargo_CloudRN]][[Category:UCSales_Cargo]]
 
<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 10:36:58)"