More on easy weblog titles and a bit about images in EE
Today, I stumbled upon a super-simple, easy, short way to get the title of a weblog:
{exp:weblog:weblog_name}
does the trick, as opposed to the long and ugly:
{exp:weblog:info weblog="{master_weblog_name}"}
{blog_title}
{/exp:/weblog:info}
Another small nicety: if you upload an image to your site in the following format:
name-of-the-picture300x200.png
The resulting img tag comes with the width and the height filled in:
<img
src="{filedir_1}name-of-the-picture300x200.png"
width="300" height="200" />
The width and the height are filled in regardless of the filename format.
1.
Sue Crocker on February 01, 2007 at 10:45 am
There is nothing special about the name of the image in EE. If you use EE's file upload, the resulting html code has the height and width in it. But that's because of the code behind it. If I name the image something622x134.jpg and the image size is 200x400, the width and width will be 200 and 400.
There is also the file manager module which will create the right code for you.