How do I Get Current Article ID/Custom Article Menu Item?

English! place to talk about development, programming and coding
Post Reply
nevar
Znuny newbie
Posts: 1
Joined: 24 Oct 2013, 15:57
Znuny Version: 3.2.x git

How do I Get Current Article ID/Custom Article Menu Item?

Post by nevar »

Hi,

When viewing a ticket's details in OTRS, there is a table listing
Articles numbered starting from 1. Selecting an article
displays it (or you can display all of them at the same time).

How does one programatically get the currently selected ArticleID?

or alternatively

How do I add a new menu item next to the ones in the Article table?
Where it has "Forward | Bounce | Split | Print | Reply: | Reply All:"
The "Print" option there has the article ID as part of its link.
So I wish to create a custom menu item there with similar details.

Thx.

EDIT: For OTRS Version 3.2.x.

EDIT: I've gone with creating a Frontend Module with my required functionality and modifying the OTRS source code in Kernel/Modules/AgentTicketZoom.pm during package installation with <CodeInstall>/<CodeUninstall>
Post Reply