only image/picture with smarty?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
mic
Forum Members
Forum Members
Posts: 22
Joined: Tue May 16, 2006 6:42 am

only image/picture with smarty?

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: only image/picture with smarty?

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: only image/picture with smarty?

Post by calguy1000 »

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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: only image/picture with smarty?

Post 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...
mic
Forum Members
Forum Members
Posts: 22
Joined: Tue May 16, 2006 6:42 am

Re: only image/picture with smarty?

Post 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
Post Reply

Return to “Layout and Design (CSS & HTML)”