I am using tokens in content body that I inserted with token filter. When I view content as unformatted text; tokens show the original data. When I create a pdf of the same node with tokens; value is not shown. It shows as: [node:field-end-date:custom:d F Y]. Normally it should show 5 August 2013

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

killua99’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
Issue tags: +accepted feature request, +#views_pdf_7.x-2.x

Tokens it's not supported in the current version.

The next one will. Thanks for the issue.

tagging and etc etc to the queue of feature request for the next version.

killua99’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
killua99’s picture

NWOM’s picture

Version: 7.x-2.x-dev » 7.x-1.x-dev
Status: Active » Needs review
FileSize
1.77 KB

Here is a patch that implements this. Please review.

apaderno’s picture

Issue tags: -accepted feature request, -#views_pdf_7.x-2.x
killua99’s picture

Waiting for a RTBC

apaderno’s picture

Issue tags: +accepted feature request

(I apologize: I removed the wrong tag.)

killua99’s picture

@NWOM

    Notice: Undefined index: area in views_pdf_plugin_display->execute() (line 108 of /var/www/html/sites/all/modules/views_pdf/views_pdf_plugin_display.inc).
    Notice: Trying to get property 'options' of non-object in views_pdf_plugin_display->execute() (line 108 of /var/www/html/sites/all/modules/views_pdf/views_pdf_plugin_display.inc).
    Notice: Undefined index: area in views_pdf_plugin_display->execute() (line 109 of /var/www/html/sites/all/modules/views_pdf/views_pdf_plugin_display.inc).
    Notice: Trying to get property 'options' of non-object in views_pdf_plugin_display->execute() (line 109 of /var/www/html/sites/all/modules/views_pdf/views_pdf_plugin_display.inc).

I'm having this notices. Could you check the code and fix this patch?

killua99’s picture

Assigned: Unassigned » killua99
Status: Needs review » Needs work
NWOM’s picture

Status: Needs work » Closed (duplicate)
Issue tags: -
Related issues: +#2992130: Improve table, header, & footer formatting + new functionality