Inline display of uploaded Files

More
10 years 4 months ago #52645 by boy143878
Hello,

Joomla 3.3.6
Flexicontent 2.2.0

In Flexicontent I created a new Type called KB.
Created a Field Type -File named resolution_file. This is a pdf file to be uploaded by the user.
How do I get the value (filename) of the file uploaded? I know the path of where it is being uploaded to.

I am trying to display the pdf document in an article, but need the full path of the file.

Thanks.

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

More
10 years 4 months ago #52651 by ggppdk
Hello

- please use v2.2.1 rc1


you want to know how to upload files ?

please a new field for type "file" and assign it to you content type "KB" (inside field configuration you select which content type will use the field)

then the field will appear in item form


-- 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
10 years 4 months ago #52655 by boy143878
Hello,

I have created new type field File. I am uploading pdf files and want to embed it in the page. I do not want to hit the "view" button to see it.

I would like to know how to get the path and filename of the uploaded file.

Many thanks.

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

More
10 years 4 months ago #52656 by ggppdk
Hello

1. add field into the 'render_only' position so that FIELD HTML and other data are created

2. Manually display it inside your template
category_items(_html5).php
item(_html5).php

for URL use ARRAY:
$item->fields->url

for path contruct out of:
$item->fields->file_data


-- 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
10 years 4 months ago #52674 by boy143878
Hello,

1. If I create a text field in the same KB Type, is there a way to get the path/url from a text field type. Maybe enter in {{item->url}}

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

More
10 years 3 months ago #52675 by boy143878
In Opening text for Field I include the following.

Enter: {{item_>title}} Display: Title

resolution_file is Field Type=File
Enter: {{resolution_file##0}} Display: 2

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

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