Auth pages using Aimeos views

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
snicto
Posts: 37
Joined: 12 Oct 2022, 14:00

Auth pages using Aimeos views

Post by snicto » 25 Jan 2023, 19:55

All authorization pages use their own views and etc. How could I add existing Aimeos theme views to the login forms? Basically, I want to achieve that authorization pages look the same as shop pages, so the user feels like he is still on the same page, not directed to some backend page.

User avatar
aimeos
Administrator
Posts: 7858
Joined: 01 Jan 1970, 00:00

Re: Auth pages using Aimeos views

Post by aimeos » 27 Jan 2023, 09:30

You need to use the Aimeos base Blade template for all auth pages. and their templates are in the ./resources/views/auth/ folder. Extend from the base Blade template and use the @content section for the auth components, e.g.:

Code: Select all

@extends( ( app( 'aimeos.context' )->get()->locale()->getSiteItem()->getTheme() ?: 'shop' ) . '::base')

@section('content')
	// HTML code for the Laravel auth component
@endsection
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply