Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Interchange: users

Getting Interchange to parse and render pages that are not .html

 

 

Interchange users RSS feed   Index | Next | Previous | View Threaded


cgamache at gmail

Oct 2, 2008, 1:55 PM

Post #1 of 4 (878 views)
Permalink
Getting Interchange to parse and render pages that are not .html

I want to do a product dump to froogle. I can always do CGI, but I'd rather
have Interchange render it. Interchange doesn't seem to find any files in
the pages directory unless they are .html, and the URL needs to end in
.xml for froogle to accept it... Copious googling reveals nothing. Any
ideas?


josh-ic at att

Oct 3, 2008, 6:06 AM

Post #2 of 4 (842 views)
Permalink
Re: Getting Interchange to parse and render pages that are not .html [In reply to]

On Oct 2, 2008, at 3:55 PM, Chris Gamache wrote:

> I want to do a product dump to froogle. I can always do CGI, but I'd
> rather have Interchange render it. Interchange doesn't seem to find
> any files in the pages directory unless they are .html, and the URL
> needs to end in .xml for froogle to accept it... Copious googling
> reveals nothing. Any ideas?

Name your file: foo.xml.html

At the top, put:

[set mv_add_do_html]0[/set]
[calc] $Config->{HTMLsuffix} = '.xml'; return[/calc]
[tag op=header]Content-type: text/xml[/tag]

Access at: as foo.xml

Josh

_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


docelic at spinlocksolutions

Oct 3, 2008, 6:31 AM

Post #3 of 4 (823 views)
Permalink
Re: Getting Interchange to parse and render pages that are not .html [In reply to]

On Thu, 2 Oct 2008 16:55:20 -0400
"Chris Gamache" <cgamache [at] gmail> wrote:

> I want to do a product dump to froogle. I can always do CGI, but I'd
> rather have Interchange render it. Interchange doesn't seem to find
> any files in the pages directory unless they are .html, and the URL
> needs to end in .xml for froogle to accept it... Copious googling
> reveals nothing. Any ideas?

One ad-hoc solution is to name your file

pages/something.xml.html

and then access it using URL:

http://...../something.xml


That would work due to Interchange assuming .html extension
(configurable with HTMLSuffix directive) if you don't write
one yourself.


Another option might be periodically doing something like

wget http://.../productdump.html > htdocs/products.xml

and then give Froogle link to that .xml page in the docroot,
outside of catalog's pages/ directory.

-doc

_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


cgamache at gmail

Oct 3, 2008, 7:32 AM

Post #4 of 4 (823 views)
Permalink
Re: Getting Interchange to parse and render pages that are not .html [In reply to]

Thank you both for the spot-on help!

On Fri, Oct 3, 2008 at 9:31 AM, Davor Ocelic
<docelic [at] spinlocksolutions>wrote:

> On Thu, 2 Oct 2008 16:55:20 -0400
> "Chris Gamache" <cgamache [at] gmail> wrote:
>
> > I want to do a product dump to froogle. I can always do CGI, but I'd
> > rather have Interchange render it. Interchange doesn't seem to find
> > any files in the pages directory unless they are .html, and the URL
> > needs to end in .xml for froogle to accept it... Copious googling
> > reveals nothing. Any ideas?
>
> One ad-hoc solution is to name your file
>
> pages/something.xml.html
>
> and then access it using URL:
>
> http://...../something.xml
>
>
> That would work due to Interchange assuming .html extension
> (configurable with HTMLSuffix directive) if you don't write
> one yourself.
>
>
> Another option might be periodically doing something like
>
> wget http://.../productdump.html > htdocs/products.xml
>
> and then give Froogle link to that .xml page in the docroot,
> outside of catalog's pages/ directory.
>
> -doc
>
> _______________________________________________
> interchange-users mailing list
> interchange-users [at] icdevgroup
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>

Interchange users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.