<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Page comments</title>
		<link>http://www.ssbits.com/home/</link>
		<atom:link href="http://www.ssbits.com/home/" rel="self" type="application/rss+xml" />
		<description></description>

		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2010/2-4-working-with-siteconfig/#PageComment_1871</link>
			<description>Hi Aram,
I recently returned to a site I hadn't touched in a few months and it seems I can no longer save the site config area. I can make changes to the fields but when I click save the save icon just keeps spinning. Firebug gives me &quot;NetworkError: 404 Not Found - http://www.mysite.ie/admin/RootForm&quot;
Any thoughts on this or why it's happening now? I can edit and save the rest of the site.</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2010/2-4-working-with-siteconfig/#PageComment_1871</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2010/2-4-working-with-siteconfig/#PageComment_1858</link>
			<description>mhm i tried a bit more and found out that 

        $manager-&gt;setParentClass(&quot;SiteConfig&quot;);
        $manager-&gt;setSourceID($this-&gt;owner-&gt;ID);

is necessary, now i can retrieve the items in the control loop :D</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2010/2-4-working-with-siteconfig/#PageComment_1858</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2010/2-4-working-with-siteconfig/#PageComment_1857</link>
			<description>i dont get any error msg, neither any result :(</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2010/2-4-working-with-siteconfig/#PageComment_1857</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2010/2-4-working-with-siteconfig/#PageComment_1856</link>
			<description>Hey Aram,

I've successfully integrated the DOM in the SiteConfig. My Problem is that I cant loop through the items in the templates. All my entries in the SiteConfig are saved, if I can trust that CMS message :).

Here is my CustomSiteConfig.php
=====================================================
class CustomSiteConfig extends DataObjectDecorator {

    function extraStatics() {
        return array(
            'db' =&gt; array(
             ),
            'has_one' =&gt; array(
            ),
            'has_many' =&gt; array(
                'PromoItems' =&gt; 'GlobalPromoItem',
                'InfoItems' =&gt; 'GlobalInfoItem'
            )
        );
    }

    public function updateCMSFields(FieldSet &amp;$fields) {

        $fields-&gt;findOrMakeTab(&quot;Root.GlobalContent&quot;, &quot;Globale Contents&quot;);

        $fields-&gt;addFieldToTab(
            'Root.GlobalContent',
            $globalInfoItems = new ToggleCompositeField (&quot;globalInfoItems&quot;,&quot;Infoboxes&quot;,
                new Fieldset(
                    $manager = new DataObjectManager(
                        SiteConfig::current_site_config(),
                        'InfoItems',
                        'GlobalInfoItem',
                        GlobalInfoItem::$summary_fields,
                        'getCMSFields_forPopup'
                    )
                )
            )
        );
        $globalInfoItems-&gt;startClosed(true);
        $manager-&gt;setAddTitle(&quot;Infobox&quot;);
        $manager-&gt;setSingleTitle(&quot;Infobox&quot;);
    }

}


THIS IS MY DATAOBJECT:
&lt;?php
class GlobalInfoItem extends DataObject
{
	static $db = array (
            'Headline' =&gt; 'Text',
            'Description' =&gt; 'Text',
            'Title' =&gt; 'Text',
            'UrlParam' =&gt; 'Text'
	);

	static $has_one = array (
            'Pic' =&gt; 'Image',
            'SiteConfig' =&gt; 'SiteConfig'
	);

        static $summary_fields = array(
              'Headline' =&gt; 'Title',
              'Description' =&gt; 'Description',
              'UrlParam' =&gt; 'URL',
              'Pic.Url' =&gt; 'Image'
        );

	public function getCMSFields_forPopup()
	{
		return new FieldSet(
			new TextField('Headline', 'Überschrift'),
                        new TextField('Description', 'Title'),
                        new TextField('Title', 'Description'),
                        new TextField('UrlParam', 'URL'),
                        new ImageField('Pic', 'Image')
		);
	}
}

THIS IS IN MY TEMPLATE:
&lt;% control SiteConfig.InfoItems %&gt;
    TESTOUTPUT
&lt;% end_control %&gt;

Also tested:

&lt;% control SiteConfig %&gt;
	&lt;% control InfoItems %&gt;
    TESTOUTPUT
	&lt;% end_control %&gt;
&lt;% end_control %&gt;

but without any success! Maybe and hopefully you guys have an idea where the problem is, thanks for any help in advance.</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2010/2-4-working-with-siteconfig/#PageComment_1856</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2010/2-4-working-with-siteconfig/#PageComment_1232</link>
			<description>Thanks a lot Aram, it's works perfectly !
:)</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2010/2-4-working-with-siteconfig/#PageComment_1232</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2010/2-4-working-with-siteconfig/#PageComment_1230</link>
			<description>Hi Had,

try this:

		$fields-&gt;fieldByName('Root')-&gt;push(
			new TabSet('Content')
		);

That should give you a new tabset on the root, which you can then add sub tabs to using addFieldToTab().

Aram</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2010/2-4-working-with-siteconfig/#PageComment_1230</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2010/2-4-working-with-siteconfig/#PageComment_1229</link>
			<description>Hi Aram,
Thanks for this great tutorial, as ever...
I've some troubles to have some nested tabs within the $fields parameters.
How could I do somethings like this : 
&lt;code&gt;
   $fields-&gt;addFieldToTab(&quot;Root.News&quot; , 
                          new TextField(&quot;NewsTitle&quot;));
 
   $fields-&gt;addFieldToTab(&quot;Root.News.Image&quot; , 
                          new ImageField(&quot;NewsImage&quot;));
&lt;/code&gt;

I've tried to add a TabSet like that : 
&lt;code&gt;
    $fields-&gt;addFieldToTab(&quot;Root.News&quot;, 
                           new TabSet(&quot;Image&quot;));
&lt;/code&gt;
But it faill. I also try to add a TabSet on the Root directly, with no success.

Thanks for your help,
Hadrien (CH)</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2010/2-4-working-with-siteconfig/#PageComment_1229</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2010/2-4-working-with-siteconfig/#PageComment_833</link>
			<description>ah yes... 'Manage Site Configuration' Thank you so much :)</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2010/2-4-working-with-siteconfig/#PageComment_833</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2010/2-4-working-with-siteconfig/#PageComment_832</link>
			<description>Hi ilovemoon,

There should be a permission in Security 'Edit Site Config' which will allow other groups to edit it :)

Aram</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2010/2-4-working-with-siteconfig/#PageComment_832</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2010/2-4-working-with-siteconfig/#PageComment_831</link>
			<description>Hi Aram,
I was using the CustomSiteConfig to control content in the footer. 

When I went to test the cms as a 'content author' the footer content was editable but not saveable. 
There was no save button. 

Is the CustomSiteConfig only editable by administrators or is there something i can do to allow the content authors to edit also?

Thanks, and thanks for ssbits too, it's been a great help :)</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2010/2-4-working-with-siteconfig/#PageComment_831</guid>
		</item>
		

	</channel>
</rss>