Quote:
Originally Posted by ARW VISIONS
Honestly Tony it didn't help one bit.
I want to create a custom skin, and write some HTMl /CSS like I have done for 15 years.
I'm a front end developer. I was ok with understanding $smarty.foreach and some basics like that, but from what I have experienced thus far... well x-cart has completely changed. I can't even find any HTML to edit, every file I find has a list.blah.blah... I don't get it.
|
OK, in this case the first method I described (via template) should work for you. Did you manage to apply it?
Let me try to explain how view lists work. We have this code
Code:
<div id="header-area">
<div class="desctop_header">
<list name="layout.header" />
</div>
<list name="layout.header.mobile" />
</div>
This code means that this HTML part will be rendered like this
Code:
<div id="header-area">
<div class="desctop_header">
showing all templates assigned to layout.header view list
</div>
showing all templates assigned to layout.header.mobile view list
</div>
There are two typical questions:
- Q: How to assign a template to view list? A: By specifying directive {* @ListChild (list="view.list.name", weight="10") *}
- Q: Why do you even need this cumbersome stuff? A: Because it is flexible and easy to add new elements to the current design. It is sort of widget areas in Wordpress, where you can create a widget single time and then put it to any area where widgets are supported.
Please, let me know if it helps. Of course, if there are any questions, please let me know.
I am very interested in communication with storefront developers, so it would allow me to write proper docs for such type of developers + we will be able to improve software for you.
Tony.