Administration tasks

2007-06-29 Thread [EMAIL PROTECTED]
Hi, In the past I used to create separate admin section on the website to control the content (users, articles, images, etc.). And I was thinking it may be easier and BETTER to create additional links for admin tasks in the actual pages (front-end). Let's say if we have a page with article and

Re: Administration tasks

2007-06-29 Thread francky06l
check the CAKE_ADMIN parameters, and the 'admin' routing. I suppose it's exactly what you describe. On Jun 29, 5:19 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, In the past I used to create separate admin section on the website to control the content (users, articles, images, etc.).

Re: Administration tasks

2007-06-29 Thread [EMAIL PROTECTED]
I know about CAKE_ADMIN parameter but I don't think that's the best way to control the content. I have to create separate layout, separate listing with pagination, separate search facilities. Basically every task has to be done twice. I was hoping that someone may be able to point out a very big

Re: Administration tasks

2007-06-29 Thread Chris Hartjes
On 6/29/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I know it may differ from project to project but what if we would talk about standard website with categories+articles. Which approach do you prefer? I used to be in the create a separate admin section camp, but I believe it's better to

Re: Administration tasks

2007-06-29 Thread francky06l
Well if you know your user is admin, you know it into the views and controllers. Nothing stop you to work both case in the same views, as well in same controller method, using if On Jun 29, 5:35 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I know about CAKE_ADMIN parameter but I don't think

Re: Administration tasks

2007-06-29 Thread Sonic Baker
Just wondering how you would plan to control the visibility of the extra admin links? Keeping in mind that best practice is to minimise logic in the views, would you pass the links in through the controller, render a different menu element, or some other way? Cheers, Sonic

Re: Administration tasks

2007-06-29 Thread Sonic Baker
On 6/29/07, Chris Hartjes [EMAIL PROTECTED] wrote: On 6/29/07, Sonic Baker [EMAIL PROTECTED] wrote: Just wondering how you would plan to control the visibility of the extra admin links? Keeping in mind that best practice is to minimise logic in the views, would you pass the links in

Re: Administration tasks

2007-06-29 Thread Chris Hartjes
On 6/29/07, Sonic Baker [EMAIL PROTECTED] wrote: Just wondering how you would plan to control the visibility of the extra admin links? Keeping in mind that best practice is to minimise logic in the views, would you pass the links in through the controller, render a different menu element, or

Re: Administration tasks

2007-06-29 Thread [EMAIL PROTECTED]
You are right, I could use the same views and different layouts. But then I would still have to do all the permission check, etc. And usually the admin content listings and front-end listings look diferent. I.e. in the admin section articles listed in a table with edit delete links next to it.