Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Search
Search


Forum Index » Templates

Post new topic   Reply to topic
Footer Questions/Problems
View previous topic :: View next topic  
Author Message
Brandon



Joined: 14 Nov 2005
Posts: 1122

PostPosted: Fri Dec 09, 2005 6:31 pm    Post subject: Footer Questions/Problems Reply with quote

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
View user's profile
Wes
Site Admin


Joined: 07 Oct 2002
Posts: 7427

PostPosted: Tue Dec 20, 2005 11:04 pm    Post subject: Reply with quote

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
View user's profile Visit poster's website
Brandon



Joined: 14 Nov 2005
Posts: 1122

PostPosted: Fri Dec 23, 2005 11:46 am    Post subject: Reply with quote

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
View user's profile
Wes
Site Admin


Joined: 07 Oct 2002
Posts: 7427

PostPosted: Fri Dec 23, 2005 11:58 am    Post subject: Reply with quote

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
View user's profile Visit poster's website
Brandon



Joined: 14 Nov 2005
Posts: 1122

PostPosted: Sat Dec 24, 2005 9:28 am    Post subject: Reply with quote

Ah, ok. We'll continue printing our footers on the letterhead then. Thanks Wes.

Brandon
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic     Forum Index » Templates All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  

Powered by phpBB © 2001, 2002 phpBB Group