Uploaded File Viewer (airdoc)

6 years 7 months ago #62956 by jeffhoneyager
I have uploaded MSword and Excel files using a field of the type of "file"
They display and download fine; as one would expect.

I have added the plugin aridoc by ARI-soft.com

It does a great job displaying documents on the front end.

The plugin is used like this:
{aridoc engine="google" width="595" height="750"}/documents/my-uploaded-file.doc{/aridoc}

During entry, I add the file and it stores it perfectly.

I can display the file when it is in a text area using the above plugin call. But this is outside of the user's capability. I need to display the plugin calls using the file name.

Neither of the following work:

"Every Value Prefix" {aridoc engine="google" width="595" height="750"}/documents/
"Every Value Suffix" {/aridoc}

"Opening Text for Field" {aridoc engine="google" width="595" height="750"}/documents/
"Closing Text for Field" {/aridoc}

How do I display the file name in a template with the above plugin prefix and suffix?

Thanks so much.

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

6 years 7 months ago - 6 years 7 months ago #62958 by ggppdk
Hello

yes, the parameters for to enable Joomla content plugin triggering exist in most fields

- but are missing from file field

I have added them, visit URL:
github.com/FLEXIcontent/flexicontent-cck/tree/3.0.x-stable

Click "Download or Clone" / "Download ZIP"

then install in testing web-site by uploading the package via Joomla extension manager (Joomla extension installer)


-- 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 review. Thanks!

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

6 years 7 months ago #62959 by jeffhoneyager
WOW!

Thank you for addressing this so quickly. Unheard of response time. I'll put in a big positive in a JED review.

I have created the zip and will build in a new test environment.

...will let you know.

Thanks.

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

6 years 7 months ago #62960 by jeffhoneyager
Installed the beta version.
Still no joy. The plugin "trys" to display the file, but if the parameters are not exact, the plugin shows "No preview available"

I the dev. site I placed the correct plugin call within the description area and it does show fine.

Something is changing the outputted string for the "field" display, but I don't know how to see it before rendering.

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

6 years 7 months ago #62964 by jeffhoneyager
Here is a screen shot of the field definition.


Attachments:

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

6 years 7 months ago - 6 years 7 months ago #62968 by ggppdk
Hello

in most case you also need to enable parameter (Read the popup description):

"Remove space"


otherwise the plugin code may fail


-- 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 review. Thanks!

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

6 years 7 months ago #62975 by jeffhoneyager
Checked "Remove Space"

No joy.

???

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

6 years 7 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 review. Thanks!

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

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

6 years 7 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:
$field->{$prop}[]	=  $pretext . $str . $posttext;
with:
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 review. Thanks!

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

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.
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