I’m trying to build a database assembler template which will publish the assembled result of another velocity template…
I’ve tried several approaches including the following binding:
$assembledBody=$rx.doc.extractBody($rx.doc.getDocument($rx.location.generate($sys.assemblyItem,‘bodyTemplate’),’’,’’)
This, however, results in a Rhythmyx login form getting published to my target database. I’ve tried replacing the hostname with 127.0.0.1… this too results in a login page…
I’ve also tried $rx.assmHelper.assemble() but without a slotname, it does nothing or causes an error.
I even tried making an automatic slot, but I get nothing… I mean, literally, nothing outputs at all.
Anyone done anything similar and gotten it to work?
The real issue, it seems, was that the URL must be relative for the authentication error not to occur… and, for whatever reason, $rx.location.generate() occasionally returns a null value, so I couldn’t rely on that either.