-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 484 - Combine Connectors and Contexts into a single column #537
Closed
Closed
Changes from 23 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
c3ad7bc
Rename some variables
2b89941
Explicitly link contexts to connectors
528c0ac
Add parent / child option support, and add connectors as parents to t…
20e0279
Remove sorting, we can do sort later
c6bbc92
Remove empty connectors from the context menu
e4fe942
Choose connectors or contexts from the contexts menu
cf78ce8
Convert if logic to switch statement
f62ab59
Fixed a couple of small bugs
bedfa00
Better optgroups.
0634271
Change switch statement to if else
fdf9ffa
Merge branch 'develop' into issue-484
9699974
Merge branch 'develop' into issue-484
35d29de
Remove stream_context table
1110f99
More major context table changes, including an update script
0f2d0f7
Fix errors
9ef5b84
Revert to 9699974
e2c8958
List table changes to group connectors with contexts
f8e6d0a
Better args for filter_select
3d528c1
Remove js relating to optgroups
ff54cdb
Remove more js relating to optgroups
7b57177
Remove sites from connectors if not in network admin
54d4c84
Space police
5e9b200
Merge branch 'develop' into issue-484-select-ui-only
frankiejarrett 18b1dd4
Maintain separate query args for connector and context in list table
frankiejarrett 07abd2f
Modify query based on nested level of context selection
frankiejarrett f8ffb67
Code formatting
frankiejarrett 851d5ff
More JS code formatting for Travis
frankiejarrett f902e63
Try defining vars one line at a time
frankiejarrett 4ecb17d
Use singlequotes in strings
frankiejarrett 2461cf4
Add missing semicolon
frankiejarrett 1e56427
Fix selection bug when connector and context name match
frankiejarrett 539d24f
Don't automagically hide the Connector in the context column
frankiejarrett 6555b6a
Fix context query when js is disabled
9d1c548
Fix other filters inheriting context, make filter_select context unaware
cb5466f
small fix for error in last commit
14efe8b
Javascript formatting
dc80669
Better context dropdown results with javascript disabled
a82feb8
JS formatting
1fe78a8
Some minor code formatting
a2d6a28
Merge branch 'develop' into issue-484-select-ui-only
frankiejarrett 9138e19
Prefixed jquery extension
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lukecarbis This logic seems to fail when you have a context that is multiple words, such as Main Menu or Primary Sidebar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From memory I thought this would work because these are always underscored, not dashed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, the context for Main Menu shows up as
context=menus-main-menu
.Which executes a query for
$args['connector'] = 'menus'
and$args['context'] = 'main'
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lukecarbis My thought is the cleanest way to implement this would be to use JS to draw a distinction between top-level items and sub-level items in the Context input and use the proper query string based on that.
e.g.
?connector=menus&context=main-menu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1