My Template-Editing Notes

view.pattern.tmpl

This is where I put both the ad banners and the Facebook comments section. %PAGELINK{"BottomBannerAd"}% is what I used for my ad banner plugin.

For taking different actions based on whether the user is logged in or not:

This is how you do something different IF someone is logged in.

%IFDEFINEDTHEN{ "&WIKINAME%" as="TWikiGuest" }%
%ELSEDEFINED%
%FIDEFINED%

-- SeanNewton - 22 Jul 2012

Topic revision: r1 - 2012-07-22 - SeanNewton
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback