templaza / astroid-framework

Powerful framework for designers and developers to create responsive, fast & robust Joomla based websites and templates.
https://astroidframe.work/
GNU General Public License v3.0
76 stars 12 forks source link

Add these additional module positions #662

Open shoulders opened 2 months ago

shoulders commented 2 months ago

Joomla 5.1 Framework Version: 3.0.14 Template Version: 1.0.4

The request

Can you add the following modules positions

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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

shoulders commented 2 months ago

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.