Knowledge Base

Custom Macros vs. Custom Tabs

Find out how customer macros differ from automated tasks in Ingeniux CMS development and administration.


In the realm of CMS development, both automated tasks and custom macros serve as powerful tools for optimizing workflows and enhancing functionality. However, their approaches to automation and execution differ significantly. This article explores the distinctions between the Ingeniux CMS Automated Task Framework and custom macros, highlighting their respective benefits and use cases. 

Automated Tasks 

What Are Automated Tasks? 

Automated tasks in Ingeniux CMS are pre-scheduled or manually triggered processes that run in the background, enabling developers to execute complex and time-consuming operations without direct user involvement. These tasks leverage the CMS’s Automated Task Framework to handle large-scale operations efficiently. 

Key Features 

  1. Scheduled Execution: Automated tasks can be scheduled to run at specific times or intervals, minimizing disruption to active users. 
  2. Asynchronous Processing: Tasks run independently of user actions, ensuring that workflows remain uninterrupted. 
  3. Scalability: Ideal for large-scale operations, such as processing thousands of pages or assets. 
  4. Error Logging: Automated tasks generate detailed logs, making it easier to track issues and refine task execution. 

Advantages 

  1. Efficiency: Handles extensive operations during off-peak hours, reducing strain on system resources. 
  2. Consistency: Ensures processes are executed uniformly across the site. 
  3. Hands-Off Operation: Once scheduled, tasks require no further user intervention. 

Limitations 

  1. Setup Complexity: Requires configuration through the Automated Task Framework, which can be complex for simple tasks. 
  2. Limited Interactivity: Designed for background operations, automated tasks lack direct user interaction. 
  3. Execution Time: Depending on the task size, execution can take significant time to complete. 

Custom Macros 

What Are Custom Macros? 

Custom macros are developer-defined scripts that can be triggered manually through the CMS interface. Unlike automated tasks, they are typically used for on-demand operations that require user interaction or immediate results. 

Key Features 

  1. Manual Execution: Users can trigger macros directly, allowing for real-time operation. 
  2. Interactive Feedback: Custom macros can communicate with users via messages or prompts. 
  3. Versatility: Capable of performing a wide range of tasks, from simple updates to complex data manipulations. 

Advantages 

  1. Immediate Action: Provides instant results for user-triggered operations. 
  2. Flexibility: Can be executed as needed without requiring pre-scheduling. 
  3. User Interaction: Facilitates workflows that benefit from user oversight or input. 

Limitations 

  1. User Dependency: Requires manual initiation, which might lead to oversight or delays. 
  2. Scope Limitations: While flexible, macros may not be as efficient for large-scale operations as automated tasks. 

Use Cases: Automated Tasks vs. Custom Macros 

Use Case: Bulk Metadata Updates 

Automated Tasks 

  • Scenario: Update metadata across thousands of pages. 
  • Implementation: Schedule an automated task to iterate through pages and apply updates during off-peak hours. 
  • Advantages: Efficient processing without user involvement, ensures site-wide consistency. 
  • Disadvantages: Requires configuration and scheduling. 

Custom Macros 

  • Scenario: Update metadata for a subset of pages on demand. 
  • Implementation: Create a macro to allow users to select specific pages and apply updates immediately. 
  • Advantages: Immediate results and user control. 
  • Disadvantages: Less suited for large-scale updates. 

Use Case: Content Cleanup 

Automated Tasks 

  • Scenario: Identify and archive outdated content. 
  • Implementation: Schedule a task to scan for outdated content and archive it in bulk. 
  • Advantages: Automates repetitive processes, ideal for large datasets. 
  • Disadvantages: May lack nuanced decision-making capabilities. 

Custom Macros 

  • Scenario: Allow users to manually review and archive outdated content. 
  • Implementation: Provide a macro that enables users to flag and process content interactively. 
  • Advantages: User oversight ensures precision. 
  • Disadvantages: Requires manual effort and user time. 

Conclusion 

Both automated tasks and custom macros are integral to streamlining CMS workflows, yet they cater to different needs. Automated tasks excel at handling large-scale, repetitive operations with minimal user involvement, making them ideal for scheduled or background processing. On the other hand, custom macros shine in scenarios requiring immediate action, user control, or interactive feedback. 

By leveraging both automated tasks and custom macros, developers can create a balanced and efficient CMS environment that maximizes productivity while catering to diverse operational requirements. Automated tasks ensure consistency and scalability, while custom macros provide flexibility and responsiveness, making them complementary tools in a developer’s toolkit.

  • PRODUCT: CMS
  • VERSION: CMS 10
  • RELEASE: 10.6
  • Published: February 18, 2025
  • LAST UPDATED: February 20, 2025
  • Comments: 0

Please login to comment

Comments


There are no comments yet.