Templates losing indents within code
Not sure if it is indeed a bug or if I am doing something wrong, but sometimes I lost all indents from the HTML code after saving a template. Anyone else having this problem or have solved this problem? It just becomes extremely messy and hard to read...
Discussions are closed to public comments.
If you need help with Cascade CMS please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Ryan Griffith on 14 Jun, 2012 10:01 PM
Hi gsateles,
I don't believe I've come across that before. Could you provide me with the browser (and version) you are using and the version of Cascade?
Thanks.
2 Posted by Ryan Griffith on 20 Jun, 2012 05:30 PM
Hi gsateles,
Just wanted to follow up to see if you had a chance to view my recent comment.
Please let us know if you have any questions.
Thanks.
Ryan Griffith closed this discussion on 27 Jun, 2012 02:57 PM.
gsateles re-opened this discussion on 17 Jul, 2012 08:49 PM
3 Posted by gsateles on 17 Jul, 2012 08:49 PM
Hi
Sorry for the delay in response. I have tried Chrome 19.0.1084.56 and Firefox 10.0, both happen the same thing. I have tried uploading a template file and copying and pasting code. After I save it and return to the template file, all indents are gone. We currently have Cascade 7.0, as our IT staff has not yet installed the latest updates.
--
Gabriela Sa Teles
Web Designer
Park University | Office of University Communications and Marketing
[email blocked]
________________________________________
From: Ryan Griffith [[email blocked]]
Sent: Thursday, June 14, 2012 5:01 PM
To: Sa Teles, Gabriela
Subject: Re: Templates losing indents within code [Bug Reports]
4 Posted by Ryan Griffith on 18 Jul, 2012 01:23 PM
Hi Gabriela,
Thank you for getting back to us. I was unable to reproduce this behavior while testing locally with Cascade 7 and 7.0.1 using the following OS/browser combinations:
Just a few more questions to see if we can narrow things down a bit:
Thanks!
5 Posted by gsateles on 18 Jul, 2012 06:32 PM
Hi Ryan,
Because of administrative reasons, I can't update the browsers on my work computer. But my supervisor is also having issues with the indents disappearing, so I am not sure whether it is a browser issue. It displays just fine on the browser (with indents) throughout the submit process. Only when I reopen the template the indents disappear.
I have tried adding the indents manually on cascade and, after saving, they continue disappearing.
I have attached the original file. I'm still on the process of importing it into cascade.
6 Posted by Ryan Griffith on 19 Jul, 2012 12:34 PM
Hi Gabriela,
It looks like there were some
&
that were not provided as entities, causing the Template to be considered invalid. When a Template is found to be invalid, Cascade will run it through a Tidy process to attempt to clean up the code, which also results in tabbing to be removed.I tried replacing the two occurrences of
&
with&
in my local instance and that appeared to do the trick.A few things I did notice as well:
DEFAULT
region. I'm thinking you are looking to place this within<div class="main-col">
instead of the<systenm-
partial tag.<html>
tag. Even if one is supplied within a conditional, Cascade does not consider this to be "valid" so it attempts to rewrite/add the tag for you. There is a feature request on the idea exchange to allow this, feel free to vote and comment if you feel this would be a good feature to be implemented in a future version of Cascade.Please let us know if you have any questions.
Thanks.
7 Posted by Ryan Griffith on 31 Jul, 2012 08:50 PM
Hi Gabriela,
Just wanted to follow up to see if you had a chance to view my most recent post above.
Please let us know if you have any questions.
Thanks.
Ryan Griffith closed this discussion on 08 Aug, 2012 01:42 PM.