Search

I was wondering how I would go about linking to a static file I uploaded to my Symphony site? I'm trying to link to the file from inside a page entry.

Thank you.

Are you familiarized with Data Sources and XSLT? Normaly after you create an Section with a Upload Field, you'll need to create a Data Source including that Field on the output and attach that DS in your Page. In your page you link the file like this:

<a href="{concat($workspace, section/entry/uploadfield/@path, '/', section/entry/uploadfield/filename)}">File Link</a>

Where section is the handle of your Section and uploadfield is the handle of your Field.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details