Posted by R-H on July 25, 2009 at 7:49am
Jump to:
| Project: | Signwriter |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I really like this module, so thanks. I'm having a problem though.
I have been able to get it working with your supplied signwriter_preprocess hooks and with a few Input Filter Patterns that I defined in custom blocks. I cannot get it to render images for any of the predefined elements in my templates (navigation, post headers, etc.).
In the attached image you can see the issue.
- WORKING: The preprocess hook Block Title (e.g. "Signwriter Test")
- WORKING: My Input Filter Pattern for my custom block: "Test A Tag"
- This is the Input Filter Pattern I'm using: /<a\b[^>]*>.*?<\/a>/
- NOT WORKING: My Input Filter Pattern for the Navigation options (Admin, Contact, etc.).
Any thoughts?
| Attachment | Size |
|---|---|
| example.gif | 17.06 KB |
Comments
#1
I've thought about this a bit more and realize that my problem is that the Input Filter probably only works on non-theme regions in my template. Could you please confirm that?
If so, would you consider adding a few more Preprocess hooks into the tool?
Thank you kindly!
#2
The input filter patterns only run for content taht is run through your input filter, like on the node body where you can select your input filter type.
As far as menus are concerned 6.x-2.x-dev has great menu support. There will be an official release of that very soon after a couple more new features are added.
For using signwriter on other pages. You would do that within your theme.
Have a look at http://drupal.org/node/336075 for some code examples of using signwriter from within your theme's template files.
For example, you could put code in your comment.tpl.php file to make all your comment headings use signwriter text.
You could also use the page headers option that signwriter provides for page titles. You should be able to theme pretty much anything by using tpl.php template files in your theme.
There is a theming guide here - http://drupal.org/node/341628
More inbuilt template preprocessing can be done in signwriter but until that has been implemented you will have to theme it yourself.
I am changing this to a feature request for more preprocessing for the 6.x-2.x version.