Using Docman

More
9 years 5 months ago #42967 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

Please Log in to join the conversation.

More
9 years 5 months ago - 9 years 5 months 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>
Last edit: 9 years 5 months ago by ivan.milic.
The following user(s) said Thank You: ict@dgtprojects.com

Please Log in to join the conversation.

More
9 years 5 months 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.272 seconds
Powered by Kunena Forum