Topic Resolution: Answered

Schlagwörter: ,

Ansicht von 1 Antwort-Thema
  • Autor
    Beiträge
    • #33909
      Answered
      David Scharf
      Teilnehmer

        Hallo,

        ich habe FAQ Artikel über eine Kategorie nur für bestimmte Kunden aktiviert, die die entspr. Rolle haben. Nun können aber dennoch alle Kundennutzer im Customer FAQ Explorer die zuletzt für andere Kunden erstellten FAQ Artikel sehen (zumindest den Titel – beim Draufklicken kommt ein Berechtigungsfehler).

        Kann ich das abstellen?

      • #33925
        Best Answer
        David Scharf
        Teilnehmer

          Wen es interessiert: /Kernel/Output/HTML/Templates/Standard/CustomerFAQExplorer.tt einfach ändern und in /Custom/Kernel/Output/HTML/Templates/Standard/CustomerFAQExplorer.tt ablegen. Über SystemConfig kann man es nicht steuern.

          Auf diese Weise wird nun die Funktion Latest updated FAQ articles auf Category 0 (Einstiegsseite FAQs) komplett deaktiviert. Hier der Code (zum Vergleich Originalcode: https://github.com/RotherOSS/FAQ/blob/master/Kernel/Output/HTML/Templates/Standard/CustomerFAQExplorer.tt

          # —
          # OTOBO is a web-based ticketing system for service organisations.
          # —
          # Copyright (C) 2001-2019 OTRS AG, https://otrs.com/
          # Copyright (C) 2019-2024 Rother OSS GmbH, https://otobo.io/
          # —
          # This program is free software: you can redistribute it and/or modify it under
          # the terms of the GNU General Public License as published by the Free Software
          # Foundation, either version 3 of the License, or (at your option) any later version.
          # This program is distributed in the hope that it will be useful, but WITHOUT
          # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
          # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
          # You should have received a copy of the GNU General Public License
          # along with this program. If not, see <https://www.gnu.org/licenses/&gt;.
          # —

          <h1>[% Translate(„FAQ Explorer“) | html %]</h1>

          <form action=“[% Env(„CGIHandle“) %]“ method=“post“ name=“compose“>
          <input type=“hidden“ name=“Action“ value=“CustomerFAQExplorer“/>
          <input type=“hidden“ name=“Subaction“ value=“Search“/><h3 class=’ooog‘>
          <i class=“ooofo ooofo-search“></i>
          <input type=“text“ name=“What“ id=“oooSearch“ title=“[% Translate(‚FAQ Search‘) | html %]“/>
          [% Translate(‚FAQ Search‘) | html %]
          </h3>
          </form>

          [% RenderBlockStart(„Subcategories“) %]

          [% RenderBlockStart(„OverviewResult“) %]

          <h2>[% Translate(„Subcategories“) | html %]</h2>

          # no whitespace/newline results in no whitespace between display: inline-block; elements
          [% RenderBlockStart(„OverviewResultRow“) %]
          <h3>[% Data.Name | html %]</h3>
          [% IF Data.SubCategoryCount %]

          [% Data.SubCategoryCount | html %]

          [% END %]

          [% Data.Comment | html %]

           

          [% RenderBlockEnd(„OverviewResultRow“) %]
          # RenderBlockEnd(„OverviewResultRow“)

          [% RenderBlockEnd(„OverviewResult“) %]

          [% RenderBlockEnd(„Subcategories“) %]

           

          [% RenderBlockStart(„FAQItemList“) %]

          [% IF Data.CategoryID == 0 %]

          [% ELSE %]
          <h2>[% Translate(„FAQ Articles“) | html %]</h2>
          [% END %]
          [% RenderBlockStart(„Pagination“) %]

          [% RenderBlockEnd(„Pagination“) %]

          [% IF Data.CategoryID == 0 %]

          [% ELSE %]

          [% RenderBlockStart(„NoFAQDataFoundMsg“) %]

          <h3>[% Translate(„No FAQ articles found.“) | html %]</h3>

          [% RenderBlockEnd(„NoFAQDataFoundMsg“) %]
          [% RenderBlockStart(„Record“) %]

          <h3 class=“Title“ title=“[% Data.Title | html %]“>[% Data.Title | html %]</h3>
          [% RenderBlockStart(„RecordLanguage“) %]

          [% Data.Language | truncate(5) | html %]

          [% RenderBlockEnd(„RecordLanguage“) %]

          [% RenderBlockEnd(„Record“) %][% RenderBlockStart(„BottomSubNavigation“) %]

          [% RenderBlockEnd(„BottomSubNavigation“) %]

          [% END %]

          [% RenderBlockEnd(„FAQItemList“) %]

           

          • Diese Antwort wurde vor 1 Monat, 1 Woche von David Scharf geändert.
          • Diese Antwort wurde vor 1 Monat, 1 Woche von David Scharf geändert.
      Ansicht von 1 Antwort-Thema
      • Du musst angemeldet sein, um auf dieses Thema antworten zu können.