Difference between revisions of "Template: RNPrint"

From Genesys Documentation
Jump to: navigation, search
(Update package: RN Automation)
(Update package: RN Automation: Data Structure)
Line 1: Line 1:
<includeonly><h2>{{{ComponentName|}}}: {{#if:{{{ReleaseDate|}}}|{{#time:F d, Y|{{{ReleaseDate|}}}}}|<span style="background-color:yellow">Date needed</span>}} {{#cargo_query:
+
<includeonly><h2>{{#ifeq:{{#cargo_query:tables=ArticleCloudRN,ArticleCloudRN__ComponentId|join on=ArticleCloudRN._ID=ArticleCloudRN__ComponentId._rowID|fields=COUNT(*)|where=ArticleCloudRN._pageName="{{FULLPAGENAME}}" AND ArticleCloudRN._pageNamespace="{{NAMESPACENUMBER}}"|no html}}|1||{{{ComponentName|}}}:}} {{#if:{{{ReleaseDate|}}}|{{#time:F d, Y|{{{ReleaseDate|}}}}}|<span style="background-color:yellow">Date needed</span>}} {{#cargo_query:
 
tables=ComponentRN,DeploymentType=DT
 
tables=ComponentRN,DeploymentType=DT
 
|join on=ComponentRN.DeploymentTypeId HOLDS DT.Id
 
|join on=ComponentRN.DeploymentTypeId HOLDS DT.Id
 
|fields=CONCAT('[[File:',DT.Image,'|80px]]')
 
|fields=CONCAT('[[File:',DT.Image,'|80px]]')
 
|delimiter=
 
|delimiter=
|where=ComponentRN.ComponentId HOLDS '{{{Component|}}}' AND ReleaseNumber="{{{ReleaseNumber|}}}"
+
|where=ComponentRN.ComponentId HOLDS '{{{Component|}}}' AND ReleaseNumber="{{{ReleaseNumber|}}}" AND ComponentRN._pageNamespace="{{NAMESPACENUMBER}}"
}}
+
}}<!-- removing release type from display until required
 
{{#cargo_query:
 
{{#cargo_query:
 
tables=ComponentRN,ReleaseType=RT
 
tables=ComponentRN,ReleaseType=RT
Line 11: Line 11:
 
|fields=Label
 
|fields=Label
 
|where=ComponentRN.ComponentId HOLDS '{{{Component|}}}' AND ReleaseNumber="{{{ReleaseNumber|}}}"
 
|where=ComponentRN.ComponentId HOLDS '{{{Component|}}}' AND ReleaseNumber="{{{ReleaseNumber|}}}"
}}</h2>
+
}}--></h2>  
 +
 
 
{{AnchorDiv|{{{ReleaseNumber|}}}}}
 
{{AnchorDiv|{{{ReleaseNumber|}}}}}
 
{{#cargo_query:
 
{{#cargo_query:
Line 19: Line 20:
 
|format=outline
 
|format=outline
 
|outline fields=Name
 
|outline fields=Name
|where=ComponentRN.ComponentId HOLDS '{{{Component|}}}' AND ReleaseNumber="{{{ReleaseNumber|}}}" AND LocalContent IS NOT NULL AND IssueType IS NOT NULL
+
|where=ComponentRN.ComponentId HOLDS '{{{Component|}}}' AND ReleaseNumber="{{{ReleaseNumber|}}}" AND LocalContent IS NOT NULL AND IssueType IS NOT NULL AND ComponentRN._pageNamespace="{{NAMESPACENUMBER}}"
 
|order by=IssueType.PrintOrder ASC
 
|order by=IssueType.PrintOrder ASC
 
}}
 
}}
 
__NOCACHE__
 
__NOCACHE__
 
<span style="font-size:80%">[[{{{Page|}}}|(Link to source)]]</span></includeonly><noinclude>[[Category:RNAutomation]]</noinclude>
 
<span style="font-size:80%">[[{{{Page|}}}|(Link to source)]]</span></includeonly><noinclude>[[Category:RNAutomation]]</noinclude>

Revision as of 21:03, March 22, 2021

Retrieved from "https://all.docs.genesys.com/Template:RNPrint (2024-07-28 02:33:18)"