Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an Option to Load Modules by ID in Header Blocks #924

Open
salahjaafar opened this issue Dec 17, 2024 · 0 comments
Open

Add an Option to Load Modules by ID in Header Blocks #924

salahjaafar opened this issue Dec 17, 2024 · 0 comments

Comments

@salahjaafar
Copy link

salahjaafar commented Dec 17, 2024

Hello Astroid Framework Team,

First of all, thank you for the incredible work you're doing with this framework, which makes Joomla! Development much easier.

@sonvnn @Joomlaplates I’d like to propose an enhancement to add an option allowing us to load specific modules by their ID in Header Block 1 and Header Block 2.

Proposal:

The goal is to introduce functionality similar to Joomla’s existing loadmoduleid method (used in content). While this method simplifies loading modules by ID in content areas, it’s currently unavailable for the Header Blocks.

Challenges:

  • Modules assigned to positions like left, right, etc., can sometimes display duplicate content when loaded in multiple contexts.
  • Assigning modules to specific positions isn’t always intuitive for dynamic configurations.

Benefits of This Feature:

  1. Increased Flexibility:
    Loading modules directly by their ID would remove the need to assign them to specific positions.

  2. Elimination of Duplicates:
    This approach would prevent duplicate displays, especially when modules are assigned to multiple positions.

  3. Consistency with Joomla:
    Aligning this feature with Joomla's existing practices would improve integration and familiarity for users.

Where:

  • moduleid specifies the module’s ID to be loaded.
  • block indicates the target area (e.g., header1 or header2).

Conclusion:

This enhancement would be a significant improvement for Astroid Framework users, especially for complex projects requiring dynamic modular displays without redundancy.

Thank you for considering this suggestion. If you need additional details, I’d be happy to collaborate further to refine this proposal.

Best regards,
Salah JAAFAR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant