In CS-Cart What is the relationship between themes, templates, blocks and layouts? -


so: understand following:

templates belong theme. css belongs theme. css , html belong theme.

the layout 'above' in way

blocks dynamically generated content (content stored in database) , edited through layout editor , assigned specific location in layout. there built-in blocks available pull out specific data. blocks kind of component or widget.

i've seen in layout 1 can specify controller , view (presumably dispatcher). so; example;

dispatch: viewproduct products.view

i'm guessing means layout in loaded theme products view template? in template /templates/views/products/view.tpl find 2 pieces of interest:

i.

{hook name="products:layout_content"} 

ii.

a comment: "one of selected product templates connected, depending on 'product details view' setting"

my questions are:

what hook line doing here?

and

what/where product details view' setting?

thanks


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

python - Error: Unresolved reference 'selenium' What is the reason? -

asp.net ajax - Jquery scroll to element just goes to top of page -