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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

frederickjh created an issue. See original summary.

frederickjh’s picture

Title: Include View Title configuration setting not working » "Include View Title" configuration setting not working
frederickjh’s picture

I 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.

aadil.addweb’s picture

When I tick "Include View Title" checkbox, it works fine at my side and I can see View Title. Can you please elaborate?

md2’s picture

I can confirm I get the issue when using the latest 8.x-1.x-dev, patch attached should fix.

~Mark

frederickjh’s picture

@binoli.addweb what version of viewsreference did you test with? I am having this issue with 8.x-1.x-dev.

frederickjh’s picture

@md2 I tested the patch in #5 on simplytest.me and it works. The titles show when the checkbox is ticked.

abu-zakham’s picture

Status: Active » Reviewed & tested by the community

I am facing the same issue with Paragraph, Thanks @md2 patch #5 works fine with me.

  • joekers committed ba7409f on 8.x-1.x authored by md2
    Issue #2869572 by md2: "Include View Title" configuration setting not...
joekers’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for reporting the issue and for providing a patch Mark - committed to dev.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

netsliver’s picture

Version: 8.x-1.x-dev » 8.x-2.x-dev
FileSize
770 bytes

Same problem with 8.x-2.x-dev

See attached patch

interdruper’s picture

After #5, view title is rendered always, even if 'Include View Title' tickbox is not selected. #12 fixes it.

TommyChris’s picture

FileSize
855 bytes

As #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).