RainLab.User + Tailor

I’m wondering if anyone has done or put me in the right direction of the following:

I want to build a community/listing website where businesses can register and add/update the information themselves on the website (front-end or via a dashboard ish). Visitors can view a business and see opening times, more information, gallery, location etc. And eventually more future ideas to fullfil the visitors needs.

I’ve been exploring with the User plugin. The registration as managing their details of the account (also secured with a logi) is great!

With the ease of Tailor to create fields and extend fields if needed. I would like to use Tailor to setup the business page fields. Where the User can login and fill in all the fields from their account. Like a portal or similar.

Cheers,
Kevin

Hey Kevin,

You can create a linkage to the User model via the recordfinder field type in Tailor and specifying the RainLab\User\Models\User model class.

Then you could populate the field with

$record->user = Auth::user();

Take a look at the following post for some guidance:

Hi Kevin,

Check out our website: Kapu pieminekļu izgatavošana un labiekārtošana
This is a company page with ability to edit data from frontend. It is plugin based solution we are developing for a while already. It has eCommerce in it also with frontend management with quite complicated structure for nested product creation: Kapu apmales — Sirds formā ar 15 krāsu granīta veidem

We are using plugin components for editing in frontend, it’s a mix of classic model approach and tailor of course. Both services and shop categories are multisite.

Best,
Max