As a follow up to the wonders of Devel, I've identified a function called:
theme_text_formatter_plain()
Which devel could not tell me where it was located... :(
After some hunting on google, I found that it was in:
/cck/modules/text/text.module
Is it also possible to override the PHP code in a module? When I try and do so by using:
mythemename_text_formatter_plain() in the mythemename/template.php file, nothing happens... [ie it still runs the text.module code's version of the function]
taking a step back, what I am trying to do should be very simple... I have a cck/text field, i have fckeditor installed. I want the webadmin to be able to insert HTML like content into it, and have it displayed as HTML.
Unfortunately the text field's properties [under content-type, edit, display fields, manage] do not offer HTML output, I only see:
* Plain text * Filtered text
If I select Filtered text, I get an error on the content-creation page for the content type in question.
If I select plain text, it converts all of the html to its HTML-safe escape characters...
If I click 'display fields' sub tab in the content-type's sub edit pages, I see in the drop down: 'default', 'plain text' and 'hidden'. default and plain result in no chance of the output.
How can I stop the text field from converting the input into 'plain' or 'safe'?
Thanks again,
Sebastian.
sebastian wrote:
Wow, the Devel module is excellent! Thanks!!! Phew, finally feeling like I am able to make progress now! Not solved but now I am finally able to move forward again. :D
I am heeding your advice on making a node-product_module.tpl.php file, and this is now going in the right direction [now that I finally could see where the node.tpl.php file that was being used was!!]
Thank you!!
Sebastian.
Justin Gruenberg wrote:
On Thu, Apr 9, 2009 at 11:32 PM, sebastian inforazor@gmail.com wrote:
If I were to go down the Views' path, how would I do this? If a user clicks the title, they get sent to the Node, not to a View; how can I make it so that the user sees the View, with the correct NID, instead of the Node's default [non-Views] page? Am I forced to hand-code the title/image links to something other than the default [links to Node NID]? If so, how would I do that?
I'd like to figure that out even if I do end up theming the node tpl instead,
If you were to use views to do this you'd need to set up an entirely new view. You would need to use arguments from the URL to specify what node you want to display (probably the node id). You would have to build a link to this view in your taxonomy view. You would then be able to theme your new view . . . and you'd be exactly where you're at right now if you just theme the node page.
Unless I'm misunderstanding your question, doing this in views would just reimplement what drupal already does.
Your best bet is to make a node template. You can use the existing node.tpl.php as an example. Also, if you look at the api docs ( http://api.drupal.org/api/file/modules/node/node.tpl.php/6 ) you can see all the variables that will be in scope. I'd also suggest using the Devel module ( http://drupal.org/project/devel ) which is like FireBug for drupal and it'll show you what files to create/modify to theme just about anything in drupal. _______________________________________________ themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes