Tags:
create new tag
view all tags

SID-00295: Pattern Skin Template Changes

Status: Unanswered Unanswered TWiki version: 4.3.1 Perl version: 5.8.5
Category: CategorySkin Server OS: RHEL 4u7 Last update: 16 years ago

I have made minor customizations to two custom sets of skins: one to simply include a new button (for publishing via PublishContrib), and one that hides all buttons and TWiki functions from anonymous users. Both skins work fine in versions through 4.1.2. But now they seem to be broken: the extra button skin loses everything except the main body content, and the anonymous skin crashes with a "Could not find template 'view' " error. Both view templates include a "view.pattern" template include definition.

Please see both view..tmpl* definitions here: http://deesto.pastebin.com/f4551f0e

What has changed, and what can I do to fix the templates?

-- JohnDeStefano - 2009-05-01

Discussion and Answer

For the first skin (adding a button), testing with ?cover=myskin1 works. For the second skin (anonymous, no buttons), testing with ?cover=myskin2 results in a completely blank page, and the publish command crashes with a "template=view" error.

-- JohnDeStefano - 2009-05-01

Help, please? I'd like to upgrade my instance but can't move forward until I understand how things have changed in the skins. Unfortunately, PatternSkinCustomization seems to be outdated (otherwise I don't think my customizations, which use methods described there, would return errors).

-- JohnDeStefano - 2009-05-13

Hmm, the TWiki.PatternSkinCustomization seemed to be out of date. I updated with latest content from TWiki04x03.PatternSkinCustomization.

-- PeterThoeny - 2009-05-13

Thanks Peter. I have to admit that I can't tell the relevant part that has changed, even looking in the history of the document.

In my case, why does the code for one template still work, and the other fails with "Could not find template 'view' ", when both templates begin with the same exact TMPL:INCLUDE call?

-- JohnDeStefano - 2009-05-14

Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the TWiki consultants if you need timely help. We invite you to get involved with the community, it is more likely you get community support if you support the open source project!

-- PeterThoeny - 2009-07-05

      Change status to:
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.
SupportForm
Status Unanswered
Title Pattern Skin Template Changes
SupportCategory CategorySkin
TWiki version 4.3.1
Server OS RHEL 4u7
Web server Apache 2.0.52
Perl version 5.8.5
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2009-07-05 - 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.