Which of the following is NOT a method for adding JavaScript to the Liferay platform?

Prepare for the Liferay Front End Test. Study with flashcards and multiple choice questions, each having hints and explanations. Get ready for your exam!

Adding JavaScript to the Liferay platform can be accomplished through several methods, and understanding each method’s context is essential. The correct choice pertains to the methods that are directly supported within the Liferay ecosystem.

When referring to adding JavaScript, options such as adding global JavaScript through themes indicates a method widely used in Liferay development. Themes allow developers to include base scripts that can be utilized across various pages and elements of the portal, thus facilitating a consistent user experience.

Similarly, adding JavaScript to templates and fragments is a practical approach within Liferay’s framework, as it allows the inclusion of scripts at specific points in the layout, which can enhance individual components or content sections dynamically.

Creating custom JavaScript modules with frameworks like React or Angular is also a viable method in Liferay development. It permits the integration of modern front-end technologies into the platform, embracing component-based development and improving reusability and maintainability of code.

In contrast, the option regarding adding JavaScript via external APIs does not represent a standard method used within the Liferay infrastructure for including JavaScript. External APIs typically provide data and functionality that can interact with Liferay but do not directly serve as a method for including JavaScript code itself in the way that the other options do

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy