TelescopeJs data-zones

80 Views Asked by At

I want to add postThumbnail zone inside the top zone. I tried doing this

Telescope.modules.add("top","postThumbnail");

It did not work. Can anyone give me solution to this problem?

1

There are 1 best solutions below

1
On

postThumbnail is the module. post_thumbnail is the template. Just a syntax error at this point, but the rest should work fine.

Telescope.modules.add needs an object as second argument, try this :

Telescope.modules.add("top", {
  template: "post_thumbnail",
  // you may need to tweak the order value
  order: 10
});

https://telescope.readme.io/docs/template-modules#adding-a-module