manage-templates

Define and maintain OFBiz Freemarker templates for dynamic UI widgets.

175|216|Updated Mar 5, 2017
One-click install
npx skills add https://github.com/apache/ofbiz-plugins --skill manage-templates
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: manage-templates
Source: https://github.com/apache/ofbiz-plugins/tree/main/ai-agent-skills/manage-templates
Command: npx skills add https://github.com/apache/ofbiz-plugins --skill manage-templates

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the creation and maintenance of OFBiz Freemarker (FTL) templates, ensuring correct usage of OFBiz directives and context variables for dynamic UI generation.

Core Features & Use Cases

  • Dynamic UI Generation: Create complex HTML components with logic beyond XML widgets.
  • Template Maintenance: Define and manage .ftl files, email templates, and custom PDF layouts.
  • Use Case: When building a custom storefront page that displays featured products with dynamic pricing and category information, this skill ensures the FTL template is correctly structured and uses OFBiz directives for data access and linking.

Quick Start

Use the manage-templates skill to create a new Freemarker template for displaying a list of products, ensuring to use safe variable assignment and OFBiz directives for links and currency.

Frequently Asked Questions about manage-templates

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create dynamic HTML components in OFBiz using Freemarker templates?

Creating dynamic HTML components in OFBiz requires defining Freemarker (FTL) templates that utilize OFBiz directives for data access. This approach handles UI logic beyond standard XML widgets, ensuring correct context variable usage and HTML5 semantic structure.

What is the best way to build a custom storefront page with dynamic pricing in OFBiz?

Building a custom storefront page with dynamic pricing involves creating an FTL template that uses OFBiz directives for currency formatting and links. This ensures correct data rendering and secure encoding for featured products and category information.

When do I need to use FTL templates instead of XML widgets for UI development?

FTL templates are needed for UI development when building custom dashboards, specialized storefront pages, or email templates requiring complex logic. They handle dynamic UI generation that exceeds the capabilities of standard XML widgets.

Does OFBiz Freemarker support custom PDF layouts and email templates?

Yes, OFBiz Freemarker supports custom PDF layouts and email templates through FTL file management. You define and maintain these templates using safe variable assignment and OFBiz directives for content and control flow.

Why do my OFBiz FTL templates have broken links and missing currency formatting?

Broken links and missing currency formatting in FTL templates occur when standard OFBiz directives are not properly applied. Adhering to OFBiz directives for links, currency, and labels ensures correct rendering and secure HTML5 output.