block stripping css code

fuelishways's Avatar

fuelishways

01 Aug, 2012 01:22 PM

can you include css code in a block? my blocks seem to strip my tags from a block whenever i publish it. Tried using the <!--#START-CODE #END-CODE-->, but still strips it.

  1. 1 Posted by Ryan Griffith on 01 Aug, 2012 01:58 PM

    Ryan Griffith's Avatar

    Hi fuelishways,

    Just a few questions to see if we can narrow this down a bit:

    • What version of Cascade are you experiencing this behavior in?
    • Are you adding the <style type="text/css"> tag to an XHTML Block?
    • Would you be abe to provide a screenshot of your block with the CSS in it?
    • Is the CSS being removed when previewing within Cascade, or only after publish?

    Please let us know if you have any questions.

    Thanks.

  2. 2 Posted by Ryan Griffith on 10 Aug, 2012 08:09 PM

    Ryan Griffith's Avatar

    Hi fuelishways,

    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.

  3. Ryan Griffith closed this discussion on 20 Aug, 2012 12:58 PM.

  4. fuelishways re-opened this discussion on 05 Sep, 2012 03:51 AM

  5. 3 Posted by fuelishways on 05 Sep, 2012 03:51 AM

    fuelishways's Avatar

    ryan, we are on v7.0.3; I do have the style type declared; the CSS is being removed after publish. it looks fine in cascade server.
    I've attached a screenshot of the block.

  6. 4 Posted by Ryan Griffith on 05 Sep, 2012 12:20 PM

    Ryan Griffith's Avatar

    Hm, I was able to get this to work on my local instance of Cascade 7.0.3.

    Perhaps your Format is stripping out the formatting that is added to the Structured Block. Can you attach the Format you are using to output the Structured Block to the page?

  7. 5 Posted by Ryan Griffith on 20 Sep, 2012 06:16 PM

    Ryan Griffith's Avatar

    Hi,

    Just wanted to follow up to see if you had a chance to view my recent comment. Were you able to get the CSS published?

    Please let us know if you have any questions.

    Thanks.

  8. 6 Posted by fuelishways on 21 Sep, 2012 03:15 AM

    fuelishways's Avatar

    i think i've got it figured out. for some reason it doesn't like to have two sets of <style> tags in the same file. it stripped the first set, but left the second set. so i just added the styles in the first set to the second...probably how it should have been in the first place!

  9. 7 Posted by Ryan Griffith on 21 Sep, 2012 12:58 PM

    Ryan Griffith's Avatar

    Interesting, but glad to hear that you got things working!

    I'm going to go ahead and close this discussion, please feel free to reply or comment to re-open this discussion if you have any additional questions.

    Thanks.

  10. Ryan Griffith closed this discussion on 21 Sep, 2012 12:58 PM.

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

 

26 Aug, 2016 01:19 PM
25 Aug, 2016 03:02 PM
25 Aug, 2016 12:50 PM
24 Aug, 2016 08:43 PM
24 Aug, 2016 07:20 PM
21 Aug, 2016 01:20 PM