Add extra layout views for modules

  • Posts: 634
  • Thank you received: 16
11 years 4 months ago #108333

Div
Table
List
Inherit

These are the four modes for layout I have for the modules. But I want to create an alternative DIv one that only takes effect on certain modules, so don't want to make regular template overrides.

Where are those views stored? Can I create a new one?





UPDATE: To make it clearer:

I created a new view file listing_div_for_module.php that I want to be different from the usual product listing as it goes to a module and not to the content area.

Then I can only select one type of _div listing in my module configuration. I want to add my own.

Attachments:
Last edit: 11 years 4 months ago by PeterChain.

Please Log in or Create an account to join the conversation.

  • Posts: 82759
  • Thank you received: 13346
  • MODERATOR
11 years 4 months ago #108354

Hi,

Main listing layouts cannot be added to the system.
Why not simply edit one of the three layouts that are by default and change its code to yours ?
I doubt that you're using all the three default layouts for different products listings on your website so just change one you're not using.
For example, if you don't use the list layout for products, edit it via the menu Display->Views and replace its code by yours. Then, in the modules where you want to use it simply select it instead of the other ones.

Please Log in or Create an account to join the conversation.

  • Posts: 634
  • Thank you received: 16
11 years 4 months ago #108366

Good.

Replacing one layout is a good idea now that I know that this can't be replaced. I'll do this.

But anyway please consider this option for the future. Your trick is a good idea but is a trick in the end and maybe in some complex project that would not work.

Thanks for the advice!

Please Log in or Create an account to join the conversation.

Time to create page: 0.063 seconds
Powered by Kunena Forum