[solved]Front end editor

Phoca Download - download manager
roberto.c87
Phoca Member
Phoca Member
Posts: 10
Joined: 31 May 2017, 13:58

Re: Front end editor

Post by roberto.c87 »

hello and thank you for the help you give us. The problem I'm trying to solve is probably beyond my current knowledge, but for business reasons I need to solve it. I've studied the files you've shown me and somehow managed to show the editor. But I can not link the content that the user writes in the editor with the database field that saves the description. I've probably seen that this operation is done by invoking javascripts in which (in php) rescue is done, but I can not connect all these pieces to make it all fun .... can you help me? Thank you
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48550
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Front end editor

Post by Jan »

Hi, what do you exactly mean with: "But I can not link the content that the user writes in the editor with the database field that saves the description"

First you need to be sure, that the form is sent, in controller, you should check if the data from editor was sent Ok, then you should get info about the name of the field which stores the description - then you should send this to model where it will be stored in database. So you need to go step by step and check if the data was sent by the form :idea:

Jan
If you find Phoca extensions useful, please support the project
roberto.c87
Phoca Member
Phoca Member
Posts: 10
Joined: 31 May 2017, 13:58

Re: Front end editor

Post by roberto.c87 »

Thanks to the help, the problem was the parameter that passed to the display function I passed the "id" but the correct parameter is the "name" of the textarea.
thank you so much
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48550
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [solved]Front end editor

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply