Recent Posts of Frog CMS in add keywords and description fields to the metadata tab of the page editor http://forum.madebyfrog.com/rss en-us 25 add keywords and description fields to the metadata tab of the page editor <p>Yes, it was the missing endif. Thanks for the sharp eyes David!</p> <p>Here's the code that works, for others who might be interested in using the page slug: &lt;?php if ($this-&gt;slug() != '') { echo $this-&gt;slug(); } endif; ?&gt;</p> Thu, 03 Jul 2008 17:26:22 +0000 http://forum.madebyfrog.com/topic/128?page=1#post_1781 redcrew http://forum.madebyfrog.com/topic/128?page=1#post_1781 add keywords and description fields to the metadata tab of the page editor <p>Maybe the problem was a missing <code>endif</code>? But check your email! :)</p> Wed, 02 Jul 2008 04:11:18 +0000 http://forum.madebyfrog.com/topic/128?page=1#post_1759 David http://forum.madebyfrog.com/topic/128?page=1#post_1759 add keywords and description fields to the metadata tab of the page editor <p>Yikes! I entered the wrong code. What I meant to write above for the code segment was:</p> <pre><code>&lt;?php if ($this-&gt;slug() != '') { echo $this-&gt;slug(); } ?&gt; </code></pre> Tue, 01 Jul 2008 22:39:40 +0000 http://forum.madebyfrog.com/topic/128?page=1#post_1757 redcrew http://forum.madebyfrog.com/topic/128?page=1#post_1757 add keywords and description fields to the metadata tab of the page editor <p>I guess this-&gt;slug doesn't work to get the page slug. I tried using &lt;?php if ($this-&gt;description() != '') { echo $this-&gt;description(); }</p> <p>and received the following error message:</p> <p>Parse error: syntax error, unexpected '&amp;' in mypath/frog/app/frontend/classes/Page.php(174) : eval()'d code on line 40$this-&gt;slug()</p> Tue, 01 Jul 2008 22:36:08 +0000 http://forum.madebyfrog.com/topic/128?page=1#post_1756 redcrew http://forum.madebyfrog.com/topic/128?page=1#post_1756 add keywords and description fields to the metadata tab of the page editor <p>How do I get the slug for a page? Will $this-&gt;slug() work?</p> Tue, 01 Jul 2008 22:11:09 +0000 http://forum.madebyfrog.com/topic/128?page=1#post_1755 redcrew http://forum.madebyfrog.com/topic/128?page=1#post_1755 add keywords and description fields to the metadata tab of the page editor <p>Yes! Thank you, Philippe.</p> Mon, 23 Jun 2008 15:09:35 +0000 http://forum.madebyfrog.com/topic/128?page=1#post_1686 David http://forum.madebyfrog.com/topic/128?page=1#post_1686 add keywords and description fields to the metadata tab of the page editor <p>fixed: <code>$this-&gt;description()</code> and <code>$this-&gt;keywords()</code> should work now with the last svn revision</p> Mon, 23 Jun 2008 15:00:29 +0000 http://forum.madebyfrog.com/topic/128?page=1#post_1683 philippe http://forum.madebyfrog.com/topic/128?page=1#post_1683 add keywords and description fields to the metadata tab of the page editor <p>Right, I'm back and this isn't in SVN. BUT -- you can grab the new, hacked file, and get the instructions for using "per-page" metadata <a href="http://erajad.byethost10.com/articles/2008/06/20/per-page-metadata">at my TestFrog site</a>. I can't link the file to download from here, so you would have to pay a visit to that page, anyway!</p> <p>If it works OK, I'll check in with Philippe and see about getting this added to SVN.</p> Fri, 20 Jun 2008 17:16:21 +0000 http://forum.madebyfrog.com/topic/128?page=1#post_1672 David http://forum.madebyfrog.com/topic/128?page=1#post_1672 add keywords and description fields to the metadata tab of the page editor <p>P.s. I'm away for a few days -- will see about getting this committed to SVN on my return. Byeee!</p> Wed, 18 Jun 2008 04:44:29 +0000 http://forum.madebyfrog.com/topic/128?page=1#post_1667 David http://forum.madebyfrog.com/topic/128?page=1#post_1667 add keywords and description fields to the metadata tab of the page editor <p>Actually, I just "hacked" my <code>frog/app/frontend/classes/page.php</code> and it works a treat! :) Looks like I learned something!</p> Wed, 18 Jun 2008 03:48:43 +0000 http://forum.madebyfrog.com/topic/128?page=1#post_1666 David http://forum.madebyfrog.com/topic/128?page=1#post_1666 add keywords and description fields to the metadata tab of the page editor <p>It is already implemented in 0.9.3 - when you are editing a page, the tab beside the <code>Page Title</code> tab is called <code>Metadata</code>. You click on that, and you get:</p> <ul> <li>Slug</li> <li>Breadcrumb</li> <li>Keywords</li> <li>Description</li> <li>Tags</li> <li>Created and Published dates</li> </ul> <p>The first two don't normally need changing, but the next two are the ones we want!</p> <p>What I am NOT sure about, is how to call them in the frontend. Neither <code>$this-&gt;description</code> nor <code>$this-&gt;$description()</code> or any variants seem to work. I don't think there is a function set up in <code>frog/app/frontend/classes/page.php</code>, and I don't know how to go about it....</p> <p>Philippe...?? ;)</p> Wed, 18 Jun 2008 03:37:28 +0000 http://forum.madebyfrog.com/topic/128?page=1#post_1665 David http://forum.madebyfrog.com/topic/128?page=1#post_1665 add keywords and description fields to the metadata tab of the page editor <p>Have you had a chanced to look at this Bdesign? I was thinking it might actually work better as a plugin...</p> Wed, 18 Jun 2008 02:32:39 +0000 http://forum.madebyfrog.com/topic/128?page=1#post_1664 pagan http://forum.madebyfrog.com/topic/128?page=1#post_1664 add keywords and description fields to the metadata tab of the page editor <p>I'll try to do a little tweak, to see if I can add them to the meta content tab.</p> Fri, 06 Jun 2008 03:13:50 +0000 http://forum.madebyfrog.com/topic/128?page=1#post_1486 Bdesign http://forum.madebyfrog.com/topic/128?page=1#post_1486 add keywords and description fields to the metadata tab of the page editor <p>Is there a possibility of this function being added to frog in the future? I certainly agree that it would be a useful one.</p> Thu, 05 Jun 2008 20:52:00 +0000 http://forum.madebyfrog.com/topic/128?page=1#post_1485 pagan http://forum.madebyfrog.com/topic/128?page=1#post_1485 add keywords and description fields to the metadata tab of the page editor <p>I agree a description field would be nice. (It could appear underneath the page name in the admin UI, in a smaller font?)</p> <p>As for the keywords, I've been using the Tags feature for that...</p> Sat, 22 Dec 2007 21:47:07 +0000 http://forum.madebyfrog.com/topic/128?page=1#post_628 lewellyn http://forum.madebyfrog.com/topic/128?page=1#post_628 add keywords and description fields to the metadata tab of the page editor <p>It would be great to be able to add page specific keyword and description fields to the metadata tab! I realize this could be done by using a page section; however, it is legitimate metadata and adding it to the approrpiate tab would be more user friendly.</p> Tue, 18 Dec 2007 16:15:23 +0000 http://forum.madebyfrog.com/topic/128?page=1#post_618 colinscroggins http://forum.madebyfrog.com/topic/128?page=1#post_618