-
Notifications
You must be signed in to change notification settings - Fork 40
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
Convert the taxonomy listing and feed at /taxonomy/term/%term to Views #145
Comments
Here's an initial PR that seems to work. Needs review though. |
This PR currently conflicts. If we can get it up and running again, now that we've branched bug fixes for 1.0.x, this can go into the |
Have updated the PR... Will wait to see test results before changing status. |
Awesome!! Yay this would be great to clean up the loose ends that are in the 1.0.x release. |
@quicksketch When replacing a hard-coded listing with a view, should the view output the same HTML as the hard-coded listing, or is it assumed that the markup will change? Case in point: Taxonomy test has: // Did this page request display a 'term-listing-heading'?
$this->assertPattern('|class="taxonomy-term-description"|', 'Term page displayed the term description element.'); The markup that Drupal provides, which the Taxonomy test looks for, is: <div class="term-listing-heading"><div class="taxonomy-term vocabulary-tags" id="taxonomy-term-1">
<div class="content">
<div class="taxonomy-term-description"><p>Testing 123</p></div>
</div>
</div></div> Should I be trying to replicate those same classes/IDs in the Views output, or should I change the test to look for the new Views markup? |
I think it's a good idea to provide row-specific classes and specify classes that matched the previous ones as much as possible, but don't so far as to override a template or use a custom HTML field in Views to replicate it. In our Node and User admin replacements, we specifically unchecked the "Provide views default classes" option as well, as there is a small performance cost in assembling all those classes. |
I closed the existing PR at backdrop/backdrop#649, as it hasn't been updated in a long time and still isn't passing tests. Looks like this is going to be bumped again to 1.3.0. |
Looks like this might slip again. |
Related #1042 |
Also, I'm thinking we should put in a taxonomy/term layout with a block display view, not equivilent to the default views that were in Drupal 7. Leaving this thought here to revisit later... |
After working on #2629, I've had a lot of thoughts about how to do this. Here's where I've landed, let's see what everyone thinks :)
Then we could also:
I'm not sure how I feel about shipping core with a disabled layout (?) but if we go with the approach outlined above that last part becomes optional. |
I'm not getting the "why" of this proposal @jenlampton. If we converted |
So we can use layouts.
- -
Please excuse brevity and typos. Message typed with my thumbs from an Open
Source OS.
…On Apr 13, 2017 11:56 AM, "docwilmot" ***@***.***> wrote:
I'm not getting the "why" of this proposal @jenlampton
<https://github.com/jenlampton>. If we converted taxonomy/term/% to a
view, then the main content block on that page becomes that view, no? So
why do all the rest?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#145 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAYSRwBqAON9xKQuj4tYbZEJfvJZVzHdks5rvm_VgaJpZM4BXdEA>
.
|
This issue really speaks to the troubles I was having when I opened #6336 and #6335! The approach that @jenlampton describes on Apr 13, 2017 addresses the heart of this issue. I'm happy to close both of those tickets in place of this issue. |
Sub-issue of #151
Relevant drupal.org issue: https://drupal.org/node/1857256
The text was updated successfully, but these errors were encountered: