Astroid-Framework icon indicating copy to clipboard operation
Astroid-Framework copied to clipboard

consistent module positions across different layouts/templates

Open shoulders opened this issue 5 years ago • 4 comments

currently it is difficult to create new module positions in the various astroid based templates. This in itself does not stop anyone being creative with poistions that are defined.

However I would like to see a default list of predefind module positions in the various astroid based templates i.e. templateDetails.xml

This positions would not have to be used but allow portability between the different templates.

The Astroid Zero template has a 'hero-section' module position but does not have a 'slider' module position, however the JD seattle template is the reverse of this. The zero template does not use a slider position devlopers might like this option for their custom projects.

If there were a standardization of these positions this would negate the need (in the short term) the need for dynamically create positions which I guess will be harder to implement.

I would also like to include the following as this number of module positions would mean I would not need to create any more

  • topbar-3
  • topbar-4
  • top-1
  • top-2
  • top-3
  • top-4
  • user-1
  • user-2
  • user-3
  • user-4

I have attached my universal layout I used with the gantry to as a guide on my thinking.

Leonardo da Vinci Quotes the statue is already there I just have to remove the unwanted stone. So I am sort of saying do the same with module positions lol.

example-universal-layout

shoulders avatar Oct 02 '19 14:10 shoulders

This does needs some work. I think we tried to match the default template positions too a little but then there is no straight order. We'll try to come up with something broader and simple in the near future.

chetanmadaan avatar Oct 03 '19 20:10 chetanmadaan

i could come up with my ideal posistion list for the template XML. It should allow compatability with current templates and allow the creation of something like above if required without the need for dynamic module positions.

shoulders avatar Oct 03 '19 22:10 shoulders

Sure... Do you want to provide me with your ideal template xml file with positions? We'll try to get it through.

chetanmadaan avatar Oct 06 '19 20:10 chetanmadaan

this should match with the above. I will at some point check to the names and see if they need to be changed. These names are quite good and follow a naming convention. I can remember if they will match the names you currently have. i will come back to this at some point.

      <position>top-bar-1</position>
      <position>top-bar-2</position>
      <position>top-bar-3</position>
      <position>top-bar-4</position>      
      <position>header</position>
      <position>banner</position>
      <position>navigation</position>
      <position>breadcrumbs</position>      
      <position>promo</position>      
      <position>top</position>
      <position>content-top-1</position>
      <position>content-top-2</position>
      <position>content-top-3</position>
      <position>content-top-4</position>      
      <position>content-left</position>
      <position>user-top</position>
      <position>user-bottom</position>      
      <position>content-right</position>      
      <position>content-bottom-1</position>
      <position>content-bottom-2</position>
      <position>content-bottom-3</position>
      <position>content-bottom-4</position>      
      <position>bottom</position>      
      <position>footer-1</position>
      <position>footer-2</position>
      <position>footer-3</position>
      <position>footer-4</position>      
      <position>hidden</position>
      <position>debug</position>

shoulders avatar Jan 27 '21 11:01 shoulders