Question
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?
Environment
--
GeoffreyLowney - 28 Mar 2008
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is 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
I am having this exact same problem. I tried the recommendation and it does not work. Anyone willing to help me figure this out? My test page is
http://hpf.zapto.org/twiki/do/view/HeathPetersen/TestTopic
.
--
Heath Petersen - 2015-03-02
I have not used this plugin, but based on docs you should either
%ALIAS{name="foo" value="bar"}%, or a bullet list such as:
- foo: bar
- rtfm: read the fine manual
--
Peter Thoeny - 2015-03-03