Recent Posts of Frog CMS in How to create pages programmatically? http://forum.madebyfrog.com/rss en-us 25 How to create pages programmatically? <p>darn! alright I guess I&#8217;ll have to use the evil google issue tracker&#8230;</p> Sat, 18 Oct 2008 16:06:16 +0000 http://forum.madebyfrog.com/topic/433?page=1#post_3868 ricks http://forum.madebyfrog.com/topic/433?page=1#post_3868 How to create pages programmatically? <p>Nope&#8230; there wasn&#8217;t an issue/feature request recorded for this in the <a href="http://code.google.com/p/madebyfrogs/issues/list" rel="nofollow">issue tracking</a> system so I kind of forgot about this. (hint.. hint..)</p> <p>;-)</p> Sat, 18 Oct 2008 04:34:29 +0000 http://forum.madebyfrog.com/topic/433?page=1#post_3854 mvdkleijn http://forum.madebyfrog.com/topic/433?page=1#post_3854 How to create pages programmatically? <blockquote> <p>I&#8217;m not sure it is wise to use Frog internal code to do that. Any method you see which is prefixed with an underscore (_) should be considered off-limits since it is a private method and might change in future Frog versions. &#8230;we might be able &#8230;to add a method to the Plugin <span class="caps">API</span> to provide the functionality you need.</p> </blockquote> <p>Is this in 0.9.4 by any chance?</p> Fri, 17 Oct 2008 22:02:50 +0000 http://forum.madebyfrog.com/topic/433?page=1#post_3836 ricks http://forum.madebyfrog.com/topic/433?page=1#post_3836 How to create pages programmatically? <p>@mvdkleijn, Thanks for your advice. I think what I want to do is similar to the way that Article pages are currently archived, so that's probably the way to go. I'll take a look at the way it's designed.</p> <p>Instead of discussing pagination here, I think we should open another thread on that.</p> Sat, 16 Aug 2008 16:44:20 +0000 http://forum.madebyfrog.com/topic/433?page=1#post_2520 ricks http://forum.madebyfrog.com/topic/433?page=1#post_2520 How to create pages programmatically? <p>@ricks &#8211; <strong>with regard to option 1, is it any different than the blog posts?</strong></p> <p>Actually, the blog/archive posts are using a system more similar to option 2. The main difference between your plugin and the Archive plugin is that your plugin (correct me if I&#8217;m wrong) displays a single page which automatically(?) changes its contents every day. You then automatically store that days content in an archive somehow.</p> <p>The Archive plugin actually is just a collection of normal &#8220;static&#8221; posts and a method of displaying a sorted list of those posts based on creation date.</p> <p>@David &#8211; I agree we&#8217;ll have to figure out a method of dealing with large number of pages in the admin section of Frog. I created <a href="http://code.google.com/p/madebyfrogs/issues/detail?id=31" rel="nofollow">this issue</a> for the problem&#8230;</p> <p>Though it&#8217;s not one we&#8217;ll solve easily I think. Do we have any large 2000+ pages sites available to get performance data from?</p> Sat, 16 Aug 2008 10:23:31 +0000 http://forum.madebyfrog.com/topic/433?page=1#post_2514 mvdkleijn http://forum.madebyfrog.com/topic/433?page=1#post_2514 How to create pages programmatically? <p>@ricks - deep in the recesses of my "mind" there was a memory that this came up once before. I managed to find <a href="http://forum.madebyfrog.com/forum/topic/142">this thread</a> on "paging in the admin". I think that's the only place it has come up before. Something worth thinking about?</p> Sat, 16 Aug 2008 04:30:52 +0000 http://forum.madebyfrog.com/topic/433?page=1#post_2503 David http://forum.madebyfrog.com/topic/433?page=1#post_2503 How to create pages programmatically? <p>mvdkleijn, thanks for your post. with regard to option 1, is it any different than the blog posts? i havne't used the blogging feature of frog, but if you wrote a post every day wouldn't that also create a large number of pages to manage. what is frog's way of dealing with this? is there any sort of pagination?</p> Fri, 15 Aug 2008 19:48:12 +0000 http://forum.madebyfrog.com/topic/433?page=1#post_2498 ricks http://forum.madebyfrog.com/topic/433?page=1#post_2498 How to create pages programmatically? <p>So you have a page with dynamic content which changes daily (couple of rss feed for example), and each day you want to save that day's content so people can refer to it later for example....</p> <p>My guess is you could go one of three ways with this:</p> <ol> <li>You could dynamically create a page in Frog. This method would have a couple of side effects: the pages tab would quickly fill up with your archive pages / content editors might lose track of the overview</li> <li>You could use a custom database table for your plugin and store the archived content in there. Then your plugin could provide multiple methods of accessing that content and dynamically create the archived page when a user wants it.</li> <li>You could store archived data on disk somewhere and dynamically access it to create an archive page when people need it.</li> </ol> <p>Option 1 would require the least amount of work I guess since it would probably be a "simple" copy-paste of content kind of action. Downside would be the number of pages it creates and a possible lack in overview for content editors.</p> <p>Option 2 is more similar to the current "Archive" plugin's behaviour and thus more in line with Frog's "style" if we have any. ;-) Anyway, this would also give you the most flexibility with regards to accessing the data in custom ways. Here the downside is that it would require more work to do properly and the database might grow very quickly in size.</p> <p>Option 3 is the least desirable in my humble opinion since it would require having disk access, would require you to write and read files to disk, have the appropriate permissions, etc. etc.</p> <p>My advice? Use option 2....</p> <p>If you really don't want to do that, I guess we can put a createPage method (and related methods) in the Plugin API. I think that probably wouldn't be a bad idea anyway. I'll discuss that with the guys to see if they like it.</p> Fri, 15 Aug 2008 12:15:33 +0000 http://forum.madebyfrog.com/topic/433?page=1#post_2487 mvdkleijn http://forum.madebyfrog.com/topic/433?page=1#post_2487 How to create pages programmatically? <p>hi mvdkleijn, i have a dynamic mashup page and i want to do snapshots of it once a day so i can have an archive of how it looked on any given day. so i just want to automate and cron the procedure of creating the archive pages. thanks for any advice!</p> Fri, 15 Aug 2008 06:37:57 +0000 http://forum.madebyfrog.com/topic/433?page=1#post_2473 ricks http://forum.madebyfrog.com/topic/433?page=1#post_2473 How to create pages programmatically? <p>I'm not sure it is wise to use Frog internal code to do that. Any method you see which is prefixed with an underscore (_) should be considered off-limits since it is a private method and might change in future Frog versions.</p> <p>If you explain why you're trying to add a page programmatically, we might be able to point you in the correct direction or simply add a method to the Plugin API to provide the functionality you need.</p> Fri, 15 Aug 2008 04:55:38 +0000 http://forum.madebyfrog.com/topic/433?page=1#post_2467 mvdkleijn http://forum.madebyfrog.com/topic/433?page=1#post_2467 How to create pages programmatically? <p>thanks gido, i'll check it out!</p> Fri, 15 Aug 2008 04:21:17 +0000 http://forum.madebyfrog.com/topic/433?page=1#post_2457 ricks http://forum.madebyfrog.com/topic/433?page=1#post_2457 How to create pages programmatically? <p>Hi, See the Page model (in <code>/frog/app/backend/models/Page.php</code>) and how the PageController (<code>/frog/app/backend/controllers/PageController.php</code>) use it (particulary the <code>_add</code> method if you want to create a new page).</p> Fri, 15 Aug 2008 04:12:12 +0000 http://forum.madebyfrog.com/topic/433?page=1#post_2456 gido http://forum.madebyfrog.com/topic/433?page=1#post_2456 How to create pages programmatically? <p>Has anybody done this? I'm talking about creating pages without using the GUI. I need something like an API...</p> Thu, 14 Aug 2008 22:09:09 +0000 http://forum.madebyfrog.com/topic/433?page=1#post_2453 ricks http://forum.madebyfrog.com/topic/433?page=1#post_2453