[solved] content area purely for image(s) - newbie

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
howey
Forum Members
Forum Members
Posts: 158
Joined: Fri Sep 14, 2007 1:05 pm

[solved] content area purely for image(s) - newbie

Post by howey »

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.
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

Post by cyberman »

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.
Maybe you know it - you can have more than one content area with {content block='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">
iinside your template.

Hope that helps.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: content area purely for image(s) - newbie

Post by calguy1000 »

You could do something like this in your template

Code: Select all

<img src="{content block='image_name' oneline='true'}"/>
and it would generate a one line field when editing a page where you could type in the relative path to the image.
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.
Pierre M.

Re: content area purely for image(s) - newbie

Post by Pierre M. »

Nice tip Calguy, thank you :-)
May be an example of Smarty's power for your Smarty thread for power users ?
Pierre M.
howey
Forum Members
Forum Members
Posts: 158
Joined: Fri Sep 14, 2007 1:05 pm

Re: [solved] content area purely for image(s) - newbie

Post by howey »

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

Return to “CMSMS Core”