sync_folders

4.2.4

 

Tag {sync_folders} synchronises folders between the file system and CMS, it also synchronises albums in file system based galleries.

Parameters

  • id - folder ID or album ID (in file system based gallery) to synchronise. If "id" is not defined then alternative parameter "path" is used.
  • path - relative path of the folder to synchronise.

 

Example: to synchronise one (active) album in file system based gallery

{if $in_editor}
<form name="custom_conf_vars" action="{$self}" method="GET">
<fieldset>
<input type="hidden" name="sync_id" value="folder_id_you_wish_to_sync">
<input type="hidden" name="id" value="{$id}">
<input type="hidden" name="sync" value="1">
<input type="submit" name="submit_button" value= "Synchronise folder">
</fieldset>
</form>
{if $smarty.get.sync == 1}{sync_folder id = $smarty.get.sync_id}{/if}
{/if}