Re: flexicontent - field file window - SOLVED

More
13 years 4 months ago - 13 years 4 months ago #16645 by aloisio
I use joomla 1.5 with flexicontent 1.5.4
An administrator user has a form in the frontend to send files with field type "file". The window for selecting the file not fit on the screen.
I need to know how to reduce the size of this window.
Last edit: 13 years 4 months ago by aloisio.

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

More
13 years 4 months ago #16665 by ggppdk
You mean the popup modal window?
You can change the flexiContent "file" plugin that implements the 'file' field.

So change the line 164 of the file:
/plugins/flexicontent_fields/file.php

but as i can see it already automatically fits the popup window into your screen, maybe for some reason the size of the screen is not detected properly???

Anyway change this part of the line:
Code:
size: {x:window.getSize().scrollSize.x-100, y: window.getSize().size.y-100}
to:
Code:
size: {x: 800, y: 500}
or to:
Code:
size: {x:window.getSize().scrollSize.x-400, y: window.getSize().size.y-400}
Regards


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

More
13 years 4 months ago #16675 by micker
thanks !

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
13 years 4 months ago #16893 by aloisio
Perfect, thank you, very much.
It's a good question:
What can change the modal window size for the field "file" so that does not fit on the screen?

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

More
13 years 4 months ago #16935 by ggppdk
Hello,

For some reason, window.getSize().scrollSize.x and window.getSize().scrollSize.y is not working. Maybe some other js code is interfering or a browser plugin.

I thought of browser zoom but still this can cause problem only if you change window size after you open modal window.

If you know something more of this post feedback.

Regards


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

More
13 years 4 months ago #16940 by aloisio
Thanks for your quick response.
If I understand you, it's posible by creating a new type of field and using javascript.
I know something of javascript programation.
If you can give me some orientation, I will try create it.
Thanks again

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.506 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