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 these additional module positions #662

Open
shoulders opened this issue Apr 24, 2024 · 4 comments
Open

Add these additional module positions #662

shoulders opened this issue Apr 24, 2024 · 4 comments

Comments

@shoulders
Copy link

shoulders commented Apr 24, 2024

Joomla 5.1
Framework Version: 3.0.14
Template Version: 1.0.4

The request

Can you add the following modules positions

  • astroid-header-block-1
  • astroid-header-block-2
  • astroid-social
  • astroid-contact

The reason

I would like to add my social icons into one of the header blocks but currently I would have to use one of the other module positions which is a waste.

The new module positions above will allow proper use for the header block, social icons and the contact information all independently.

I do not want to use the top-a and top-b as they are used for other things such as the login and log out.

image

Workaround

What I currently do is to add the module positions into the templateDetails.xml manually.

<positions>
      .................
      <position>astroid-header</position>

      <position>astroid-header-block-1</position>
      <position>astroid-header-block-2</position>
      <position>astroid-social</position>
      <position>astroid-contact</position>

      <position>content-top</position>
      .................
</positions>
@rinka88
Copy link

rinka88 commented Apr 25, 2024

This is not necessary.
There are 2 ways:

  1. Create a child template and change it there templateDetails.xml

  2. Create a new module, manually enter the names of the position you want to display and press Enter, create a new position in the template settings and select there what you have assigned in the module.

@shoulders
Copy link
Author

These are a special case because they can be assigned in the template options. They should be part of the core template.

Header

image

Social

image

Contact Information

image

@sonvnn
Copy link
Member

sonvnn commented Apr 25, 2024

@shoulders Create child-template is the best way to override main template without worry about update.

@shoulders
Copy link
Author

My solution is not just for my particular situation. I just feel these module positions should be added to the core template for reasons stated above 😄 . It also makes things a little easier to setup for the end user as they have an obvious module position to use for the various functions.

I can edit my template etc.. to add these positions with ease, but thanks for the pointers.

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

No branches or pull requests

3 participants