<noscript> and {literal}

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
jarvaz
Forum Members
Forum Members
Posts: 18
Joined: Thu Nov 13, 2008 8:21 am

<noscript> and {literal}

Post 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
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3484
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: <noscript> and {literal}

Post 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.
jarvaz
Forum Members
Forum Members
Posts: 18
Joined: Thu Nov 13, 2008 8:21 am

Re: <noscript> and {literal}

Post 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>
...
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1922
Joined: Mon Jan 29, 2007 4:47 pm

Re: <noscript> and {literal}

Post 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
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3484
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: <noscript> and {literal}

Post by velden »

What Jo says plus you don't need the {literal} tags
jarvaz
Forum Members
Forum Members
Posts: 18
Joined: Thu Nov 13, 2008 8:21 am

Re: <noscript> and {literal}

Post 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
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3484
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: <noscript> and {literal}

Post 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.
jarvaz
Forum Members
Forum Members
Posts: 18
Joined: Thu Nov 13, 2008 8:21 am

Re: <noscript> and {literal}

Post 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
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1922
Joined: Mon Jan 29, 2007 4:47 pm

Re: <noscript> and {literal}

Post 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.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm
Location: MI

Re: <noscript> and {literal}

Post 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.
jarvaz
Forum Members
Forum Members
Posts: 18
Joined: Thu Nov 13, 2008 8:21 am

Re: <noscript> and {literal}

Post by jarvaz »

Ok, it works now. The problem was in the js. Thanks
Post Reply

Return to “The Lounge”