Hi!
Ticking the Include View Title tickbox when adding a viewsreference paragraph does not render the View Title. I have added a Header to my view to fix this for now.
From my composer.lock file:
"name": "drupal/viewsreference",
"version": "dev-1.x",
"source": {
"type": "git",
"url": "https://git.drupal.org/project/viewsreference",
"reference": "201a24c043815db45cb1a2378ff30dc94a45e5af"
},
"require": {
"drupal/core": "~8.0"
},
"conflict": {
"drupal/viewsreferennce": "*"
},
"type": "drupal-module",
"extra": {
"branch-alias": {
"dev-1.x": "1.x-dev"
},
"drupal": {
"version": "8.x-1.0-alpha8+14-dev",
"datestamp": "1489569184"
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0+"
],
"authors": [
{
"name": "New Zeal",
"homepage": "https://www.drupal.org/user/93571"
},
{
"name": "joekers",
"homepage": "https://www.drupal.org/user/2229066"
}
],
"description": "Views Reference",
"homepage": "http://drupal.org/project/viewsreference",
"keywords": [
"Drupal"
],
"support": {
"source": "http://cgit.drupalcode.org/viewsreference",
"issues": "http://drupal.org/project/issues/viewsreference"
},
"time": "2017-03-30 08:04:09"
},
Appears to be up to the latest commit.
I tried copying the paragraphs.html.twig to the machinename.html.twig for my paragraph type. I saw in the Twig debug that this template was being used but still the title was not rendered.
Thanks for your time and effort on this module!
Frederick
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | include-view-title-2869572-14.patch | 855 bytes | tommychris |
| #5 | include-view-title-2869572-5.patch | 584 bytes | md2 |
Comments
Comment #2
frederickjhComment #3
frederickjhI forgot to say that the paragraphs.html.twig I copied was from the Classy theme. I expected that it should output all content including the title.
Comment #4
aadil.addweb commentedWhen I tick "Include View Title" checkbox, it works fine at my side and I can see View Title. Can you please elaborate?
Comment #5
md2 commentedI can confirm I get the issue when using the latest 8.x-1.x-dev, patch attached should fix.
~Mark
Comment #6
frederickjh@binoli.addweb what version of viewsreference did you test with? I am having this issue with 8.x-1.x-dev.
Comment #7
frederickjh@md2 I tested the patch in #5 on simplytest.me and it works. The titles show when the checkbox is ticked.
Comment #8
abu-zakham commentedI am facing the same issue with Paragraph, Thanks @md2 patch #5 works fine with me.
Comment #10
joekersThanks for reporting the issue and for providing a patch Mark - committed to dev.
Comment #12
netsliverSame problem with 8.x-2.x-dev
See attached patch
Comment #13
interdruper commentedAfter #5, view title is rendered always, even if 'Include View Title' tickbox is not selected. #12 fixes it.
Comment #14
tommychrisAs #12 and #13 says, this issue already present in 2.x-dev. Please reopen the issue, and fix it with the attached patch (rerolled #12).