I have
AliasPlugin installed, but it is only partly working. I am not sure how to debug this problem. The issue is that I can't get things setup so aliases are automatically applied to all the pages.
If I add %STARTALIASAREA% and %STOPALIASAREA% to a page then the aliases within that area are applied, and the %ALIAS{...}% tags are processed, so I know the plugin is working.
I have
view.alias.tmpl installed with this default content:
%TMPL:INCLUDE{"view"}%
%TMPL:DEF{"contentheader"}%%STARTALIASAREA%<div class="twikiBeforeText"></div>%TMPL:END%
%TMPL:DEF{"contentfooter"}%%STOPALIASAREA%<div class="twikiAfterText"></div>%TMPL:END%
I have setup SKIN as
alias,pattern in my preferences as described in the docs, but it doesn't seem to work. I have also tried adding
?skin=alias to a url but the aliases are still not replaced.
I tried editing
view.pattern.tmpl and adding the %STARTALIASAREA%/%STOPALIASAREAD% to things like %TMPL:DEF{"contentheader"}% to no avail (I also added text which appeared on the page so I could tell the TMPL change was being applied).
So I guess I really have multiple questions.
- Does anyone have this working on 4.2?
- If you have it working, was anything extra done to make it work?
- Can anyone tell me how to debug the TMPL definitions, the order they are applied, etc., so I can figure out if the problem is the %STARTALIASAREA%/%STOPALIASAREAD% not being included properly vs. their not being processed properly vs. something else?
--
GeoffreyLowney - 28 Mar 2008
If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
Sorry, closing this question after more than 30 days of inactivity. Feel free to re-open if needed.
--
PeterThoeny - 01 May 2008
Works fine here. Try the following (however I think you did something like this already). Create a topic
Sandbox.AliasPluginTest with the following content:
%ALIAS{name="Foo" value="Bar"}%
Foo
* Set SKIN = alias,pattern
Get the latest version of the
AliasPlugin and try again. Works here without a problem.
--
MichaelDaum - 02 May 2008
Topic revision: r3 - 02 May 2008 - 08:44:05 -
MichaelDaum