Skip the setup. Our team will have you taking orders in 24 hours. Get started →
Version notice: This documentation is for version 3, but the latest available version is version 4.
Extensions

Frontend Extension

Introduction Features Installation Admin Panel Captcha Configuration Components Banners Component Contact Component Featured Items Component Newsletter Com...

Add more functionality to your TastyIgniter website with these awesome basic tools.

  • Place banners on any front-end page
  • Manage and display featured menu items
  • Display a subscribe form to gain subscribers using mailchimp
  • Manage and show an hero slider on any front-end page
  • Contact form
  • Display Google reCAPTCHA on any front-end page

When adding components to a page or layout, use the admin user interface to avoid common errors.

To install this extension, click on the Add to Site button on the TastyIgniter marketplace item page or search for Igniter.Frontend in Admin System > Updates > Browse Extensions

In the admin user interface you can manage banners, featured items and images for the slider. Manage banners on the ** Design > Banners & Sliders** page and slider on the System > Settings > Slider Settings page

In the admin go to Settings > reCaptcha Settings. You must enter a Site Key and a Secret Key. Selecting a language is optional. Please follow the instructions on the settings page to get these keys.

Name Page variable Description
Banners @component('banners') Displays banners
Contact @component('contact') Displays Contact form
FeaturedItems @component('featuredItems') Displays featured menu items
Newsletter @component('newsletter') Displays newsletter subscribe form
Slider @component('slider') Displays carousel slider
Captcha @component('captcha') Displays Google reCAPTCHA

Properties

Property Description Example Value Default Value
banner_id Banner ID
width Width 960 960
height Height 360 360

Variables available in templates

Variable Description
{{ $banner }} The banner to display

Example:


---

'[banners]':
    width: 960
    height: 360

---

...
@component('banners')
...

Example of multiple banners on a single page:


---

'[banners bannerOne]':
    banner_id: 1
    width: 960
    height: 360

'[banners bannerTwo]':
    banner_id: 2
    width: 960
    height: 360

'[banners bannerThree]':
    banner_id: 3
    width: 960
    height: 360

---

...
@component('bannerOne')
@component('bannerTwo')
@component('bannerThree')
...

Properties

Property Description Example Value Default Value
redirectPage Page path to redirect to after contact form has been sent successfully contact contact

Example:


---

title: 'Contact'
permalink: /contact

'[contact]':

---

...
@component('contact')
...

Properties

Property Description Example Value Default Value
title Title to display
items List of menu item ids to display
limit Number of items to display 12 12
itemsPerRow Number if items to display per row 3 3
itemWidth Item Width 400 400
itemHeight Item Height 300 300

Variables available in templates

Variable Description
{{ $featuredTitle }} Title
{{ $featuredPerRow }} Items per row
{{ $featuredWidth }} Item width
{{ $featuredHeight }} Item height
{{ $featuredMenuItems }} List of featured items to display

Example:


---

title: 'Home'
permalink: /

'[featuredItems]':
    items: ['1', '2', '3', '4']
    limit: 3
    itemsPerRow: 3
    itemWidth: 400
    itemHeight: 300

---

...
@component('featuredItems')
...

Example:


---

'[newsletter]': {  }

---

...
@component('newsletter')
...

Example:


---

'[slider]': {  }

---

...
@component('slider')
...

Using the captcha is as easy as possible: simply place the captcha component anywhere between < form > and </form > on your pages. Of course, you can also use the captcha component on multiple pages.

Example:


---

'[captcha]': {  }

---

<form>
...
@component('captcha')
...
</form>

Verify submitted data

Add recaptcha to your rules

$validator = Validator::make(request()->all(), [
    ...
    'g-recaptcha-response' => 'recaptcha',
]);

Print form errors

$errors = $validator->errors();

Did this answer your question?

Your feedback helps us improve our help articles.

Need more help?

Explore the help center, join the community, or get priority support from the TastyIgniter team.