Interchange Developer Resource


[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date ][Interchange by thread ]

RE: [ic] How can we make interchange *NOT* parse a page?



> Dear List,
> 
> Using: Interchange 4.8.2, RedHat 7.2.
> 
> Question: How can I make interchange *NOT* parse a page that 
> is riddled with [include] tags and general ITL?  We're 
> writing a basic editor that needs to be able to see these tags.
> 
> I tried the following global sub:
> 
> GlobalSub <<EOT
> sub ShowPageHTML        {
>         my $path = "/home/catalogs/shop/pages/customers";
>         my $file = $_[0];
>         my $siteid = $_[1];
>         my $out = "";
> 
>         open(FILE, "< $path/$siteid/$file");
>         while(<FILE>)   {
>                 $out .= $_;
>         }
>         close(FILE);
>         return $out;
> }
> EOT
> 
> Called via:
> 
> [perl arg=sub interpolate=1]
>         ShowPageHTML("[value file]", "[value siteid]")
> [/perl]
> 
> 
> But when the sub goes through the page that it opens and 
> returns, it still parses the lines.  How can we just show the 
> HTML and ITL without parsing the tags?
> 
> Thanks!
> 
> Jason.

Have you already looked at the UI source (page_edit, etc.)?

-Dan


_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users


Search for: Match: Format: Sort by: