Welcome Guest, Not a member yet? Register   Sign In
CRUD - Rapyd vs CodeCrafter?
#7

[eluser]charlieD[/eluser]
By key/value pairs I mean that in building most webpages on my client's sites, the pages are built up of many different parts rather than just having a block of free HTML (i.e. the CMS 'article' concept).

For example, I'd have a page with a strict template and maybe a few things that clients would want to edit:

KEY => VALUE
main image => '/images/something.jpg'
product => 'Product 1'
product => 'Product 2'
product => 'Product 3'

So, the client would fill out a form that allows them to edit the value for 'main image' then allows them to add new elements to 'product' (as many or as little as they want).

In the code, I could then have something like:

Code:
<img src="&lt;?php echo $mainImage; ?&gt;" />

<ol>
  &lt;?php foreach ($products as $p) : ?&gt;
    <li>&lt;?php echo $p; ?&gt;</li>
  &lt;?php endforeach; ?&gt;
</ol>

I don't know if any of this makes sense, but the closest thing I've found so far in what I'm looking for is the 'custom fields' in Wordpress that let you use them for almost anything to customise templates or functionality.


Messages In This Thread
CRUD - Rapyd vs CodeCrafter? - by El Forum - 10-13-2007, 08:41 AM
CRUD - Rapyd vs CodeCrafter? - by El Forum - 10-13-2007, 09:07 AM
CRUD - Rapyd vs CodeCrafter? - by El Forum - 10-13-2007, 10:08 AM
CRUD - Rapyd vs CodeCrafter? - by El Forum - 10-13-2007, 11:53 AM
CRUD - Rapyd vs CodeCrafter? - by El Forum - 10-15-2007, 07:00 AM
CRUD - Rapyd vs CodeCrafter? - by El Forum - 10-15-2007, 11:02 AM
CRUD - Rapyd vs CodeCrafter? - by El Forum - 10-15-2007, 11:14 AM
CRUD - Rapyd vs CodeCrafter? - by El Forum - 10-15-2007, 11:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB