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

Change status to:
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2015-03-03 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.