Skip to main content

Showing Phoca Download files in YOOtheme Pro – a download centre in your own design

Phoca Download is a proven download manager for Joomla. If you design your pages with YOOtheme Pro, however, you soon hit a limit: the downloads appear in Phoca's design, not in that of the rest of your site. Here I show the ways to bring Phoca files into a YOOtheme layout.

The problem

Out of the box, the YOOtheme Pro page builder knows Joomla articles, categories and a few other kinds of content as a source. Phoca Download is not among them. A download list therefore cannot simply be created as a grid or cards in the builder.

Way 1: use Phoca's own views

You link to Phoca Download's category or file view in the menu. That works immediately, and permissions and counters stay active. But the view looks like Phoca and can hardly be adapted to your layout without template overrides.

Way 2: Phoca's modules and plugin

Phoca comes with its own modules and a content plugin you use to insert individual files into an article. That is enough for single links. A designed download centre with tiles, images and filters does not come out of it, though.

Way 3: template overrides

With your own overrides you adapt Phoca's output to your layout. That is flexible but requires PHP skills and has to be checked after every Phoca update.

Way 4: Phoca as a source in the builder

The most convenient way: Phoca files are available in the builder as a source, just like articles. You build the download centre with YOOtheme's elements, for example as a grid, list or table, and connect the fields to title, description, file size, version and download link.

What matters

  • The download link has to go through Phoca. Only then does Phoca count downloads and check permissions. A direct link to the file bypasses both.
  • File size and type come from the file. Details maintained by hand are wrong after the next file replacement.
  • Use custom fields. If you created custom fields for Phoca documents, such as product line or release level, they should be available in the layout too.

Phoca Download Source

For exactly this way I developed Phoca Download Source. It offers three sources: a single document, a list of documents, picked by hand or taken from categories, and the categories themselves as tiles. You sort by title, date, popularity or Phoca's ordering, and custom fields appear in the builder by themselves.

The file size comes ready formatted from the file, along with a matching icon for more than 60 file types. Download and detail links go through Phoca Download, so counters and permissions stay active. The plugin only reads and changes neither your downloads nor the component. Phoca Download Source is included in the Joomla bundle.

This article is also available in German.

Related extension

Phoca Download Source turns your Phoca documents and categories into a source in the YOOtheme builder. Included in the Joomla bundle.

A question about this topic, or an idea for the next guide? Write to me.

Norbert Graup

# Topics
Related extension

Joomla bundle: all Pro versions, updates and personal support.

Still have questions?

Contact me - I will solve your problem too.

Graup - IT - Norbert Graup IT Services

© Graup-IT - Norbert Graup IT Services