I downloaded and installed the SilverStripe 2.4-alpha1 release. I'm
impressed. You all did a great job, so many new features!
I just discovered that the "Site Content" in the Site-Tree now also has
editable content (defined in SiteConfig class). That's really neat,
since SilverStripe was lacking some sort of "global values" (until now I
always used a special HomePage class for this kind of things).
I hope this class can be overridden, extended for custom needs? I didn't
found any documentation on this, so my questions are:
- How can I create a custom SiteConfig?
- Sam (Minnee) was talking about restructuring the developer
documentation: Is this already part of the 2.4-alpha1 release?
Maybe we can turn this into a discussion thread regarding 2.4 alpha and
new features?
Kudos to the SilverStripe team. You did a great job once more.
Best - Roman (aka banal)
To anyone using blog and dataobject_manager, there are some API changes to accommodate via global search/replace:
Renamed Database class to SS_Database.
Renamed Director::currentPage() to Director::get_current_page()
Moved alteration_message() from Database to DB class
This is what I found after just a few minutes copying our company website over to a MAMP-based 2.4.0-alpha1 instance.
Who said Microsoft never created a bug-free program? The blue screen
never, ever crashes!
Cheers,
Sig
> Does anyone have any performance comparisons of MSSQL vs MySQL? With
> things like WinCache and other PHP improvements in IIS - I am
> beginning to wonder if Windows will become a better platform for
> SilverStripe?
Volunteering? :)
Cheers,
Sig
It saves to the database correctly when first changed, but then saves
incorrectly as null if one reloads the page in the admin interface and
then saves and publishes again. The problem is that the DropdownField
selected value is incorrectly set to "Auto-set based on page depth" (0
or null) when generating the Google Sitemap tab, so reloading and
saving the page changes this value without user intervention.
I *fixed* this when I noticed the code in the function getPriority()
returns 0 when it reads a -1 from the database. When I removed this
conditional and let it return a -1, it behaves correctly and the value
of the dropdown is set to what is stored in the db and hence does not
change without user intervention.
I am unsure however, if this 'bug' was intentional, and by fixing this
problem I may have broken something else that counted on that
conditional returning 0 when the db expects -1. Does that conditional
serve some other purpose? If not, I suggest committing this to the
svn tree.
--tim
in GoogleSitemapDecorator.php
function getPriority() {
if(!$this->owner->getField('Priority')) {
$parentStack = $this->owner->parentStack();
$numParents = is_array($parentStack) ? count($parentStack) - 1: 0;
return max(0.1, 1.0 - ($numParents / 10));
} elseif($this->owner->getField('Priority') == -1) {
return 0;
} else {
return $this->owner->getField('Priority');
}
}
was changed to
function getPriority() {
if(!$this->owner->getField('Priority')) {
$parentStack = $this->owner->parentStack();
$numParents = is_array($parentStack) ? count($parentStack) - 1: 0;
return max(0.1, 1.0 - ($numParents / 10));
} else {
return $this->owner->getField('Priority');
Thanks for looking into this - its best to file this a ticket
on open.silverstripe.org (make sure to set the correct
component for the googlesitemaps module).
Cheers
Ingo
> --
>
> You received this message because you are subscribed to the Google Groups "SilverStripe Development" group.
> To post to this group, send email to silverst...@googlegroups.com.
> To unsubscribe from this group, send email to silverstripe-d...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/silverstripe-dev?hl=en.
>
>
>
-------
Ingo Schommer | Senior Developer
SilverStripe
http://silverstripe.com
Phone: +64 4 978 7330 ext 42
Skype: chillu23
Hopefully this is the right place to post this request. I've just
downloaded 2.4-alpha from:http://silverstripe.org/silverstripe-2-4-
alpha-release-brings-hierachical-urls-sql-server-support-and-much-
more/
Running /install.php and putting in the normal options delivers this
message:
=================================================
Installing SilverStripe...
I am now running through the installation steps (this should take
about 30 seconds)
If you receive a fatal error, refresh this page to continue the
installation
Warning: unlink(mysite/_config.php) [function.unlink]: Permission
denied in /var/www/dev01/install.php on line 650
# Creating 'mysite/_config.php'...
# Creating /var/www/dev01/mysite/_config.php
# Creating '.htaccess' file...
# Creating /var/www/dev01/.htaccess
Notice: Undefined index: GoogleSitemapDecorator in /var/www/dev01/
sapphire/core/ManifestBuilder.php on line 421
Warning: There are two files both containing the same class: '/var/www/
dev01/googlesitemaps/code/GoogleSitemap.php' and ''. This might mean
that the wrong code is being used. in /var/www/dev01/sapphire/core/
ManifestBuilder.php on line 423
# Building database schema...
Fatal error: Class 'SS_Database' not found in /var/www/dev01/sapphire/
core/model/MySQLDatabase.php on line 10
=================================================
I've had a search on the SS forums and in this discussion group but
can't find any reference to these errors. I also had a look for the
latest build of 2.4 alpha but wasn't sure where to find it. I would of
thought that others would have run into the same problem. The system
is CentOS, Apache, MySQL, PHP5 - database is on a separate server to
web.
Any suggestions much appreciated.
Cheers
Tama
Trying to go to /admin/ generates this error though:
Fatal error: Class 'DOMDocument' not found in /var/www/dev01/sapphire/
integration/HTMLValue.php on line 20
Will have a dig around - getting there!
Tama
DOMDocument is a PHP built-in class. Which version of PHP are you
running on?
I'm running 5.2.11 - just a bog standard CentOS build. I added libxml2-
devel (yum install libxml2-devel) and restarted httpd but that didn't
help.
Ah ha! I've just pulled up good ole phpinfo and noted "--disable-dom"
in the Configure Command, I'm guessing that's not helping? Will try
and enable and see what happens.
Cheers
Tama
yum install php-xml
service httpd restart
Which is really good, I was worried I'd have to rebuild PHP