| View previous topic :: View next topic |
| Author |
Message |
Brandon
Joined: 14 Nov 2005 Posts: 1122
|
Posted: Fri Dec 09, 2005 6:31 pm Post subject: Footer Questions/Problems |
|
|
So I've been given the task of rewriting all of our old ShipWork templates in the newest XML format. I'm more than happy to do it b/c I've been wanting to learn XML/XSL for quite some time now, and there's no better way to learn then to jump in feed first...
There are two things I'm trying to do right now that I haven't had any success in doing. I've tried for a good couple hours and searched around quite a bit, but I can't figure it out.
The first, is a simple footer on all pages. This code should work:
[code]
<xsl:template name="outputPageFooter">
content here
</xsl:template>[/code]
But it does not. I get no ouput and no error messages. I also can't find where this template is stored -- I'd like to the logic behind the code (for use in my next question).
The second, is to put a footer on ONLY the last page. This is the one where I'm really stuck. My intial attempt was to use CSS and absolute positioning. The problem I ran accross there was that "position: absolute; bottom: 1in;" puts the text exactly 1inch from the bottom of [b]page 1[/b].
Does anyone have any ideas on either of these? Thank you very much!
-Brandon |
|
| Back to top |
|
Wes Site Admin
Joined: 07 Oct 2002 Posts: 7427
|
Posted: Tue Dec 20, 2005 11:04 pm Post subject: |
|
|
Brandon,
The outputPageFooter template can be found in System/Base Order Template template. Pasting the code you provided before the last line of any standard template should work fine. Have you been able to incorporate this into your template since your original post?
For your second request of adding a footer to only the last page... this may require some additional support in ShipWorks to make happen. I will log this as a feature request.
Thanks,
Wes
Interapptive, Inc. |
|
| Back to top |
|
Brandon
Joined: 14 Nov 2005 Posts: 1122
|
Posted: Fri Dec 23, 2005 11:46 am Post subject: |
|
|
Thanks for the reply Wes. Maybe this is the problem... here is that template code in my copy:
[code]<xsl:template name="outputPageFooter">
</xsl:template>[/code]
It's just a blank template. I don't see how this forces it to be at the footer of the page.
Brandon |
|
| Back to top |
|
Wes Site Admin
Joined: 07 Oct 2002 Posts: 7427
|
Posted: Fri Dec 23, 2005 11:58 am Post subject: |
|
|
Hi Brandon,
It does not force it to be at the footer (absolute bottom) of the page as you might expect from Microsoft Word. Rather, it forces whatever you include in that template to show as the last portion of the template output.
Let us know if you have further questions.
Thanks,
Wes
Interapptive, Inc. |
|
| Back to top |
|
Brandon
Joined: 14 Nov 2005 Posts: 1122
|
Posted: Sat Dec 24, 2005 9:28 am Post subject: |
|
|
Ah, ok. We'll continue printing our footers on the letterhead then. Thanks Wes.
Brandon |
|
| Back to top |
|
|