I can switch the visibility for certain user roles, but what is the php code to show the block only for a specific nodetype?
Thank you for help!
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | authorcontact.module.txt | 6.35 KB | elarifr |
I can switch the visibility for certain user roles, but what is the php code to show the block only for a specific nodetype?
Thank you for help!
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | authorcontact.module.txt | 6.35 KB | elarifr |
Comments
Comment #1
xqbzzr commentedFound it on some other issue:
Just replace "story" and "page" with your nodetypes.
Comment #3
elarifr commentedHello
Instead of adding some code, should it be a feature added like in the author_pane block to display a check list of allowed content type to display the form ?
thanks
Comment #4
elarifr commentedfinally i just made it :)
thanks to michelle works in author_pane
i've also added to select in the block the width form name/email and the height for the message
could see result here http://immo-g-meyer.fr and look at an house to have the form displayed
here's the code i change in authorcontact.module
Comment #5
JmsCrk commentedThanks for the code elarifr, I'll review this and add it into the dev of the module.
Comment #6
El Bandito commented+1 for this in DEV.
Thanks.
Dave
Comment #7
JmsCrk commentedNow committed to 6.x dev version - thanks for the code Elari