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
only image/picture with smarty?
Re: only image/picture with smarty?
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
something like..
name of file is whatever your is and size is whatever the size of the img. is
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: only image/picture with smarty?
well, there is the image tag 

Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: only image/picture with smarty?
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...
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?
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
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