Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Custom Layout Breadcrumbs Rate Topic   - - - - -

 

Posted 02 September 2022 - 10:29 AM #1

how to add breadcrumbs in custom layout page?

I've searched, but it doesn't help.

Please help



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 23040 posts

Posted 02 September 2022 - 01:08 PM #2

In the custom controller please use

 

fn_add_breadcrumb('my_page_parent', "categories.catalog");
fn_add_breadcrumb('my_page');

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 1210     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 4025     CS-Cart + YOUPI      USD 1459      Multi-Vendor Ultimate       USD 7500 (6000)


 
  • CS-Cart team
  • CS-Cart support team
  • Moderators
  • Join Date: 04-Apr 11
  • 3988 posts

Posted 02 September 2022 - 01:58 PM #3

Hi!

 

how to add breadcrumbs in custom layout page?

I've searched, but it doesn't help.

Please help

Please use the fn_add_breadcrumb function at your custom controller, to add breadcrumbs. You can check the code of this function in the app/functions/fn.common.php file, for the details.


Sincerely yours, CS-Cart Support Team

 

User guide       |  Developer documentation  |  Core API documentation


 

Posted 03 September 2022 - 06:55 PM #4

 

In the custom controller please use

 

fn_add_breadcrumb('my_page_parent', "categories.catalog");
fn_add_breadcrumb('my_page');

 

 

 

Hi!

 

Please use the fn_add_breadcrumb function at your custom controller, to add breadcrumbs. You can check the code of this function in the app/functions/fn.common.php file, for the details.

 

 

Hi.

Thank you for reply

I added in top-sales.php in controllers/frontend folder

but did not work

I don't know what's wrong.

Thank you.

 

function fn_add_breadcrumb('Home', "Top Sales");

function fn_add_breadcrumb('top-sales');


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 23040 posts

Posted 05 September 2022 - 05:04 AM #5

Please make sure that the corresponding layout page (the default or specific one) has the Breadcrumbs block with the Active status

 

P.S. The second parameter should be breadcrumb URL


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 1210     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 4025     CS-Cart + YOUPI      USD 1459      Multi-Vendor Ultimate       USD 7500 (6000)