Latest Downloads Module (mod_flexicontet + custom template)

More
10 years 8 months ago #45435 by jeepstone
I have created a latest modified articles using mod_flexicontent.

Ideally what I'd like is for clicking on the item link to start the download immediately. There only seems to be the link URL in the array that comes back. Is there a way to get the URL to the download?

If not, why does my page that I click through to not show a template? I just see a Edit link. How do I set the template of the module item?

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

More
10 years 8 months ago #45440 by ggppdk
Hello

please see the file field (file.php), about how the download link is created

then apply it at appropriate place in your custom module template

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
10 years 8 months ago #45446 by ggppdk
Hello

- you mean that you have made a (new) custom template for Universal content module, right?

about getting URL of a file:

Code:
$file_field_id = 52; // CHANGE this !!! $file_field_name = 'file_field_name'; // CHANGE this !!! $vals = $row->fieldvalues[$file_field_name]; $file_id = @ $vals[0]; if( !empty($file_id) ) { $dl_link = JRoute::_( 'index.php?option=com_flexicontent&id='. $file_id .'&cid='.$row->id.'&fid='.$file_field_id.'&task=download' ); echo $dl_link; }

(i have not tested the above , it may need some correction)

and i am not sure that i understand this (please explain):

If not, why does my page that I click through to not show a template? I just see a Edit link. How do I set the template of the module item?


show which template? i am confused
you get an edit link inside the FLEXIcontent universal module ?
it is using your new custom template or a built-in template e.g. 'news', 'carousel' ?


-- 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 8 months ago #45458 by jeepstone
I think I had this wrong!

I've resolved what I wanted to by doing the following:

Using mod_flexicontent, under Item List: Display of Fields

Got to Fields parameters, enter the name of the field.

Save!

Simples!

Sorry for the confusion.

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

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