Robin Jackson wrote:
> Ok, I've used Midgard extensively, and am using it primarily as php code
> management system. Topics, articles, etc. are nice but what I really wanted
> (and got BTW) is a CMS that allows me to use and reuse our thousands of
> elements.
>
> Now comes the tricky part....and kludges are welcome.
>
> How can I get the interpreter to execute <[]> midgard commands inside of
> external HTML. The beauty of this is that our more sophisticated users, who
> want to design their own pages usng their favorite WYSIWYG html generator
> (Netobjects for example) and just embed documented elements whenever they
> want to call one of prebuilt pieces of code.
>
> I know that midgard goes out and calls the various META elements and starts
> to build a page from ROOT, but what I'm asking is ... is there someway to
> say...hey this page doesn't exist in the Midgard DB, so lets get the HTML
> from the external source and insert/execute the appropriate elements?
>
>
> I REALLY need the group to think about this, as it seems to be a missing
> link....EVERY site has some pages that are better generated outside of
> Midgard, and generating HTML page by page inside the Midgard interface is
> FAR more laborious than using Dreamweaver, Netobjects, Imagestyler or
> whatever.
Midgard cannot do that, well, maybe with filetemplates, but they are not
exactly pure HTML.
What you could do, however, is to have a host and an active root page
that read the html files and eval() them.
ie. (pseudo code):
<?
$file = readfile($midgard->uri);
eval($file);
?>
this way you can use the midgard construct <[]> and &();
Note that I'm not talking about efficiency ;)
> Rob Jackson
> Senior Architect, AOrbit.com
> [EMAIL PROTECTED]
> http://www.gwptech.net
--
Best Regards,
David Guerizec Open Source Developer
Aurora R&D [EMAIL PROTECTED]
Midgard core developer http://www.midgard-project.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]