Hi, is it possible to use the modalframe-page.tpl.php for a special content type?
I tried this:
modalframe-page-blog.tpl.php

But it seems that this doesn't work...

CommentFileSizeAuthor
#2 935734-modalframe-page-alternatives.patch808 byteshanoii

Comments

markus_petrux’s picture

Category: task » feature
Status: Active » Needs work

Nope. This tpl does not provide the same variants as page.tpl.php. We need a patch here.

hanoii’s picture

Title: modalframe-page.tpl.php - for content type » modalframe-page-*.tpl.php alternatives like page-*.tpl.php
Component: Documentation » Code
Status: Needs work » Needs review
StatusFileSize
new808 bytes

patch coming in, this should do it, haven't tried it on a content-type, but this should give all variants.

dsnopek’s picture

Version: 6.x-1.7 » 7.x-1.x-dev
Issue summary: View changes
Status: Needs review » Needs work

Great idea!

I tested this patch and it does in fact work beautifully for all the page-*.tpl.php alternatives. It won't help the original poster, because actually Drupal 6 doesn't actually provide template suggestions for node type on 'page' - only on 'node'. Although, some themes might support that and I'm not sure if this patch will work with them.

I would have committed this except that the Drupal 7 implementation will have to look totally different. Let's get a D7 version working first!