31 Posts
Catastrophix
9 years ago
Topic

Hi

I'm attempting to override a list view using the Masonry template. Let's assume the list is called list_xyz. I am not quite sure where I might be going wrong using the following structure for my override:

seb_masonry/positions/list_xyz/item/element.php

Can someone point out where I might be going wrong?

Thanks in advance!

Get a VIP membership
9 years ago
2
Level 1

Hi Catastrophix,

Try to do modify the name of your field in the "positions" folder like that: "seb_masonry/positions/list_xyz/item/mainbody.php"

Regards,
Mehdi.

31 Posts
Catastrophix
9 years ago
1
Level 2

Thanks Mehdi,

The list renders with the Masonry template, but it seems the changes to Items in the list can only be made in seb_minima for my config.

It seems I can only set Masonry for the List, but have no option to set it for Item. Therefore overriding in seb_masonry/positions/list_xyz/item/mainbody.php has no effect, whilst doing the same in seb_minima/positions/list_xyz/item/mainbody.php does have an effect to the items (to re-emphasise, I do not have the drop down option in the list config to set the Item template to seb_masonry, only seb_one and seb_minima)).

Thanks!

9 years ago
0
Level 3

aaa

9 years ago
1
Level 1

With template "Masonry" you have three modes to display a list: Standard, Intermediate and Advanced.

To make an override of a position/view of this template, you should:

  • Advanced: create a file on this folder "templates/seb_minima_or_seb_one/positions/search_type_name/item/position_name.php_(mainbody.php_for_example)"
  • Intermediate: create a file on this folder "templates/seb_masonry/positions/search_type_name/item/element.php"
  • Standard: you can't override "Masonry" template if you select this option.

Regards,
Mehdi

31 Posts
Catastrophix
9 years ago
0
Level 2

Thanks very much Mehdi. That clears it up for me.

9 years ago
0
Level 1

Hi Carastrophix,

Please read the tutorial below to have a solution to your need.

Regards,
Mehdi.

9 years ago
0
Level 1

Hi

Regards,
Mehdi

9 years ago
0
Level 1

Hi Catastrophix,

Regards,
Mehdi

Get a Book for SEBLOD