Jump to content


[updated 14.11.2012] Grid view with dropdown list of categories in header (library)

categories dropdown adjacency list

  • Please log in to reply
26 replies to this topic

#21 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

Posted 24 December 2012 - 01:12 PM

Do use the adjacency list? and your main categories have parent_id = 1?

#22 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

Posted 24 December 2012 - 01:44 PM

function get_tree()
{
if (isset($this->parent_field))
return $this->adjacency_list_r(1, 0);
else
return $this->get_categories();
}

#23 tlc033

tlc033

    Advanced Member

  • Members
  • PipPipPip
  • 59 posts
  • LocationChisinau

Posted 24 December 2012 - 02:16 PM

Спосибаааааааааааааааа Victor.

We are a web company from Republic of Moldova and offers services as, web design, web development, eCommerce, online marketing and advertising, consulting and web optimization, search engine optimization (SEO) and social media optimization (SMO), branding and rebranding.

 

          logo_small.png  

                         elitiv.com  

                  

 

 


#24 zrmba

zrmba

    Member

  • Members
  • PipPip
  • 16 posts

Posted 26 February 2015 - 01:28 PM

Hi all,

would like if there is any new version of this plugin. Quitely a good project but why did you abandon it? Especially Victor. Hope to hear more about you. Why don't you  buildus a new version easier to integrate without changes to the core way of coding?

 

BR



#25 heri09

heri09

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 01 May 2015 - 03:08 PM

Hi,

 

this code i not working on my project. categori not show in select dropdown



#26 JohnnyB

JohnnyB

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 04 March 2017 - 12:42 PM

Hi!

 

I am new at this.  Can anyone explain to me how to install this library please?  I am trying to achieve the same thing as it shown in the screenshot below. Trying to put 2 fields - one category field and one date field on top of the datatable then I would like to fill the table with the results based on selected category and date. Desperately need help. Thanks.

 

Hi. What about integration this function

$this->get_datetime_input($field_info,$value);
from libraries / grocery_crud.php / ...LINE about 2041 protected function get_datetime_input($field_info,$value) in grocery_crud_categories.php
To lock like this:
image.png

 



#27 jgalak1

jgalak1

    Member

  • Members
  • PipPip
  • 12 posts

Posted 02 July 2017 - 08:44 PM

Anyone know if this is working with the current version of GroceryCRUD? 







Also tagged with one or more of these keywords: categories, dropdown, adjacency list

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users