We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
Tags:
create new tag
, view all tags

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.

  1. Does anyone have this working on 4.2?
  2. If you have it working, was anything extra done to make it work?
  3. 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

TWiki version: TWikiRelease04x02x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin, SpreadSheetPlugin, AliasPlugin, BatchUploadPlugin, CalendarPlugin, ChecklistPlugin, CommentPlugin, EasyTimelinePlugin, EditTablePlugin, ExcelImportExportPlugin, ExplicitNumberingPlugin, FindElsewherePlugin, HeadlinesPlugin, InterwikiPlugin, JavaDocPlugin, PreferencesPlugin, RenderListPlugin, SlideShowPlugin, SmiliesPlugin, TWikiDrawPlugin, TablePlugin, TagMePlugin, TreePlugin, TinyMCEPlugin, TwistyPlugin, WysiwygPlugin
Server OS: RedHat? Enterprise Linux 4, 2.6.9-11.EL
Web server: Apache/2.0.52
Perl version: 5.8.5 built for x86_64-linux-thread-multi
Client OS: Windows XP SP2
Web Browser: Firefox 2.0.0.10 and IE7
Categories: Plugins, Skin

-- GeoffreyLowney - 28 Mar 2008

Answer

ALERT! 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

 
Change status to:
Topic revision: r3 - 02 May 2008 - 08:44:05 - MichaelDaum
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback