I use Organic Groups.
The node entity I want to print as PDF is associated with a group.
All OG tokens including [node:group:label] are listed in the REPLACEMENT PATTERNS at admin/config/user-interface/print/pdf

But unfortunately [node:group:label] - [node:title] is not processed correctly.

Say the node I want to print as PDF belongs to "Students" OG group, and titled as "Weekly Schedule", the filename becomes nodegrouplabel_-_weekly_schedule.pdf instead of students_-_weekly_schedule.pdf as expected.

Comments

jcnventura’s picture

Status: Active » Closed (duplicate)

I think there's two problems at play here.

1. One longstanding bug is that the printer-friendly versions are not members of the OG (#385994: Printer-friendly pages do not inherit group membership from original page).
2. The other is that the token is not removed when there's no replacement #1984106: Token not replaced when value is not available.

For now, avoid using OG-tokens, or as I'm not an OG user, contribute to fixing #1 above.

Closing as duplicate of the issues above.