Opened 16 years ago
Closed 16 years ago
#2640 closed New Feature (wontfix)
Dynamically Generated Templates
Reported by: | Kevin McIsaac | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
I'd like to be able to have templates be generated dynamicall from a URL. That is rather than specify static HTML in the template, I'd like to give a URL instead and use the output of that URL as a template.
In my case, this would be to use the template to create a newsletter from recent content from our CMS, which I then hand edit to add, subtract or change items.
My thought is to extend the existing Template format as follow, i.e. add a src attribute to the HTML tag.
<Template title="Newsletter" image="newsletter.gif">
<Description>IBRS newsletter</Description> <Html src="http://ibrs.com.au/includes/newsletter.php" ></Html>
</Template>
I can see this would be a simple change to the template.html, however my JS is not up to this task.
Change History (2)
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
You can point the TemplatesXmlPath to a dynamic page that creates a XML file with all your content. That would be faster than firing several requests for each template
So I surprised myself and figured out how to do this. in fck_template.html after line 121, i.e.,
I added this code
Add error checking on this requestion and only overwrite the HTML if the request work. This way the Html in the templage is a default.
and it worked