Author
|
Message
|
Luca Di Nubila
|
Tuesday 26 December 2006 3:10:35 pm
I.ve problem to create override for a specific class ..........the list in the selection box is empty........only "All classes" .............
The Section list is right ..... and for a specific Node .........ok but no for specific Clasees ........ It's only my problem .............or someone has the same problem ????? Thanks
|
Betsy Gamrat
|
Monday 01 January 2007 8:07:55 pm
Some permissions have been disabled for eZ 3.9. I would check that first. This is from the setup wizard:
The ability to edit classes and templates have been disabled in the Administration Interface in order to comply with the warranty in the eZ Publish Now service. To enable these features, remove the following configuration items from settings/override/site.ini.append.php:
[SiteAccessRules]
Rules[]
Rules[]=access;disable
Rules[]=module;class/edit
Rules[]=module;class/groupedit
Rules[]=module;class/copy
Rules[]=module;class/down
Rules[]=module;class/up
Rules[]=module;class/removeclass
Rules[]=module;class/removegroup
Rules[]=module;class/translation
Rules[]=module;visual/templateedit
Rules[]=module;visual/templatecreate
|
J-A Eberhard
|
Tuesday 02 January 2007 1:53:19 am
Hi, I have the same behavior despite having changed the siteaccessrule. Could other people check, or fill a bug? Thanks
Open Source Solution Provider
Open-Net Ltd Switzerland
http://www.open-net.ch
|
Marko Žmak
|
Thursday 04 January 2007 11:32:01 pm
Something similar happens to me too. I have upgraded my eZ to 3.9.0. In my settings/override/site.ini.append.php there is no [SiteAccessRules] section nor the settings that Betsy mentioned. When I try to make an override for a class in admin interface, I too get only "All classes". I think this is a bug...
--
Nothing is impossible. Not if you can imagine it!
Hubert Farnsworth
|
J-A Eberhard
|
Thursday 04 January 2007 11:50:48 pm
Filled as a bug! http://issues.ez.no/IssueView.php?Id=9949&activeItem=1
Open Source Solution Provider
Open-Net Ltd Switzerland
http://www.open-net.ch
|
Luca Di Nubila
|
Friday 05 January 2007 9:40:07 am
In my .ini file there aren't "Rules" ........ I deleted them from .ini after installation ........... In admin panel the list of "classes" ( for "create new classes here") is right ...... i don't know why in "create override" doesn't work Temporary Solution : Create new override (for all classes) and edit file override.ini.append.php in settings/siteaccess/"your siteaccess"/ FROM:
[test_template]
Source=node/view/full.tpl
MatchFile=test_template.tpl
Subdir=templates Match[] TO:
[test_template]
Source=node/view/full.tpl
MatchFile=test_template.tpl
Subdir=templates Match[class_identifier]=test_class where the difference is to add "[class_identifier]=test_class" ("test_class" is the name of the class i Want to override)
|
Claudia Kosny
|
Friday 05 January 2007 12:55:46 pm
Hi there The problem is caused by a missing space in a query that is used for fetching the classnames. Just add a a space at the beginning of the string in this line (line number around 555) in file kernel/classes/ezcontentobject.php
$filterSQL .= "AND\n cc.id=" . $classNameFilter['from'] . ".contentclass_id";
so it looks like this:
$filterSQL .= " AND\n cc.id=" . $classNameFilter['from'] . ".contentclass_id";
Empty the cache, clear the session(!), and try again, it should work now (at least it did for me). EDIT: The correct file is kernel/classes/ezcontentclass.php /EDIT Claudia
|
Luca Di Nubila
|
Friday 05 January 2007 1:58:40 pm
it doesn't work........... i think we have different file ezcontentobject.php i didn't find your code in my file ......... or better.......i found it but not with the same strings
$filterSQL = ( " AND\n" .
" cc.id = ccg.contentclass_id AND\n" .
" ccg.group_id " );
|
Claudia Kosny
|
Friday 05 January 2007 3:30:30 pm
Hi Luca Unfortunately I posted the wrong filename, the line is in kernel/classes/ezcontentclass.php Claudia
|
Luca Di Nubila
|
Saturday 06 January 2007 12:06:47 am
Yeah Now It.s all right................. Thanks
|
Andreas Kaiser
|
Monday 08 January 2007 3:47:32 pm
Yust a stupid question anyone knows if this change in "kernel/classes/ezcontentclass.php" will be changed in the ez publish next releases or would it be good to create a bug report?
eZ Partner in Madrid (Spain)
Web: http://www.atela.net/
|
Kristof Coomans
|
Monday 08 January 2007 11:14:09 pm
Hi Andreas It has been reported as a bug and it was fixed: http://issues.ez.no/IssueView.php?Id=9949
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org
|
kracker (the)
|
Monday 08 January 2007 11:53:43 pm
Well, it has a comment or two and the status was changed to 'fixed'.
Yet no commit numbers / fixed in which branch information was posted in the comments ... Which is usually provided if it's been fixed by eZ systems. I'm sure it's fixed but where is not documented in that issue, atm. //kracker
Member since: 2001.07.13 || http://ezpedia.se7enx.com/
|
Kristof Coomans
|
Friday 12 January 2007 10:32:06 pm
Apparently it was closed by the bug reporter because he fixed the issue on his local installation. However, it wasn't fixed in svn. But now it is ;-)
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org
|
Betsy Gamrat
|
Wednesday 17 January 2007 4:31:33 pm
Thank you for the fix, and the posts. :)
|