• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.
This might be a consequence of raw but not always desirable.

AC

raw is raw (meaning "grab everything untouched"), but perhaps there's a need for additional parameters to include.

As mentioned in Item1977, perhaps there's a need for a set of options?

Default manipulations done in INCLUDE (which are all disabled with raw) looks like this, it is the latter substitution that is wanted as optional with this item. Any need for the others (or completely new ones / additions) to be optional as well?

    $text =~ s/^.*?<\/head>//is;            # remove all HEAD
    $text =~ s/<script.*?<\/script>//gis;   # remove all SCRIPTs
    $text =~ s/^.*?<body[^>]*>//is;         # remove all to <BODY>
    $text =~ s/(?:\n)<\/body>.*//is;        # remove </BODY>
    $text =~ s/(?:\n)<\/html>.*//is;        # remove </HTML>
    $text =~ s/(<[^>]*>)/_removeNewlines($1)/ges;
    # SMELL: this will miss all JavaScript links
    $text =~ s/(\s(?:href|src|action)=(["']))(.*?)\2/$1._rewriteURLInInclude( $host, $path, $3 ).$2/geois;

-- SP

Options could be called something like:

  • disableremoveheaders
  • disableremovescript
  • disablecompresstags
  • disablerewriteurls
  • disable_manipulation_x_

And raw would just be a shortcut for disabling all default manipulations?

-- SP

Added disable-parameters.

Looking at TWiki:TWiki.IncludeTopicsAndWebPages the example currently breaks because of the new apache security filter for includes installed at twiki.org.

Is it easier to make an exception to the filter for demonstration purposes, or come up with another example? (I would prefer the demo pointing to twiki.org where we can keep the url cool).

Currently the demonstration topic cannot retrieve the Tokyo time because all it gets from t.o. is a " Forbidden: You don't have permission to access /cgi-bin/xtra/tzdate on this server." error.

%INCLUDE{"http://TWiki.org/cgi-bin/xtra/tzdate?tz=Asia/Tokyo"}%

-- SP

This topic was lost from the lists due to not having a codebase field. Rediscovered 3/2/07. Just set it to "No Action" if it is dead.

CC

No comments for a long time, so I assume it's dead.

CC

ItemTemplate
Summary INCLUDE with raw=on produces local links instead of absolute
ReportedBy TWiki:Main.ArthurClemens
Codebase

SVN Range Mon, 27 Mar 2006 build 9563
AppliesTo Engine
Component

Priority Normal
CurrentState No Action Required
WaitingFor

Checkins 10776
TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2007-05-26 - TWikiUserMapping_CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback