Get file size of file URLs automatically does not work anymore

More
6 years 7 months ago - 6 years 7 months ago #69517 by lipatovroman
Yes, you are right.
I'm using custom custom layout for the file field.
I replaced code from commit and now filed works perfect!

Files downloads in current tab and links opens in new tab.
Thank you!

But I found strange bug.

I have custom layouts in field template folder and I use value_InlineBoxes2.php:



But in field setting this template does not displays:



In spite of this, the field uses exactly value_InlineBoxes2.php

May be it because this setting was saved in DB before.
Last edit: 6 years 7 months ago by lipatovroman.

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

More
6 years 7 months ago #69519 by ggppdk
Hello

custom layout not showing ?
this should not happen !
i will look at it


-- 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
6 years 7 months ago - 6 years 7 months ago #69520 by ggppdk
Hello

i have checked it

you are looking at the wrong configuration TAB

field_inlineBoxes.php is for Item form
value_inlineBoxes2.php is for Item view

Go to the viewing TAB and you will see that "inlineBoxes2" is showing and it is also selected

[EDIT]
same name but different prefixes,
field_*
value_*

i can see why this can be a little confusing


-- 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...
Last edit: 6 years 7 months ago by ggppdk.

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

More
6 years 7 months ago #69521 by lipatovroman
Sorry :blush:
You are right!

What is the field_inlineBoxes.php is for Item form for?
To change template for editing files?

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

More
6 years 7 months ago #69522 by ggppdk
Hello

for a few fields we have added layouts for item form too

field_*.php for Item form

value_*.php for Item view

in general you should avoid overriding item form layout,
as unlike viewing, they is some risk for a future changes breaking them


-- 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
6 years 7 months ago #69523 by lipatovroman
Ok, thank you.
Great work.

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

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