- Posts: 24
- Thank you received: 0
Using Docman
-
ict@dgtprojects.com
Inactive member - Topic Author
- Member
Less
More
10 years 1 month ago #42967
by ict@dgtprojects.com
Using Docman was created by ict@dgtprojects.com
I want to use docman, like we did for years, but I'm having some problems with the combination of your template and docman. I reported it to joomlatools, thay gave me the following response:
"The template is using a flawed technique for rendering the CSS files. They call the current component URL, then throw out the results and send CSS instead. Since DOCman thinks it is being asked for a CSS file it returns an error. This is not something we can fix on our end.
If you would like to contact your template provider about this here is the technical explanation:
The CSS call is made to the current URL with css_request=1 appended. The accept header is set to text/css by the browser. Since DOCman thinks the user wants a CSS representation out of a document (as it uses accept header to determine content type), it declines the request with a 406 error code."
on the right menu, press software section to see the result:
development.digitalgametechnology.com/index.php/dashboard
regards, Jan
"The template is using a flawed technique for rendering the CSS files. They call the current component URL, then throw out the results and send CSS instead. Since DOCman thinks it is being asked for a CSS file it returns an error. This is not something we can fix on our end.
If you would like to contact your template provider about this here is the technical explanation:
The CSS call is made to the current URL with css_request=1 appended. The accept header is set to text/css by the browser. Since DOCman thinks the user wants a CSS representation out of a document (as it uses accept header to determine content type), it declines the request with a 406 error code."
on the right menu, press software section to see the result:
development.digitalgametechnology.com/index.php/dashboard
regards, Jan
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
10 years 1 month ago - 10 years 1 month ago #42973
by ivan.milic
Replied by ivan.milic on topic Using Docman
In index.php of template instead this line:
<link rel="stylesheet" href="<?php echo $css_url; ?>" type="text/css" />
put
<style type="text/css">
<?php require(dirname(__FILE__).DS.'css'.DS.'template_css.php'); ?>
</style>
<link rel="stylesheet" href="<?php echo $css_url; ?>" type="text/css" />
put
<style type="text/css">
<?php require(dirname(__FILE__).DS.'css'.DS.'template_css.php'); ?>
</style>
Last edit: 10 years 1 month ago by ivan.milic.
The following user(s) said Thank You: ict@dgtprojects.com
Please Log in to join the conversation.
-
ict@dgtprojects.com
Inactive member - Topic Author
- Member
Less
More
- Posts: 24
- Thank you received: 0
10 years 1 month ago #43099
by ict@dgtprojects.com
Replied by ict@dgtprojects.com on topic Using Docman
Works perfectly, thank you!
Please Log in to join the conversation.
Time to create page: 0.145 seconds