Hello,

In the admin content page, i want to add a button on each row for export node / row. I have created a nid field and rewrite the output of this field :

<a href="/node/[nid]/pdf" target="_blank">Export node</a>

In my Page PDF display, path is configured with : /node/%/pdf

If I use this button to export nodes, PDF is generated, but the content is the same.
I tried to use a contextual filter with content:nid. But I get a blank page.

How can I solve my problem?

Thank you for your reply.

Comments

kumkum29’s picture

Category: support » bug
kumkum29’s picture

Hello,

i have installed this patch: https://drupal.org/node/2032189. No success, i have a blank page when i want export a node to pdf.

I have enable the php module + permissions for all. But it changes nothing.

If i insert a fixed value in my contextual filter (content:nid), i have a blank page.

If i supress the contextual filter (content:nid) i have some datas in pdf. But datas aren't filter with the active row.

Infos :
Drupal 7.22
Views 3.7
Views pdf 7.x-1.x-dev
Views PDF - FPDI Present
Views PDF - FPDI Template File Present
Views PDF - TCPDF Present
PHP 5.4.4

Thanks for your help.

killua99’s picture

Component: Documentation » Code
Assigned: Unassigned » killua99
Priority: Normal » Major
Status: Active » Needs work

Ok kumkum29 I figureout a problem with the patch, right now I'm working on it. Please stay tuned.

I'll bring a fast solution patch, but I'm going to work patch by patch later (ASAP) to start commiting and solve this issues.

Thanks

killua99’s picture

Assigned: killua99 » Unassigned
Priority: Major » Normal
Status: Needs work » Postponed (maintainer needs more info)
Issue tags: +Needs steps to reproduce

Dear fellow Drupal enthusiasts,

I have set this issue to "Postponed (Maintainer needs more information)".

If not already done please add an issue summary and steps how to reproduce the problem.
And please read again, "Making an issue report".

Help about how to do this can be found on IRC and in the user groups.

After there is new information, please re-open the issue by changing the status to active.

--
This issue was edited with the help of Issue Helper

kumkum29’s picture

Hello,

in admin content page i use "admin views" to create the table of content.
I have recreate my view and the problem no longer exists.
I think I had a bug with the module "admin views" with clone of my view.

Now the pdf link it's ok. I see my pdf with all datas of each node.

Thanks.

candelas’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

since i am here, i close the issue :)