I have just installed CMSMS and started to look at creating/modifying some templates. I would like to separate the content areas of text from the content areas for images, rather than inserting an image within the text.
Is there a separate way of doing this other than specifying a content area on the page and then using the WYSIWYG editor to add an image. I am just thinking from the "editors" point of view to help distinguish between text that they can edit and pictures that they can change.
[solved] content area purely for image(s) - newbie
[solved] content area purely for image(s) - newbie
Last edited by howey on Sat Sep 15, 2007 2:07 pm, edited 1 time in total.
-
cyberman
Re: content area purely for image(s) - newbie
Maybe you know it - you can have more than one content area with {content block='image'}.howey wrote: Is there a separate way of doing this other than specifying a content area on the page and then using the WYSIWYG editor to add an image.
If I'm right a real image block type will come with V 2.
Another way could be to use name of page to show a file. Image must only have the same name like the page. You have only to add something like
Code: Select all
<img src="{$page}.jpg">Hope that helps.
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: content area purely for image(s) - newbie
You could do something like this in your template
and it would generate a one line field when editing a page where you could type in the relative path to the image.
Code: Select all
<img src="{content block='image_name' oneline='true'}"/>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.
-
Pierre M.
Re: content area purely for image(s) - newbie
Nice tip Calguy, thank you 
May be an example of Smarty's power for your Smarty thread for power users ?
Pierre M.
May be an example of Smarty's power for your Smarty thread for power users ?
Pierre M.
Re: [solved] content area purely for image(s) - newbie
Thanks for the tips – I shall probably stick to the secondary content block as it will be easier to browse for the image.
Many thanks
Many thanks

