how does the image field work to echo thumbnail

More
12 years 10 months ago #16697 by bobthebob01
Hi,

I have an image field and it's working great. Excepted that it always output the medium thumbnail size when i use:
Code:
<?php foreach ($this->item->positions['ProfilePicture'] as $field) : ?> <?php echo $field->display; ?> <?php endforeach; ?>

How can echo the large thumbnail size image. I know i could bypass it by using the same width and height for the large and medium thumbnail.
But it would defy the purpose to have such choice/option.
And there might be times where having 2 or 3 different size of the same image can be useful depending on page view.

thanks

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago - 12 years 10 months ago #16703 by ggppdk
The small thumbnail is used in category view,
the medium thumbnail is used in the item view and
the large thumbnail is displayed in the pop-up.

The attached file will make 2 options appear in the properties of the image field, to select the size {small,medium,big} of thumbnails displayed
1. in item view,
2. in category view and

If you choose big no popup will be added.

But you cannot (with this modification) select which thumbnail size to output at the template.
But in general you can do it by adding extra display variable to the field.

extract zip in plugins/flexicontent_fields


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Attachments:
Last edit: 12 years 10 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #16707 by micker
.... you never stop !
;)

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #16727 by bobthebob01
thanks a lot for the explanation and the little hack.

I'll try it out.

Cheers

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #16733 by micker
ggppdk
can you post this on bug tracker for next version ?
regards

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #16735 by ggppdk
I was thinking this would be a nice enhancement for next version, i will.


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.286 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline