Attachment file in custom type article
-
Hello, this plugin is great thanks,
I want to create a simple upload field to attach pdf files to my custom type articles.
I created a custom field “media” for uploading, set as repeatable to_array,
in the template with the following code, recover the link to the article containing the pdf file:$my_array = get_custom_field('allegato:to_array'); foreach ($my_array as $item) { print "<div>"; print CCTM::filter($item,'to_link_href'); print "</div>"; }
I would rather the direct link to the file, and print the title of the file, how should I do?
thanks
https://www.ads-software.com/extend/plugins/custom-content-type-manager/
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Attachment file in custom type article’ is closed to new replies.