Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

content not saving


Go to End


15 Posts   4482 Views

Avatar
Scorpiankh

Community Member, 63 Posts

22 July 2010 at 4:12pm

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.

Avatar
Scorpiankh

Community Member, 63 Posts

22 July 2010 at 5:40pm

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

Avatar
Scorpiankh

Community Member, 63 Posts

26 July 2010 at 8:27am

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

Avatar
Willr

Forum Moderator, 5523 Posts

26 July 2010 at 11:35am

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.

Avatar
Scorpiankh

Community Member, 63 Posts

26 July 2010 at 12:08pm

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" xml: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.

Avatar
digibrains

Community Member, 130 Posts

26 July 2010 at 12:29pm

Hi Scorpiankh,

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

Chris.b

Avatar
Scorpiankh

Community Member, 63 Posts

26 July 2010 at 1:11pm

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>

Avatar
digibrains

Community Member, 130 Posts

26 July 2010 at 1:37pm

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

Go to Top