Image field

More
11 years 10 months ago #38597 by brandonking
Image field was created by brandonking
Hello,

I guess I found a bug.
in image.xml
Code:
<field name="w_l" type="text" default="800" size="4" label="FLEXI_FIELD_IMAGE_WIDTH" description="FLEXI_FIELD_IMAGE_WIDTH_DESC" /> <field name="h_l" type="text" default="600" size="4" label="FLEXI_FIELD_IMAGE_HEIGHT" description="FLEXI_FIELD_IMAGE_HEIGHT_DESC" />

but in image.php
Code:
$hl = $field->parameters->get( 'h_l', 800 ); $wl = $field->parameters->get( 'w_l', 600 );

I guess this won't cause any problem but should be
Code:
$wl = $field->parameters->get( 'w_l', 800 ); $hl = $field->parameters->get( 'h_l', 600 );

and one more thing is that I can not find w_m and h_m
in image.php

In xml file, these medium size has been declared.
Code:
<field name="w_m" type="text" default="400" size="4" label="FLEXI_FIELD_IMAGE_WIDTH" description="FLEXI_FIELD_IMAGE_WIDTH_DESC" /> <field name="h_m" type="text" default="300" size="4" label="FLEXI_FIELD_IMAGE_HEIGHT" description="FLEXI_FIELD_IMAGE_HEIGHT_DESC" />
are these variables not used in image.php?

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

More
11 years 10 months ago #38598 by ggppdk
Replied by ggppdk on topic Image field
Yes, default values should match XML

about medium sizes they are a couple of places (the names m_w m_h are constructed so you will not find these by searching for the name)

instead search for 'm'


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