# -- # Copyright (C) 2001-2019 OTRS AG, https://otrs.com/ # -- # This software comes with ABSOLUTELY NO WARRANTY. For details, see # the enclosed file COPYING for license information (GPL). If you # did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt. # -- ## nofilter(TidyAll::Plugin::OTRS::TT::ScriptUsage)

[% Config("FAQ::FAQHook") %]: [% Data.Number %] [% Data.Title | html %]

[% Translate("FAQ Information") | html %]

[% Translate(Data.CategoryName, "18") | html %]

[% RenderBlockStart("Keywords") %] [% Data.Keyword | html %] [% RenderBlockEnd("Keywords") %]

[% Translate(Data.State, "25") | html %]

[% Translate(Data.Valid, "25") | html %]

[% RenderBlockStart("Language") %]

[% Translate(Data.Language, "18") | html %]

[% RenderBlockEnd("Language") %] [% RenderBlockStart("ViewApproval") %]

[% Translate(Data.Approval, "18") | html %]

[% RenderBlockEnd("ViewApproval") %] # show faq dynamic fields [% RenderBlockStart("FAQDynamicField") %]

[% RenderBlockStart("FAQDynamicFieldLink") %] [% Data.Value %] [% RenderBlockEnd("FAQDynamicFieldLink") %] [% RenderBlockStart("FAQDynamicFieldPlain") %] [% Data.Value %] [% RenderBlockEnd("FAQDynamicFieldPlain") %]

[% RenderBlockEnd("FAQDynamicField") %] # example of how to use fixed dynamic field blocks for customizations # Note: Field1 and Field2 are the names of the fields and had to be replaced with the actual # field names #[% RenderBlockStart("FAQDynamicField_Field1") %] # #

#[% RenderBlockStart("FAQDynamicField_Field1_Link") %] # [% Data.Value %] #[% RenderBlockEnd("FAQDynamicField_Field1_Link") %] #[% RenderBlockStart("FAQDynamicField_Field1_Plain") %] # [% Data.Value %] #[% RenderBlockEnd("FAQDynamicField_Field1_Plain") %] #

#[% RenderBlockEnd("FAQDynamicField_Field1") %] #[% RenderBlockStart("FAQDynamicField_Field2") %] # #

#[% RenderBlockStart("FAQDynamicField_Field2_Link") %] # [% Data.Value %] #[% RenderBlockEnd("FAQDynamicField_Field2_Link") %] #[% RenderBlockStart("FAQDynamicField_Field2_Plain") %] # [% Data.Value %] #[% RenderBlockEnd("FAQDynamicField_Field2_Plain") %] #

#[% RenderBlockEnd("FAQDynamicField_Field2") %] [% RenderBlockStart("ViewRating") %]
[% RenderBlockStart("RateStars") %]
[% RenderBlockEnd("RateStars") %] [% RenderBlockStart("RateStarsCount") %]
[% Data.Stars | html %] [% Translate("out of 5") | html %]
[% RenderBlockEnd("RateStarsCount") %]
[% RenderBlockEnd("ViewRating") %] [% RenderBlockStart("ViewVotes") %]

[% Translate(Data.Votes, "18") | html %]

[% RenderBlockEnd("ViewVotes") %] [% RenderBlockStart("ViewNoVotes") %]

[% Translate("No votes found! Be the first one to rate this FAQ article.") | html %]

[% RenderBlockEnd("ViewNoVotes") %]

[% Data.Created | Localize("TimeShort") %] ([% Data.CreatedByUser %])

[% Data.Changed | Localize("TimeShort") %] ([% Data.ChangedByUser %])

[% RenderBlockStart("LinkTableSimple") %]

[% Translate("Linked Objects") | html %]

[% Data.LinkTableStrg %]
[% RenderBlockEnd("LinkTableSimple") %]
[% RenderBlockStart("AttachmentHeader") %]

[% Translate("Attachments") | html %]:

[% RenderBlockStart("AttachmentRow") %] [% Data.Filename | html %] , [% Data.Filesize | html %]
[% RenderBlockEnd("AttachmentRow") %]
[% RenderBlockEnd("AttachmentHeader") %] [% RenderBlockStart("BrowserLinkMessage") %] # Show info, that links within the iframe must be clicked with strg/cmd/shift (depending on the used browser and os) # to open the links in a new window without the security permissions given to the iframe

[% Translate("To open links in the following description blocks, you might need to press Ctrl or Cmd or Shift key while clicking the link (depending on your browser and OS).") | html %]

[% RenderBlockEnd("BrowserLinkMessage") %] [% RenderBlockStart("FAQContent") %]

[% Translate(Data.Caption) | html %] ([% Translate(Data.StateName) | html %])

[% RenderBlockStart("FAQContentHTML") %] # execute IFrame JS asynchronously. Otherwise it could happen before our API was loaded # the following JS code must be within the template, otherwise it could happen, that also this code itself is not loaded yet
# Use the HTML5 sandbox attribute to prevent plugins and scripts from being executed in the browser. # Append session info to URL because IE will not send cookies. # Set 'allow-popups' to allow IE10+ to open links. ref: http://www.w3.org/html/wg/wiki/ChangeProposals/sandbox_allow_popups
[% RenderBlockEnd("FAQContentHTML") %] [% RenderBlockStart("FAQContentPlain") %]
[% Data.Content %]
[% RenderBlockEnd("FAQContentPlain") %]
[% RenderBlockEnd("FAQContent") %] [% RenderBlockStart("FAQVoting") %]

[% Translate("Rating") | html %]

[% Translate("How helpful was this article? Please give us your rating and help to improve the FAQ Database. Thank You!") | html %]

  • [% Translate("not helpful") | html %]
  • [% RenderBlockStart("FAQVotingRateRow") %]
  • [% Data.Title | html %]
  • [% RenderBlockEnd("FAQVotingRateRow") %]
  • [% Translate("very helpful") | html %]

[% RenderBlockEnd("FAQVoting") %]
[% RenderBlockStart("LinkTableComplex") %]
[% Data.LinkTableStrg %]
[% RenderBlockEnd("LinkTableComplex") %]