Dec 04, 2008, 03:46 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Search via SMF or Google: modx forums all of modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
News:Read what MODx Developers say: MODx Dev. Blogs
Pages: [1]   Go Down
  Print  
Author Topic: Template content type  (Read 3998 times)
0 Members and 1 Guest are viewing this topic.
theo
Member
**
Posts: 93



WWW
« on: Oct 09, 2005, 10:23 AM »

I'm working on a PDF link on my pages that generates a PDF version of the document. I'd like to create a template that generates the PDF and then use the ChangeTemplate plugin to call the page with the PDF template instead of the HTML template.

The problem is that I can't specify a content type for a template. So I have to create a document, assign it the 'application/pdf' content type and have a plugin read the id-parameter which then fetches the appropriate content for the page and spit it out in PDF.

It would be a lot easier (and makes more sense to me) to be able to set the content type for a template.

The CSS files I use now have a 'blank' template assigned and have the CSS content type. I'd make more sense if you could simply create and assign a CSS template. Same goes for other content types like eg XML.

And the content disposition option is also candidate for the template if you ask me.

Does this make sense? Or am I missing the point of templates here?

(using TP 3.2)
« Last Edit: Oct 09, 2005, 06:09 PM by theo » Logged
rthrash
Foundation
*
Posts: 9,577



WWW
« Reply #1 on: Oct 09, 2005, 05:03 PM »

That's some very good insight theo. Can you log a feature request in the bugtracker?
Logged

MODx is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you help us help you, read the wiki, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
theo
Member
**
Posts: 93



WWW
« Reply #2 on: Oct 09, 2005, 06:14 PM »

Done under task #79
Logged
rthrash
Foundation
*
Posts: 9,577



WWW
« Reply #3 on: Oct 09, 2005, 08:46 PM »

Thanks. For reference for everyone, if you want ot make 100% certain your requests get the appropriate attention, as well as bugs of course, please log them as feature requests in the bug tracker. Thanks!
Logged

MODx is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you help us help you, read the wiki, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF 1.1.4 | SMF © 2005, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!