Closed (fixed)
Project:
String Overrides
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 May 2008 at 19:36 UTC
Updated:
8 May 2017 at 18:52 UTC
Jump to comment: Most recent
Comments
Comment #1
jkestler commentedoops. forgot code tags above.
For example: I'd like to find all instances of this HTML code
<td><p class="bodytext">and change it to this:
<td class="name-info"><p class="bodytext">Comment #2
btopro commentedI wrote a module to do a true search and replace of node content based on type if that's what you're looking for. http://drupal.org/project/search_and_replace
I think this module's more for altering dynamically produced text/strings.
Comment #3
robloachIt sounds like you're looking for something in the themeing layer. One thing you could do is play with Drupal 6's Devel Theme module and see what functions you could use to override the theme output for that table.
Comment #4
zilla commented...but could string overrides put html into a string replacement? example: i'm using content profile module, it adds a small bit of dynamic text to user profile that says "create a (whatever admin calls the content profile node" - i'd like to insert a small image in front of that, an icon, so it's like:
img src=image.png ...followed by text "create a ..."
Comment #5
robloachYup! Since the translation is just placed directly onto the page, you can place in as much HTML as you want. I've replaced a single thank you note on site with a full HTML thank you page with graphics before....
Comment #6
zilla commented@rob loach - this is the most brilliant module ever, the fact that it does HTML is stellar - gonna go and try this now!!
Comment #7
geodaniel commentedClosing this out as it seems to be working and the ticket hasn't had any activity in a while.
Comment #9
yoeld commentedCan you explain how you added HTML tags? I get only text overriden.
Comment #10
liquidcms commentedat least in D7, replacement text cannot be HTML