<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: pkContextCMS: a sneak preview for the worthy</title>
	<atom:link href="http://window.punkave.com/2009/03/11/pkcontextcms-a-sneak-preview-for-the-worthy/feed/" rel="self" type="application/rss+xml" />
	<link>http://window.punkave.com/2009/03/11/pkcontextcms-a-sneak-preview-for-the-worthy/</link>
	<description></description>
	<lastBuildDate>Wed,  8 Sep 2010 11:09:24 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: John</title>
		<link>http://window.punkave.com/2009/03/11/pkcontextcms-a-sneak-preview-for-the-worthy/comment-page-1/#comment-66467</link>
		<dc:creator>John</dc:creator>
		<pubDate>Wed, 13 May 2009 18:52:49 +0000</pubDate>
		<guid isPermaLink="false">http://window.punkave.com/?p=524#comment-66467</guid>
		<description>Just in case anyone else has trouble with saving settings for pages - try turning csrf off - worked for me.</description>
		<content:encoded><![CDATA[<p>Just in case anyone else has trouble with saving settings for pages &#8211; try turning csrf off &#8211; worked for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://window.punkave.com/2009/03/11/pkcontextcms-a-sneak-preview-for-the-worthy/comment-page-1/#comment-66291</link>
		<dc:creator>John</dc:creator>
		<pubDate>Mon, 30 Mar 2009 12:09:08 +0000</pubDate>
		<guid isPermaLink="false">http://window.punkave.com/?p=524#comment-66291</guid>
		<description>Hey Tom,

Just trying to setup cmstest and getting:

./symfony doctrine:data-load

Notice: Undefined variable: conn in /home/bwdev/playground/pkContextCMS/plugins/pkToolkitPlugin/lib/pkZendSearch.class.php on line 170

Fatal error: Call to a member function getTable() on a non-object in /home/bwdev/playground/pkContextCMS/plugins/pkToolkitPlugin/lib/pkZendSearch.class.php on line 170

And also on the web page I get -

Fatal error: Call to a member function setCulture() on a non-object in /home/bwdev/playground/pkContextCMS/plugins/pkContextCMSPlugin/lib/model/doctrine/PluginpkContextCMSPageTable.class.php on line 69

I like your new demo site generator, you clever sod :-)

John</description>
		<content:encoded><![CDATA[<p>Hey Tom,</p>
<p>Just trying to setup cmstest and getting:</p>
<p>./symfony doctrine:data-load</p>
<p>Notice: Undefined variable: conn in /home/bwdev/playground/pkContextCMS/plugins/pkToolkitPlugin/lib/pkZendSearch.class.php on line 170</p>
<p>Fatal error: Call to a member function getTable() on a non-object in /home/bwdev/playground/pkContextCMS/plugins/pkToolkitPlugin/lib/pkZendSearch.class.php on line 170</p>
<p>And also on the web page I get -</p>
<p>Fatal error: Call to a member function setCulture() on a non-object in /home/bwdev/playground/pkContextCMS/plugins/pkContextCMSPlugin/lib/model/doctrine/PluginpkContextCMSPageTable.class.php on line 69</p>
<p>I like your new demo site generator, you clever sod <img src='http://window.punkave.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>John</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://window.punkave.com/2009/03/11/pkcontextcms-a-sneak-preview-for-the-worthy/comment-page-1/#comment-66214</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Sun, 15 Mar 2009 22:06:54 +0000</pubDate>
		<guid isPermaLink="false">http://window.punkave.com/?p=524#comment-66214</guid>
		<description>Hi John,

Check out the cmstest project. That project uses the usual Symfony default routing rule, which lights up all of your modules at the URL /modulename/actionname, without conflicting with the CMS. As long as the pk_context_cms_page rule comes last and the CMS invokes that rule by name when it wants to make a link to a page (which it does), then there&#039;s no issue.

You could also do individual routing rules for individual actions and put them first to make swankier URLs for frequently seen front end actions.</description>
		<content:encoded><![CDATA[<p>Hi John,</p>
<p>Check out the cmstest project. That project uses the usual Symfony default routing rule, which lights up all of your modules at the URL /modulename/actionname, without conflicting with the CMS. As long as the pk_context_cms_page rule comes last and the CMS invokes that rule by name when it wants to make a link to a page (which it does), then there&#8217;s no issue.</p>
<p>You could also do individual routing rules for individual actions and put them first to make swankier URLs for frequently seen front end actions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://window.punkave.com/2009/03/11/pkcontextcms-a-sneak-preview-for-the-worthy/comment-page-1/#comment-66213</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sun, 15 Mar 2009 16:59:33 +0000</pubDate>
		<guid isPermaLink="false">http://window.punkave.com/?p=524#comment-66213</guid>
		<description>Hey Tom,

Plugin looks cool! Thanks loads for making it available.

One question . . .

How do you approach the integration of bespoke modules, like a news module for example? In terms of routing (without /cms ) and being able to put a bespoke module/action link in the menu and for clients to move it in the structure?

So you could have /my-cms-page and /news/list and for it to know where to route them and to be able to move them in the menu.

Hope that makes sense.

John</description>
		<content:encoded><![CDATA[<p>Hey Tom,</p>
<p>Plugin looks cool! Thanks loads for making it available.</p>
<p>One question . . .</p>
<p>How do you approach the integration of bespoke modules, like a news module for example? In terms of routing (without /cms ) and being able to put a bespoke module/action link in the menu and for clients to move it in the structure?</p>
<p>So you could have /my-cms-page and /news/list and for it to know where to route them and to be able to move them in the menu.</p>
<p>Hope that makes sense.</p>
<p>John</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://window.punkave.com/2009/03/11/pkcontextcms-a-sneak-preview-for-the-worthy/comment-page-1/#comment-66212</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Sun, 15 Mar 2009 16:04:14 +0000</pubDate>
		<guid isPermaLink="false">http://window.punkave.com/?p=524#comment-66212</guid>
		<description>I&#039;ve just released version 0.13 (and checked it in to svn of course) with further fixes to the routing rules to simplify matters. By using an explicit routing rule name rather than pkContextCMS/show in pkContextCMSTools::urlForPage() I&#039;m able to implement short URLs to CMS pages without conflicting with the default Symfony rules, which is very handy.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve just released version 0.13 (and checked it in to svn of course) with further fixes to the routing rules to simplify matters. By using an explicit routing rule name rather than pkContextCMS/show in pkContextCMSTools::urlForPage() I&#8217;m able to implement short URLs to CMS pages without conflicting with the default Symfony rules, which is very handy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://window.punkave.com/2009/03/11/pkcontextcms-a-sneak-preview-for-the-worthy/comment-page-1/#comment-66206</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Sat, 14 Mar 2009 14:29:11 +0000</pubDate>
		<guid isPermaLink="false">http://window.punkave.com/?p=524#comment-66206</guid>
		<description>I&#039;ve fixed this- do an svn update of your cmstest project and a symfony cc. I also released it as version 0.12. I opted to move the fancy &quot;override the root of the site&quot; routing rules to the cmstest project and documented the technique in the manual. The CMS plugin now defaults to the wimpier &quot;everything in the CMS is under /cms unless you change the rules to suit your needs&quot; approach. Most people won&#039;t want that but it&#039;s easy to override at the app level.

Thanks to Stephen for his analysis of the issue.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve fixed this- do an svn update of your cmstest project and a symfony cc. I also released it as version 0.12. I opted to move the fancy &#8220;override the root of the site&#8221; routing rules to the cmstest project and documented the technique in the manual. The CMS plugin now defaults to the wimpier &#8220;everything in the CMS is under /cms unless you change the rules to suit your needs&#8221; approach. Most people won&#8217;t want that but it&#8217;s easy to override at the app level.</p>
<p>Thanks to Stephen for his analysis of the issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Ostrow</title>
		<link>http://window.punkave.com/2009/03/11/pkcontextcms-a-sneak-preview-for-the-worthy/comment-page-1/#comment-66204</link>
		<dc:creator>Stephen Ostrow</dc:creator>
		<pubDate>Sat, 14 Mar 2009 01:19:29 +0000</pubDate>
		<guid isPermaLink="false">http://window.punkave.com/?p=524#comment-66204</guid>
		<description>Tom,
 And I guess beleneglorion if you want to get this thing going because it looks cool so far.

First 
/plugins/pkContextCMSPlugin/modules/pkContextCMS/templates/_login.php
Line 14 should read:

* Notice I&#039;m using the routing name instead. It&#039;s cleaner.

Second, the main problem with the routing is line 11 of
/plugins/pkContextCMSPlugin/lib/pkContextCMSRouting.php

You&#039;re making this a catch all basically is what&#039;s killing the other routing rules.  So You can prefix this with something or change it to
$r-&gt;appendRoute(&#039;pk_context_cms_show&#039;, 

and then remove the default_index route from /apps/frontend/config/routing.yml

I personally chose to go with the latter, but it means the whole site will have to go through the cms which is fine for me.</description>
		<content:encoded><![CDATA[<p>Tom,<br />
 And I guess beleneglorion if you want to get this thing going because it looks cool so far.</p>
<p>First<br />
/plugins/pkContextCMSPlugin/modules/pkContextCMS/templates/_login.php<br />
Line 14 should read:</p>
<p>* Notice I&#8217;m using the routing name instead. It&#8217;s cleaner.</p>
<p>Second, the main problem with the routing is line 11 of<br />
/plugins/pkContextCMSPlugin/lib/pkContextCMSRouting.php</p>
<p>You&#8217;re making this a catch all basically is what&#8217;s killing the other routing rules.  So You can prefix this with something or change it to<br />
$r-&gt;appendRoute(&#8216;pk_context_cms_show&#8217;, </p>
<p>and then remove the default_index route from /apps/frontend/config/routing.yml</p>
<p>I personally chose to go with the latter, but it means the whole site will have to go through the cms which is fine for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Ostrow</title>
		<link>http://window.punkave.com/2009/03/11/pkcontextcms-a-sneak-preview-for-the-worthy/comment-page-1/#comment-66203</link>
		<dc:creator>Stephen Ostrow</dc:creator>
		<pubDate>Sat, 14 Mar 2009 00:51:32 +0000</pubDate>
		<guid isPermaLink="false">http://window.punkave.com/?p=524#comment-66203</guid>
		<description>Tom,
  Figured I&#039;d let you know your routes are messed up.  Well the pkContext routes are messing with the sfGuard Routes.  So when you get to the login page, you&#039;re going to /cms/sfGuardAuth/ for some reason rather than to /login which is the correct route for @sf_guard_login.  But the form there is submitting to action /login which doesn&#039;t exist.  Same as /logout doesn&#039;t exist either.  When I commented out  your route registration I was able to login. Then I re-enabled it and I can use the system.</description>
		<content:encoded><![CDATA[<p>Tom,<br />
  Figured I&#8217;d let you know your routes are messed up.  Well the pkContext routes are messing with the sfGuard Routes.  So when you get to the login page, you&#8217;re going to /cms/sfGuardAuth/ for some reason rather than to /login which is the correct route for @sf_guard_login.  But the form there is submitting to action /login which doesn&#8217;t exist.  Same as /logout doesn&#8217;t exist either.  When I commented out  your route registration I was able to login. Then I re-enabled it and I can use the system.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Ostrow</title>
		<link>http://window.punkave.com/2009/03/11/pkcontextcms-a-sneak-preview-for-the-worthy/comment-page-1/#comment-66202</link>
		<dc:creator>Stephen Ostrow</dc:creator>
		<pubDate>Sat, 14 Mar 2009 00:31:26 +0000</pubDate>
		<guid isPermaLink="false">http://window.punkave.com/?p=524#comment-66202</guid>
		<description>Tom,
 I don&#039;t know if this is what beleneglorion meant.  But when I try to login with the default sfDoctrineGuardPlugin credentials I get redirected to a 404 page.  This is a clean checkout of the cmstest project.  Thanks for any help.</description>
		<content:encoded><![CDATA[<p>Tom,<br />
 I don&#8217;t know if this is what beleneglorion meant.  But when I try to login with the default sfDoctrineGuardPlugin credentials I get redirected to a 404 page.  This is a clean checkout of the cmstest project.  Thanks for any help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://window.punkave.com/2009/03/11/pkcontextcms-a-sneak-preview-for-the-worthy/comment-page-1/#comment-66201</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Fri, 13 Mar 2009 22:56:19 +0000</pubDate>
		<guid isPermaLink="false">http://window.punkave.com/?p=524#comment-66201</guid>
		<description>Hi beleneglorion,

You&#039;re looking at a default install of sfDoctrineGuardPlugin when you&#039;re looking at that admin screen. Log in as user admin password admin.

We&#039;ve set up a &lt;a href=&quot;https://punkave.fogbugz.com/default.asp?pg=pgEditBug&amp;command=new&quot; rel=&quot;nofollow&quot;&gt;publicly accessible place to submit trouble tickets etc&lt;/a&gt;. Of course comments here are welcome as well. To talk to me directly write to tom@punkave.com.

Cheers!</description>
		<content:encoded><![CDATA[<p>Hi beleneglorion,</p>
<p>You&#8217;re looking at a default install of sfDoctrineGuardPlugin when you&#8217;re looking at that admin screen. Log in as user admin password admin.</p>
<p>We&#8217;ve set up a <a href="https://punkave.fogbugz.com/default.asp?pg=pgEditBug&#038;command=new" rel="nofollow">publicly accessible place to submit trouble tickets etc</a>. Of course comments here are welcome as well. To talk to me directly write to <a href="mailto:tom@punkave.com">tom@punkave.com</a>.</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
