Page 1 of 1

<noscript> and {literal}

Posted: Wed Oct 22, 2014 7:53 am
by jarvaz
Hello everyone.

I have a website with CMSMS version 1.9.4.3. I can not update it because my service provider has a base of very old data. But I have asked for a responsive template. I use a template that has CSS <noscript> stylesheet </ noscript> and does not work. I have written this code between {literal} {/ literal}, and does not work. Is there any solution?
A greeting and thanks

Re: <noscript> and {literal}

Posted: Wed Oct 22, 2014 8:16 am
by velden
and does not work
Please paste the relevant part of the template here and the output (html/page source).

Link to the page could be helpful too.

Re: <noscript> and {literal}

Posted: Wed Oct 22, 2014 10:39 am
by jarvaz
oK,

http://personal.us.es/jarvaz/index.php

If you look at the source code on the web, you'll see that does not work stylesheets

code template:
{process_pagedata}
<!DOCTYPE HTML>
<!--
TXT by HTML5 UP
html5up.net | @n33co
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<__html>
<head>
<title>{title}</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
{metadata}


<!--[if lte IE 8]><__script__ src="uploads/plantilla/css/ie/html5shiv.js"></__script><![endif]-->
<__script__ src="uploads/plantilla/js/jquery.min.js"></__script>
<__script__ src="uploads/plantilla/js/jquery.dropotron.min.js"></__script>
<__script__ src="uploads/plantilla/js/skel.min.js"></__script>
<__script__ src="uploads/plantilla/js/skel-layers.min.js"></__script>
<__script__ src="uploads/plantilla/js/init.js"></__script>
{literal}
<noscript>

<link rel="stylesheet" href="uploads/plantilla/css/skel.css" />
<link rel="stylesheet" href="uploads/plantilla/css/style.css" />
<link rel="stylesheet" href="uploads/plantilla/css/style-desktop.css" />

</noscript>
{/literal}

<!--[if lte IE 8]><link rel="stylesheet" href="uploads/plantilla/css/ie/v8.css" /><![endif]-->

</head>
...

Re: <noscript> and {literal}

Posted: Wed Oct 22, 2014 10:50 am
by Jo Morg
< noscript >whatever you want to show to browsers without Javascript < /noscript >....
if you move the stylesheet outside of the noscript it works...

http://www.w3schools.com/tags/tag_noscript.asp

Re: <noscript> and {literal}

Posted: Wed Oct 22, 2014 11:13 am
by velden
What Jo says plus you don't need the {literal} tags

Re: <noscript> and {literal}

Posted: Wed Oct 22, 2014 11:21 am
by jarvaz
If I remove {literal} stylesheet works, but I have my website in responsive mode, to make it look properly on mobile and tablets

Re: <noscript> and {literal}

Posted: Wed Oct 22, 2014 2:33 pm
by velden
CMSMS is not a magic thing; in the end it outputs html, css and javascript which your browser needs to interpret/render. Nothing more, nothing less.

So, if you see some output in the page source like you expect, cmsms did the job well.

That it doesn't work in your browser is not caused by cmsms.

I can't see how <noscript>, {literal} and css in this case are related.

You only need {literal} if you want to use { and } in the template or content. In your case you do NOT need it.

<noscript> does not seem needed too. I don't see why you are using that tag. It surely has nothing to do with the responsiveness of a website. That should be taken care of by your stylesheets and maybe some javascript.

Please read about the basics of html and responsive websites.
Personally I always build a static webpage to start with. If that works like I want it to I start to implement cmsms.

Re: <noscript> and {literal}

Posted: Wed Oct 22, 2014 3:42 pm
by jarvaz
Thanks for your answers.
The template works fine statically.
I got it here: http://html5up.net/txt, and my code is the same as the template. Everything is perfect except navigation and mobile tablets.

I think the problem is that the version I have does not support html5 CMSMS. I can not do anything with my server, work in a public institution and MySQL I get is old.
Again, thank you very much

Re: <noscript> and {literal}

Posted: Wed Oct 22, 2014 3:56 pm
by Jo Morg
jarvaz wrote:The template works fine statically.
I got it here: http://html5up.net/txt, and my code is the same as the template. Everything is perfect except navigation and mobile tablets.

I think the problem is that the version I have does not support html5 CMSMS. I can not do anything with my server, work in a public institution and MySQL I get is old.
Well you need to understand what you are doing, and have the proper tools to debug what might be wrong. For instance I think that your Javascript files expect to find the stylesheet files in one place and you moved them to another. I would look for hardcoded paths for the stylesheet files on the javascript files and update them as they must be still pointing to the default location.

Re: <noscript> and {literal}

Posted: Sun Oct 26, 2014 9:34 pm
by Jeff
jarvaz wrote: I think the problem is that the version I have does not support html5 CMSMS. I can not do anything with my server, work in a public institution and MySQL I get is old.
Again, thank you very much
No matter how old the versions of CMSms and MySQL are, they just output text they don't care what it is it could be XML, JSON, HTML (any form), or War and Peace.

Sounds like you don't know what you are doing and you are blaming the tools instead of learning how to use them properly.

Re: <noscript> and {literal}

Posted: Mon Oct 27, 2014 8:32 am
by jarvaz
Ok, it works now. The problem was in the js. Thanks