Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 613 Bytes

File metadata and controls

16 lines (11 loc) · 613 Bytes

Parse File Paths

Parses {filedir_X} variables. Works great with query module and activerecord plugin, and any other add-on that outputs raw channel data.

This new 2.1 version includes the required addon.setup.php file and also updates the code for upcoming changes in PHP which deprecate a class and function having the same name.

Installation

  • Copy the /system/user/addons/parse_file_paths/ folder to your /system/expressionengine/third_party/ folder

Usage

{exp:query sql="SELECT field_id_1 AS file FROM exp_channel_data"}
{exp:parse_file_paths}
	{file}
{/exp:parse_file_paths}
{/exp:query}