Yii Framework Forum: MTreeView - Yii Framework Forum

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

MTreeView CTreeView++ Rate Topic: -----

#21 User is offline   zavulon 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 11-May 12

Posted 02 July 2012 - 07:57 PM

I delete it after day of trying to customizing for my needs. Unfortunately code is not so good.
0

#22 User is offline   mjkulet 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 82
  • Joined: 03-November 10

Posted 18 August 2012 - 10:38 PM

You could have asked a support from the forum instead of saying "code is not so good".
0

#23 User is offline   4841601 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 26-May 12

Posted 10 March 2013 - 06:18 AM

Could anyone of this discussion figure out how to use Ajax Links and (!) Ajax Tree combined?

I am having no luck so far.
0

#24 User is offline   Gerhard Liebenberg 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 338
  • Joined: 07-January 12
  • Location:Stillbay - Western Cape - South Africa

Posted 12 June 2013 - 10:51 AM

Depending on my users' permissions, they cannot view ALL the records in a table.

So I cannot simply do 'table'=>'menu_adjacency', because that could give access to all records in the table.

Can MTreeView do something like this:

'data'=>menu_adjacency::model()->getTreeItems(), which will allow me to filter the records?

Regards
0

#25 User is offline   Alex D. 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 33
  • Joined: 15-October 11
  • Location:Ukraine

Posted 14 September 2013 - 04:35 AM

At first - tis is GREAT extension - light and clean - just what I need! So thank You!

But I have one question: how can I pass usual GET parameters to controllers in 'url'?
I used to use

array('admin/category/targetparentid&into_model=News',array('id'=>'id'));

and then parsed it in controller to render necessary view (i.e. of "News" model)
I did it because this code didn't work:
array('admin/category/targetparentid',array('id'=>'id','into_model'=>'News'));

- MTreeView tries to attach "News" filed in select statement (which doesn't exist) so I have Exception.

My first workaround worked fine until I turned on Urls PATH format :))))
So I had to create 3 almost identical controllers to workaround it, like:

array('admin/category/targetparentid_news',array('id'=>'id'));

etc.

What's the right way to pass one more GET parametr in 'url' of MTreeView?
Thanx in advance!
0

#26 User is offline   sleepy 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 01-July 12

Posted 25 September 2013 - 01:34 AM

To whom it may concern...

There is a problem in this code:

I have a table organized in a 'Nested Sets Model' context.

In order to turn this linear table into a multidimensional array, this extension creates a SQL-statment which uses the 'COUNT' and 'GROUP BY' directives and the 'text' field to get the 'depth' value of every node.

There is no problem and works very well as long as every node has a different 'text' field (-> unique).
If two nodes share the same 'text', the resulting multidimensional array gets messed up because 'depth' is calculated wrong.

The solution for me was to replace the 'text' field in 'COUNT' and 'GROUP BY' directives with the 'id' field (which is the primary key) and now everything works fine.

CU
0

#27 User is offline   Legion Commander 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 08-April 14

Posted 30 April 2014 - 06:13 AM

Wow, what a great guy and great extension. Is it possible that you will include support for closure tables in the future? Case: nestedSet, adjacency, closure, and maybe pathEnumeration? Only the query building will be different for all of them i think :). That would make it quite complete extension for any data hierarchy management. Thanks again you rock.
0

Share this topic:


  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users