Uploaded File Viewer (airdoc)

More
8 years 4 months ago #62975 by jeffhoneyager
Checked "Remove Space"

No joy.

???

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

More
8 years 4 months ago #62976 by ggppdk
Hello

there maybe some invisible HTML there

if you do in the browser:
"view HTML source"

(please do examine DOM with some tool as the indent the content, instead open e.g. in firefox and "view source" )

so you see an extra spaces or "invisible" HTML e.g. a <span ...
?


-- 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
8 years 4 months ago #62991 by jeffhoneyager
Yes there were differences in the html code when "viewing source"

Here is the difference - the code added by FlexiContent is highlighted.





Also attached is a zipped word document with the above code - in case you can't see it in the PNG.

File Attachment:

File Name: view-sourc....doc.zip
File Size:2 KB



Thanks again for your help.
Attachments:

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

More
8 years 4 months ago #62992 by ggppdk
Hello

yes it includes a lot of HTML !! ...

you will need to create a custom layout file:
- copy as:
plugins/flexicontent_fields/file/tmpl/value_InlineBoxes.php
as
plugins/flexicontent_fields/file/tmpl/raw_abspath.php

then edit new file, and replace line:
Code:
$field->{$prop}[] = $pretext . $str . $posttext;
with:
Code:
if (!$authorized) continue; // OR DO do something like: = $str; $field->{$prop}[] = $pretext . $abspath . $posttext;

Then edit field configuration and select the new layout


-- 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
8 years 4 months ago - 8 years 4 months ago #62994 by jeffhoneyager
Here is what I did:

Copied value_InlineBoxes.php to value_abspath.php (note "value_" is required for the field template to display)

Edited lines 63 and 400

From
Code:
$field->{$prop}[] = $pretext . $str . $posttext;

To
Code:
$aridoc_filename = $file_data->filename; $field->{$prop}[] = $pretext . $aridoc_filename . $posttext;

This worked!!!!

Thank you - you saved my behind.
Last edit: 8 years 4 months ago by jeffhoneyager.

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

More
8 years 4 months ago #62997 by jeffhoneyager
Update.

I made the change (new template for viewing - called it value_FileNameOnly.php) on the live site WITHOUT using the modified version of F.C. on github and it worked.

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

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