[Solved]fields Image -Thumbnail in Edit Page

General project discussion. NOT for help questions.
Post Reply
jce76350
Beta Tester
Beta Tester
Posts: 2095
Joined: Mon May 29, 2006 1:20 pm

[Solved]fields Image -Thumbnail in Edit Page

Post by jce76350 »

Hi all,

Into Content / Pages / Edit Page:
I see two new fields "Image" and  "Thumbnail"
How can I use ?
Thanks
Last edited by jce76350 on Thu Dec 04, 2008 11:07 am, edited 1 time in total.
Jean-Claude Etiemble MyPageFr
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: fields Image -Thumbnail in Edit Pag

Post 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')}
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.
jce76350
Beta Tester
Beta Tester
Posts: 2095
Joined: Mon May 29, 2006 1:20 pm

Re: fields Image -Thumbnail in Edit Pag

Post by jce76350 »

hi,

Thanks
Jean-Claude Etiemble MyPageFr
eth8505
New Member
New Member
Posts: 5
Joined: Mon Jun 18, 2007 6:07 pm

Re: [Solved]fields Image -Thumbnail in Edit Page

Post 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.
User avatar
chuckienorton
Forum Members
Forum Members
Posts: 68
Joined: Wed Feb 14, 2007 6:58 pm

Re: [Solved]fields Image -Thumbnail in Edit Page

Post 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
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: [Solved]fields Image -Thumbnail in Edit Page

Post 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
User avatar
chuckienorton
Forum Members
Forum Members
Posts: 68
Joined: Wed Feb 14, 2007 6:58 pm

Re: [Solved]fields Image -Thumbnail in Edit Page

Post 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
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: [Solved]fields Image -Thumbnail in Edit Page

Post 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
eth8505
New Member
New Member
Posts: 5
Joined: Mon Jun 18, 2007 6:07 pm

Re: [Solved]fields Image -Thumbnail in Edit Page

Post by eth8505 »

@chuckienorton: Thanks, for some reason it didnt work for me before, I just c&p'd it again and now it works :)
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am

Re: fields Image -Thumbnail in Edit Pag

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

Return to “General Discussion”