Help - Search - Members - Calendar
Full Version: An Image Before Entry Title
Movable Type Community Forum > Additional Resources > Tips and Tricks
sintax
Ok, to make this as short and sweet as possible. As my journal is set up right now, I have an image being called before the Entry Title. An example:

CODE
<img src="/images/clean.gif" border="0"> Just A Quick Update


That produces a look like so: http://www.nasser.net/

You can see that in my 'Recent Entries' table that it also shows the called image (on the left side of that page). This is cool and exactly what I want.

The downside is when I send email notices of new entries and when popup windows are called where the title is displayed in the top window bar, instead of the image you get the HTML code.

Is there a trick to get around this? Maybe make the images MT Modules or something? I obviously don't know or have a clue, that is why I am asking for help.

Hope someone will! biggrin.gif

JUST ADDED:
Another example: When I use the "Email This Entry" plugin that I found on these boards it sends this:

CODE
John Doe has sent you a link!


Title: <img src="http://www.nasser.net/images/clean.gif" border="0"> A Quick Note From Justin

Link:  http://www.nasser.net/archives/000009.shtml


I guess this is due to the fact that the email that the cgi script puts out isn't sending it in HTML format? Can you change this?
crys
For places on your page you don't want the html to show you can add the remove_html="1" to the tag. I think for now you'd have to edit the code producing the email, for that part though.
gramcracker
You couldn't just insert the image in the template, as opposed to in the actual title entry?
sintax
Sweet! Do you know what the full

CODE
remove_html="1"


tag is? I have never heard of this before! Where am I adding this?

Thanks man!
sintax
well the image is a "clean" / "explicit" image to give a language rating to my entries. I like the way it looks in both the recent entries and archive pages when it is in the title...
kadyellebee
remove_html="1" is a global tag attribute,so you can put it in any tag like this:
CODE
<$MTEntryTitle remove_html="1"$>

And would it be an option for you to use another field (Entry Keywords maybe?) to set the clean or explicit flag? Then you could code the info into your template rather than in the title. It might be easier in the long run smile.gif

Kristine
sintax
Is there any way that I can use MT tags to do something like:

CODE
<MTClean>


CODE
<MTExplicit>


And when MT saw those tags in my title it would import the correct .gif file?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.