Wednesday, August 28, 2013

Re: User Defined Dashboard?

Your question is a bit vague. By "items" do you mean the output from several models? For example, I can imagine a page which listed a selection of films, books, and ... well, some other things. We could have a view template which checked to see which of those were included in the data and output accordingly:

if (isset($data['Film'])) {
  echo $this->element('Films/list');
}
if (isset($data['Book'])) {
// etc.

Presumably, the controller would fetch things depending on a Group profile of some sort. You could do that with a table which had a 'models' field, for example. If the controller used all of the available models, you could fetch the profile, then loop through the ProfileModel (or whatever) array.



On Wed, Aug 28, 2013 at 6:44 PM, April DeRossett <april.derossett@gmail.com> wrote:
AHOY!

In a current project I have a "dashboard" component for users to access information that is, currently, driven by their group.  However, I would love the users to have the ability to define what items appear on their dashboard...but, I just can't seem to wrap my head around how to make this happen in Cake.  Has anyone done this?  And can you give me a 'feel" for how to approach it?  I am using the 960 grid system...Thanks in advance for any advice!  April


--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: