News:

AbanteCart v1.4.2 is released.

Main Menu

Two Cloning queries...

Started by donthecat, November 27, 2017, 03:57:15 PM

Previous topic - Next topic

donthecat

Hi,

What's the basic difference between  "Clone to Extension" and "Clone to Core Template ?

After Cloning, in Blocks, is it normal for all Templates' Blocks to be visible ? (Screenshot attached)

Thanks
You aint Cool if you aint Green...

Save Earth ! It's the Only Planet with Chocolates !!

abolabo

Quote from: donthecat on November 27, 2017, 03:57:15 PM
What's the basic difference between  "Clone to Extension" and "Clone to Core Template ?
Difference in destination of clone. "Core Template" will be placed inside storefront/view folder. "Extension" - inside extension directory.

Quote from: donthecat on November 27, 2017, 03:57:15 PM
After Cloning, in Blocks, is it normal for all Templates' Blocks to be visible ? (Screenshot attached)

what means "visible"? Status?
On you screenshot you have custom banner blocks. Some block assigned into layout and it have status button. Other blocks just orphans (without statuses)
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

donthecat

QuoteDifference in destination of clone. "Core Template" will be placed inside storefront/view folder. "Extension" - inside extension directory.

Got that abalabo, just curious as to why the two options... what's are the advantages/differences in each ?

QuoteOn you screenshot you have custom banner blocks. Some block assigned into layout and it have status button. Other blocks just orphans (without statuses)
I have the default template and the one I cloned... if you see my screenshot, you will find 4 Main Banner Blocks.. 2 showing as ON and 2 Inactive... I presume that the Inactive ones pertain to the unused template. But why two ?
You aint Cool if you aint Green...

Save Earth ! It's the Only Planet with Chocolates !!

abolabo

Quote from: donthecat on November 28, 2017, 02:24:52 PM
But why two ?
Because it's a custom blocks. Each custom blocks use generic as pattern. For example html_block. You have it as generic but you cannot to use it in layout. You should to create custom html block and paste some html-content into it.
You can have a lot of you custom blocks in layout and all of them use html_block as "parent". Another words : custom blocks are descriptions of html-block. We had decided never delete and change it during block-management operations.
Main difference between generic and custom block is adding to database. You cannot to add generic block via admin.
The same approach with form-blocks etc.
So you should to enable, disable, adds and delete all custom blocks manually.
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

donthecat

I'm reopening my query cos I've been working on AbanteCart for the past 5 months and sorta getting the hang of it .... :-)

I'm attaching the screenshots of my Blocks...

My queries

  • How did so many Blocks get created on the same day ? (Probably the DoI)
  • While I get a gist of what Abalabo said, I still not able to figure out why there are 4 of each ? All of them have the same content
  • Were they created automatically or did I create them?
  • If I delete 3 of them, would it matter? and how will I know which ones to delete ?

Many Thanks for the anticipated responses...
You aint Cool if you aint Green...

Save Earth ! It's the Only Planet with Chocolates !!

Basara

Hi.
Blocks are parts of template layouts pages. If you clone or install templates which have blocks with same names you will get "duplicates".

Forum Rules Code of conduct
AbanteCart.com 2010 -