Page 1 of 1
[Solved]fields Image -Thumbnail in Edit Page
Posted: Wed Dec 03, 2008 4:06 pm
by jce76350
Hi all,
Into Content / Pages / Edit Page:
I see two new fields "Image" and "Thumbnail"
How can I use ?
Thanks
Re: fields Image -Thumbnail in Edit Pag
Posted: Wed Dec 03, 2008 4:13 pm
by calguy1000
MenuManager can use them directly as $node->image and $node->thumbnail (you'll have to prepend the path to that)
i.e: config['image_uploads_path']}{$node->thumbnail}"/>
In your page content try: {$content_obj->GetPropertyValue('image')} or {$content_obj->GetPropertyValue('thumbnail')}
Re: fields Image -Thumbnail in Edit Pag
Posted: Thu Dec 04, 2008 11:05 am
by jce76350
hi,
Thanks
Re: [Solved]fields Image -Thumbnail in Edit Page
Posted: Wed Mar 04, 2009 6:48 pm
by eth8505
Hi there,
can I somehow use that in the template itself? I would like to design a template for which you can select an image in the page editor and the template sticks it in the proper position.
Re: [Solved]fields Image -Thumbnail in Edit Page
Posted: Fri Mar 06, 2009 6:24 pm
by chuckienorton
eth8505 wrote:
can I somehow use that in the template itself?
@ Eth8505 - it already works in the templates. Once you choose the image in the page manager, simply add something like this to the template where you want it to go: GetPropertyValue('image')}"/>.
@ calguy1000 - 2 questions:
How can I change the folder for the images... so that it can read from a sub folder (images/interiors-images/)?
Can I add more of these for each page? Or additional fields besides image? (like another html content box w/in options tab) This is one of the best features I've seen in any CMS and it could make CMSMS the best package ever.
Thanks in advance!
Chuck
Re: [Solved]fields Image -Thumbnail in Edit Page
Posted: Fri Mar 06, 2009 6:46 pm
by RonnyK
There is the tag {content_image} which you can call in the template, as often as you want.
The image and thumbnail, are in there once, and have the possibilty to be called from MenuManager, making it possible to create an imagemenu.
To get the name of the property, you can use {page_image} or {page_attr}.
So for multiple pictures in the page, you can use {content_image}.
Ronny
Re: [Solved]fields Image -Thumbnail in Edit Page
Posted: Fri Mar 06, 2009 8:06 pm
by chuckienorton
RonnyK wrote:
So for multiple pictures in the page, you can use {content_image}.
@Ronny - thanks for quick response. Hmm... I guess what I mean is to see multiple DROP downs from the admin content/pages menu so that there can be "header-image:" and then "left-side-image" and then (the best feature would be) "flash-header-script:" (so that text can be added in admin page).
Does that make sense? Maybe that's what you mean - not sure?
Thanks!
C
Re: [Solved]fields Image -Thumbnail in Edit Page
Posted: Fri Mar 06, 2009 8:13 pm
by RonnyK
I meant that like multiple content-blocks, you can call
{content_image block='image1' dir='images'}
multiple times in the template. When you create/edit a page that is attached to that template, you see that many different image-selections. As you can put every call in a div/class, you can style it whatever/wherever you want.
This is a default tag, you can check its help under Extensions -> content_image -> help
ROnny
Re: [Solved]fields Image -Thumbnail in Edit Page
Posted: Fri Mar 06, 2009 10:43 pm
by eth8505
@chuckienorton: Thanks, for some reason it didnt work for me before, I just c&p'd it again and now it works

Re: fields Image -Thumbnail in Edit Pag
Posted: Fri Apr 09, 2010 12:41 pm
by nicmare
calguy1000 wrote:
MenuManager can use them directly as $node->image and $node->thumbnail (you'll have to prepend the path to that)
i.e: config['image_uploads_path']}{$node->thumbnail}"/>
In your page content try: {$content_obj->GetPropertyValue('image')} or {$content_obj->GetPropertyValue('thumbnail')}
this does not work anymore in cmsms1.7

how to access thumbnail of a node in menumanager or even better: every content_obj?