New hook request

litzinger's Avatar

litzinger

06 Oct, 2016 03:30 PM

The Structure_nav_parser does a query to the channel_titles table, which doesn't work with Publisher. Would it be possible to add the following hook?

// -------------------------------------------
            // 'structure_get_custom_variables' hook.
            //
            if (ee()->extensions->active_hook('structure_get_custom_variables') === TRUE)  {
                $query = ee()->extensions->call('structure_get_custom_variables', $this->entry_ids);
            //
            // -------------------------------------------
            } else {
                $query = ee()->db->select('channel_titles.*')
                    ->select('channel_data.*')
                    ->select('channels.field_group')
                    ->select('channels.channel_title AS channel')
                    ->select('channels.channel_name AS channel_short_name')
                    ->where_in('channel_titles.entry_id', $this->entry_ids)
                    ->join('channel_data', 'channel_data.entry_id = channel_titles.entry_id')
                    ->join('channels', 'channels.channel_id = channel_titles.channel_id')
                    ->get('channel_titles');
            }
  1. 1 Posted by litzinger on 07 Dec, 2016 05:19 PM

    litzinger's Avatar

    Any chance this will be added?

  2. Support Staff 2 Posted by Support on 04 Jan, 2017 06:36 PM

    Support's Avatar

    yeah, we can get this added. We're planning to take Structure out of Beta soon ish. We'll look to include it with that release!

  3. Support closed this discussion on 04 Jan, 2017 06:36 PM.

  4. litzinger re-opened this discussion on 26 Feb, 2017 08:32 PM

  5. 3 Posted by litzinger on 26 Feb, 2017 08:32 PM

    litzinger's Avatar

    Looks like this has not been added. Just had a customer report a bug. https://boldminded.com/support/ticket/1406

  6. Support Staff 4 Posted by Support on 27 Feb, 2017 01:03 PM

    Support's Avatar

    Sorry about that! This hook has now been added to the core and will go out in the next version!

  7. Support closed this discussion on 27 Feb, 2017 01:03 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac