{* * $Revision: 1.15 $ * If you want to customize this file, do not edit it directly since future upgrades * may overwrite it. Instead, copy it into a new directory called "local" and edit that * version. Gallery will look for that file first and use it if it exists. *}
{g->text text="Short URLs are compiled out of predefined keywords. Modules may provide additional keywords. Keywords are escaped with % (eg: %itemId%)."}
{$module.name} | |||||
|---|---|---|---|---|---|
| {g->text text="Active"} | {g->text text="Help"} | {g->text text="View"} | {g->text text="URL Pattern"} | {g->text text="Additional Keywords"} | |
|
{if isset($form.error.dupe[$rule.pattern]) || isset($form.error.empty.$moduleId.$index)}
|
{if isset($rule.match)} {/if} | + | {$AdminRewrite.shortUrls.$moduleId.rules.$index.name|default:""} | {if isset($AdminRewrite.shortUrls.$moduleId.rules.$index.locked)} {$rule.pattern} {else} {/if} | {foreach from=$AdminRewrite.shortUrls.$moduleId.rules.$index.keywords key=keyword item=prefs} %{$keyword}% {/foreach} |
{g->text text="Some rules only apply if the referer (the site that linked to the item) is something other than Gallery itself. Hosts in the list below will be treated as friendly referers."}
| {counter start=0 assign="i"} {foreach from=$form.allow item=host} |
| {counter print=false} {/foreach} |
{g->text text="For URL Rewrite to work in an embedded environment you need to set up an extra htaccess file to hold the mod_rewrite rules."}
| {g->text text="Htaccess path:"} |
{if isset($form.error.invalidDir)}
{g->text text="Invalid directory."}
{/if}
|
| {g->text text="Public path:"} |
{$AdminRewrite.host}
{if isset($form.error.invalidPath)}
{g->text text="Invalid path."}
{/if}
|
{g->text text="Apache mod_rewrite"}{capture name=mod_rewrite_anchor} mod_rewrite {/capture}{g->text text="In order for this Gallery module to work you need %s enabled with your Apache server." arg1=$smarty.capture.mod_rewrite_anchor} |
{if $AdminRewrite.apacheCode == REWRITE_STATUS_OK}
{g->text text="Success"}{else}{g->text text="Warning"}{/if} |
{if $AdminRewrite.apacheCode != REWRITE_STATUS_OK}
{g->text text="Test mod_rewrite manually"}{capture name="setup_link"}"{g->url arg1="view=core.SiteAdmin" arg2="subView=rewrite.SetupRewrite"}"{/capture}{g->text text="Go to the Setup page where you will be able to further probe mod_rewrite." arg1=$smarty.capture.setup_link arg2=""} |
{/if}
|
{g->text text="Gallery .htaccess file"}{g->text text="Gallery's URL rewriting works by creating a new file in your gallery directory called .htaccess which contains rules for how short urls should be interpreted."} |
{if $AdminRewrite.htaccessCode == REWRITE_STATUS_HTACCESS_READY}
{g->text text="Success"}{else}{g->text text="Error"}{/if} |
{if $AdminRewrite.htaccessCode != REWRITE_STATUS_HTACCESS_READY}
|
{if $AdminRewrite.htaccessCode == REWRITE_STATUS_HTACCESS_MISSING}
{g->text text="Please create a file in your Gallery directory named .htaccess"}touch {$AdminRewrite.htaccessPath}
{/if}
{if $AdminRewrite.htaccessCode == REWRITE_STATUS_HTACCESS_CANT_READ}
{g->text text="Please make sure Gallery can read the existing .htaccess file"}chmod 666 {$AdminRewrite.htaccessPath}
{/if}
{if $AdminRewrite.htaccessCode == REWRITE_STATUS_HTACCESS_CANT_WRITE}
{g->text text="Please make sure Gallery can write to the existing .htaccess file"}chmod 666 {$AdminRewrite.htaccessPath}
{/if}
|
{/if}
{if $AdminRewrite.isEmbedded}
|
{g->text text="Embedded .htaccess file"}{g->text text="You need a .htaccess file in the embedded access point directory."} |
{if $AdminRewrite.embeddedCode == REWRITE_STATUS_HTACCESS_READY}
{g->text text="Success"}{else}{g->text text="Error"}{/if} |
{if $AdminRewrite.embeddedCode != REWRITE_STATUS_HTACCESS_READY}
|
{if $AdminRewrite.embeddedCode == REWRITE_STATUS_HTACCESS_MISSING}
{g->text text="Please create a file in your Gallery directory named .htaccess"}touch {$AdminRewrite.embeddedPath}
{/if}
{if $AdminRewrite.embeddedCode == REWRITE_STATUS_HTACCESS_CANT_READ}
{g->text text="Please make sure Gallery can read the existing .htaccess file"}chmod 666 {$AdminRewrite.embeddedPath}
{/if}
{if $AdminRewrite.embeddedCode == REWRITE_STATUS_HTACCESS_CANT_WRITE}
{g->text text="Please make sure Gallery can write to the existing .htaccess file"}chmod 666 {$AdminRewrite.embeddedPath}
{/if}
|
{/if}
|
{g->text text="Embedded .htaccess file is up to date"}{g->text text="This checks if the content in your embedded .htaccess file is equal to the standalone version."} |
{if $AdminRewrite.embeddedSync == REWRITE_STATUS_OK}
{g->text text="Success"}{else}{g->text text="Error"}{/if} |
{if $AdminRewrite.embeddedSync != REWRITE_STATUS_OK}
{g->text text="Please update your rules while in embedded mode. Hit the Save button should be sufficient."} |
{/if}
{/if}
|