Edit entry in Frontend / Editieren von Einträgen im FrontEnd

Phoca Guestbook - creating guestbooks in Joomla! CMS
Alhifi
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 13 Jan 2010, 14:37

Edit entry in Frontend / Editieren von Einträgen im FrontEnd

Post by Alhifi »

Hello,

this time i try to ask my question in english and german, the second is my preferred language ... :)

We have a division of work at my site, i'm the administrator and a woman is responsible for the main content of my site, so she has the status "Manager". With this status she is not able to manage the Phoca-Guestbook entrys in the backend. I did some little changes in the frontend of Phoca-Guestbook so she is able to publish and unpublish entrys in the frondend. Sometimes a user or a guest asked a question within a guestbook-entry. Before we use Phoca-Guestbook we had another guestbook-component (on Mambo 4.5.0-1.0.9 !) and i reprogrammed this component so that she was able to edit the guestbook-entry from the frondend to answer the question. As i wrote above we used a old component on a very very old Mambo-system. Now i want to do something like that with Phoca-Guestbook too, but the design of actual components for Joomla 1.5.x is for a PHP-beginner very comlicated, so i did not really have an idea where i have to search for the edit function to enable this however for the frontend. It must exist because an edit in the backend is possible.

Some suggestions?


So, nun das ganze nochmal auf Deutsch:
Auf meiner Homepage haben wir eine simple Arbeitsteilung, ich bin der Administrator und eine Frau kümmert sich hauptsächlich um die Inhalte der Seite, deshalb hab ich ihr den Status "Manager" verpasst. Mit diesem Status kann sie im Backend jedoch keine Phoca-Gästebucheinträge bearbeiten. Ich habe das Frontend ein wenig erweitert, so das sie Einträge im Frontend veröffentlichen wie auch sperren kann. Manchmal kommt es vor, das jemand im Gästebuch eine Frage stellt. Im vorherigen, uralten Mambosystem (4.5.0-1.0.9 !) hatten wir ebenfalls ein Gästebuch, welches ich dahingehend erweitert hatte, das sie auch im Frontend in der Lage war, einen solchen Eintrag zu editieren. So etwas möchte ich mit Phoca-Guestbook auch realisieren, nur leider ist der Aufbau aktueller Komponenten für Joomla für einen PHP-Anfänger wie mich ziemlich kompliziert. Ich denke schon, es das umsetzbar ist, denn eine Bearbeitungsfunktion existiert im Backend ja auch.

Hat vielleicht jemand eine Idee, wo man da suchen müsste?

Bye/Ciaoi
Alhifi
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48726
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Edit entry in Frontend / Editieren von Einträgen im FrontEnd

Post by Jan »

Hi, Phoca Guestbook is written in MVC - see information about MVC in Joomla! on some Joomla! site.

You need to create new view or a part of some standard view, where you will define link to editor to edit the posts. Then you need to define cotrollers for edit funtion (so the send post will be edited).

The view is here:
components/com_phocaguestbook/views/phocaguestbook/view.html.php (accessing the data)
components/com_phocaguestbook/views/phocaguestbook/tmpl/default.php (displaying the data)

Model here:
components/com_phocaguestbook/models/ - working with database

Controller here:
components/com_phocaguestbook/controllers/ - to work with sent data.

Jan
If you find Phoca extensions useful, please support the project
Alhifi
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 13 Jan 2010, 14:37

Re: Edit entry in Frontend / Editieren von Einträgen im FrontEnd

Post by Alhifi »

Hi Jan,

thank you for your fast answer. :twisted:

I tried a little bit to do that but that's a level to high for me. I've added an edit-button, i added the functions, also i have a form, but this is not filled with any values and so on ... i give up here! I think it's possible and i think also it's probably not so complicated for someone who knows the scripts, because similar functions exists in the administrator-section, so it must be a little bit like simply copy and paste from there ... :idea: ... but not for me ... :x ... so i think i must accept that i cannot do that.

Again thank you for fast your support, Phocaguestbook is otherwise a very, very good component for Joomla, the only thing i miss is the absence of more administrator-functions in the frontend!!

Bye
Alhifi
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48726
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Edit entry in Frontend / Editieren von Einträgen im FrontEnd

Post by Jan »

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