Page 1 of 1

only image/picture with smarty?

Posted: Tue May 30, 2006 11:03 am
by mic
Hello
I'm new to cmsmadesimple and think it's a perfect product! Also looking forward to multilingual integration in 0.13...

Now my question (I never used smarty): is ist possible to only allow an image to be set (without the html-editor)? Something that looks like:

   
     
          {content block='block1'}
          {content image='image1'}
     
     

Thank you for any help!
Michael

Re: only image/picture with smarty?

Posted: Tue May 30, 2006 10:54 pm
by Dr.CSS
no don't think, so try a path...
something like..


name of file is whatever your is and size is whatever the size of the img. is

Re: only image/picture with smarty?

Posted: Wed May 31, 2006 12:15 am
by calguy1000
well, there is the image tag :)

Re: only image/picture with smarty?

Posted: Wed May 31, 2006 2:45 am
by Dr.CSS
well slap me silly... learn somptin new every day.....

Help for the image tag
What does this do?

Creates an image tag to an image stored within your images directory
How do I use it?

Just insert the tag into your template/page like: {image src="something.jpg"}
What parameters does it take?

    * (required) src - Image filename within your images directory.
    * (optional) width - Width of the image within the page
    * (optional) height - Height of the image within the page
    * (optional) alt - Alt text for the image -- needed for xhtml compliance
    * (optional) addtext - Additional text to put into the tag


never saw that... hmm better look a little closer...

Re: only image/picture with smarty?

Posted: Wed May 31, 2006 6:20 am
by mic
ok, thank you. so i will need a naming-convention if the user should be able to change the pictures. if i have a different picture on every page and the user should modify it, how would you do that? try to make a layout:

XXXX  ---------text------------
XpicX  ---------text------------
XXXX  ---------text------------
XXXX  ---------text------------
---------text---------------------

Is the only way to add the picture by the rich-text editor?

thank you and regards
mic