Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Create hierarchical url paths with Nested sets
  • Hi, I'm new to Fuel and also new to nested sets.

    I need generate menu with categories like this:
    - Main category 1
    --- Sub category 1
    --- Sub category 2
    --- --- Sub sub category 1
    - Main category 2

    and for all of these items I need their hierarchical url, such for "Sub sub category 1" it will be /Main category 1/Sub category 1/Sub sub category 1.
    I read that it is possible by  path() but I need get from database my url field instead of "title"

    Many thanks.
  • You can set the variable "title_field" in your tree configuration, to define which column is used to build the path.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion