[Typo3-dev] Rendering / accessing FE page from backend module
Casper Poulsen
casper at edev.dk
Sun Jul 25 11:48:21 CEST 2004
Actually, I just wrote the very first proof-of-concept-version, that I
published on TER (cp_validator).
> Perhaps a Input field, where you can give a specific URL to parse would
> be great, so you can also parse other sites?
Good idea - I'll try to keep it in mind.
> For automaticaly parse the current site in backend you could use two ways:
> 1.) a TSConfig var (So you can configure the site-location example
> sitevalidator.pathprefix=http://localhost/)
Ah, didn't think of that.
> 2.) See as viewpage did it (...typo3/ext/viewpage/view/index.php):
Yes, that's how I did it. Tho, there are problems with sites not having
a domain record added, as this gives me urls like ../index.php?id=xxx
and thats no good with getURL(); since i need a http://
But it IS working, on sites using domain records. It isnt parsing error
msg's yet, so output isnt pretty and Errornum isnt correct.
> Beside: I am interested in XML support - Would you go to use an extern
> SGML parser or a php-parser (With DOM support?)?
Right now I am using an external SGML parser
(http://openjade.sourceforge.net/doc-1.5.1/nsgmls.htm), that
validator.w3.org also uses. Not quite sure what you mean by a php-parser.
--
Casper Poulsen
casper at edev.dk
More information about the TYPO3-dev
mailing list