Hi,
First let me say that I love this component. I have one small request though. I've seen various posts here and there regarding the integration of the Privatemsg module with the Classified Ads module in Drupal, but none that solve the issue I'm having. I would like for a Privatemsg link (i.e. "Send Author a Message") to appear in each Classified Ads post on my website, so that the user doesn't have to go to the poster's profile in order to send them a private message. But when I go to configure Privatemsg to do this (i.e. when I go to Configuration>>Privatemsg>>Links and then specify that I want a Privatemsg link to appear on the content type "Classified Ads" (and on the teaser version as well)), no link shows up in the posts. I created a view for my Classified Ads, and, strangely enough, the "Send Author a Message" link appears on each post in Views, but, again, the link doesn't appear on the actual posts or teasers.
Can anyone please help me with this? Thank you in advance.
Comments
Comment #1
fgmThis is a builtin limitation of PrivateMsg. It will only display on nodes in "full" view mode and, if configured so, on nodes displayed using the "teaser" view mode. Look into function
function privatemsg_node_view($node, $view_mode)
inprivatemsg.module
for details.You can configure this on the privatmsg admin screen. Look into function
privatemsg_admin_settings()
inprivatemsg.admin.inc
.So until Privatemsg allows its users to choose it view modes freely, like a field instance (which it is not at this point and has to emulate), there is no good way to support this. The best solutions for you to use privatemsg in this version is to
1. disable the builtin Classified Ad pages,
2. configure Privatemsg to display on node teasers,
3. configure teaser mode on the Classified Ad node type to display whater fields you want
4. create a View showing the Classified Ad nodes in "teaser" mode
In the longer run, offer a patch to privatemsg to support any view mode. I think I saw a number of issues on Privatemsg already asking for this; so it should be welcome.
Comment #2
fgm