Jump to:

22977 Posts in 11806 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » content not saving

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2
Go to End
Author Topic: 2199 Views
  • Scorpiankh
    Avatar
    Community Member
    60 Posts

    content not saving Link to this post

    Hi

    I've just finished installing SilverStripe, had many hiccups with the install but finally got it done, and everything seemed to be working so I went to start getting all my pages setup. I created some pages in the CMS and tried adding some content, clicked save and publish, it comes up with "Published Successfully" but nothing is appearing on the actual page, and if i click on another page in the CMS and then go back to the page i just editted all the content is gone.

    Everything else seems to be working fine, i can create new pages, edit page names, navigation labels, meta data and change page types and they all update and appear fine when i view the page it's just the content that isn't saving.

  • Scorpiankh
    Avatar
    Community Member
    60 Posts

    Re: content not saving Link to this post

    I've been playing around a little finding out specifically whats working and what's not and it seems it's only whatever is in the content field in the CMS that's not working, the date from the date field on my news item page is showing up, and i can add images and albums in the image gallery and they update and display fine on the website (although without the 'next album' 'previous album' links).
    I also noticed that the editting buttons within the content field that are usually greyed out and unclickable when not applicable (undo, redo, table row properties, table cell properties etc) are not greyed out

  • Scorpiankh
    Avatar
    Community Member
    60 Posts

    Re: content not saving Link to this post

    help please. I still can't get this working.

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: content not saving Link to this post

    Could you post any custom code for your page type that you have done. Does the content on any page save or does this affect all page types in your site?

    The content you are adding to the page is simply text or are you trying to add iframes / javascript.

    Also note SilverStripes TinyMCE strips out any characters it doesn't like so it could be saving fine but TinyMCE stripping out your content.

  • Scorpiankh
    Avatar
    Community Member
    60 Posts

    Re: content not saving Link to this post

    The code for my Page.ss is:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" >

    <head>
          <% base_tag %>
          <title><% if MetaTitle %>$MetaTitle<% else %>$Title<% end_if %> &raquo; Ethereal Art and Design</title>
          $MetaTags(false)
          < link rel=”shortcut icon” href=”favicon.ico” type=image/x-icon” >
          
          <% require themedCSS(layout) %>
          <% require themedCSS(typography) %>
          <% require themedCSS(form) %>
          
          <!--[if IE 6]>
             <style type="text/css">
              @import url(themes/ethereal/css/ie6.css);
             </style>
          <![endif]-->
          
          <!--[if IE 7]>
             <style type="text/css">
              @import url(themes/ethereal/css/ie7.css);
             </style>
          <![endif]-->
       </head>
    <body id="$URLSegment">

    <div id="BgContainer">

       <div id="Container">
          <% include Header %>
          
          <% include Menu1 %>
           
           <div class="clear"><!-- --></div>
          
          <div id="Layout">
           $Layout
          </div>
          
        <div class="clear"><!-- --></div>
       </div>
       
       <div id="Footer">
          <% include Footer %>
       </div>
    </div>

    </body>
    </html>

    The conent is just text, and I'm having this problem on all page types.

    I didn't get this problem when I built the site originally on my pc using WAMP, it's just since I transferred it onto the web hosts server I'm getting this problem.

  • prawnstar
    Avatar
    Community Member
    116 Posts

    Re: content not saving Link to this post

    Hi Scorpiankh,

    It might be more helpful to post the layout code from one of your $Layout files that's not working.

    Chris.b

  • Scorpiankh
    Avatar
    Community Member
    60 Posts

    Re: content not saving Link to this post

    ok this is Page.ss from the Layout folder

    <div class="typography">
          <div id="Leftbar">
          
             <div id="ContactQuotes" class="artQuotes">
                <p>"<strong class="cap">I</strong>t's not what you look at that matters, it's what you see"<br />
                <br />
                -<strong class="cap">H</strong>enry <strong class="cap">D</strong>avid <strong class="cap">T</strong>horeau</p>
             </div>
             
          </div>
          
          <div id="Content">
          
          $Content
          
          </div>

    </div>

  • prawnstar
    Avatar
    Community Member
    116 Posts

    Re: content not saving Link to this post

    That looks about normal.

    What about your controller? Is there any custom code there?

    When you transferred your files might there be a permissions issue?

    Chris.b

    2199 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.