AbanteCart Community

eCommerce construction => Templates => Topic started by: altongasi on January 02, 2013, 02:44:18 PM

Title: Custom Template
Post by: altongasi on January 02, 2013, 02:44:18 PM
Hi All,

I've tried to add some HTML elements in Home Page as a block and activate the Frame, but I saw  difference that in new HTML elements there were no icons beside <a> element. Can anyone tell me how to put/add icons beside it?

Thanks  8) ;D ;D ;D
Title: Re: Custom Template
Post by: abantecart on January 02, 2013, 08:57:46 PM
Not quite clear what you try to do. Do you need to add image?
Title: Re: Custom Template
Post by: altongasi on January 03, 2013, 06:06:26 AM
Exactly!!
Title: Re: Custom Template
Post by: abantecart on January 03, 2013, 10:57:21 AM
Can you please post the screenshot with what you try to do?
Title: Re: Custom Template
Post by: altongasi on January 03, 2013, 02:46:30 PM
Here it is.... i wanna put image/icons on new blocks same as the one owns by built-in blocks.

Thanks for reply.
Title: Re: Custom Template
Post by: altongasi on January 03, 2013, 02:56:49 PM
Continued.....

Please explain these 3 options' difference?

Thanks
Title: Re: Custom Template
Post by: abolabo on January 04, 2013, 04:35:28 AM
Continued.....

Please explain these 3 options' difference?

Thanks
Abantecart have two types of blocks - generic and custom. Custom based on abstract generic blocks like html_block, listing_block, banner_block etc.

all generic blocks have templates set. Template assist to placeholder (parent block of page layout). You can see it on design->layouts form.

When you creates new custom block and choose it's type, (in your case html_block), you can set any template of base block for it. When you choose "default" it's mean that block will use template depend on placeholder.  If you place your block to content_top or content_bottom placeholder it's will take html_block_content.tpl. If header - it will take html_block_header.tpl.
"Default" mean "automatically" by other words.
When you choose special template for your custom block it's mean that block will use it's tpl always... independently from placeholder.