Ok, so I have this idea that would allow front end developers making say portfolio pages for clients to provide clients with a basic CMS system.
Basically the idea is that the system comes with a front-end design, and a config file for the front end developers. The front-end design would have templates for say images, text boxes, portfolio items, etc.
It would replace things or add things to the site using PHP variables.
Here is what the systems functions would be
Text replacement
How it works: the front-end developer would add a text replacement to the config file.
The format would be something like this:
This would add a text field to the admin panel that would be labeled Text Replacement One and would put the text that would go where-ever the variable is set.
This could be used for image urls (echo "<img src="$textOne" />; ) or just plain text (echo "<p>$textOne</p>"; )
Content additions:
These would be a bit more complex.
The config would look a bit like this
ContentAddition:
This would add the code to the html document wherever the variable is placed.
The HTML code, would only be editable in the config file. However the number of loops would be put in the admin panel for the client to edit.
This is why we need categories.
Categories:
This would be used to group things in the admin panel together.
Config example:
This particular function wouldn't do anything on the front end. However, on the admin template it would add a category.
Why would this be useful?
Say your making a carousel.
To make this customizable, you need multiple variables to work together.
This feature would add a Header Text saying "Category Name", and then have the variables in that category listed below. Now you have a category named "Carousel", and in it you have the variables Image, Name, and Description. This makes it easy for clients to added carousel items to their websites!
The only flaw I know of in the above description, is how to make the variables work for each number of loops in content additions. The way its written above would loop the variables as well, causing repeated of the same content, vs different images and text as would be needed. A possible solution would be to loop the variables appearance in the admin panel to allow for multiple different images/titles/text per loop of the code.
Thoughs, suggestions below please! Thank you!
VERY POORLY DESIGNED ADMIN PANEL EXAMPLE (For reference)
Basically the idea is that the system comes with a front-end design, and a config file for the front end developers. The front-end design would have templates for say images, text boxes, portfolio items, etc.
It would replace things or add things to the site using PHP variables.
Here is what the systems functions would be
Text replacement
How it works: the front-end developer would add a text replacement to the config file.
The format would be something like this:
TextReplacement:
Name: Text Replacement One
Variable: $textOne
Variable: $textOne
This could be used for image urls (echo "<img src="$textOne" />; ) or just plain text (echo "<p>$textOne</p>"; )
Content additions:
These would be a bit more complex.
The config would look a bit like this
ContentAddition:
ContentAddition:
Name: HTML One
Name: HTML One
Variable: $HTMLOne
Loops: 2 /*Times to loop the code*/
HTML:
{
<div class="example">
<p>Hello World</p>
</div>
}
Loops: 2 /*Times to loop the code*/
HTML:
{
<div class="example">
<p>Hello World</p>
</div>
}
The HTML code, would only be editable in the config file. However the number of loops would be put in the admin panel for the client to edit.
This is why we need categories.
Categories:
This would be used to group things in the admin panel together.
Config example:
Category:
Name: Portfolio Carousel Group
Items:
TextReplacement:
Name: Text Replacement One
Variable: $textOne
ContentAddition:
Name: HTML One
Variable: $HTMLOne
Loops: 2 /*Times to loop the code*/
HTML:
{
<div class="example">
<p>Hello World</p>
</div>
}
Name: Portfolio Carousel Group
Items:
TextReplacement:
Name: Text Replacement One
Variable: $textOne
ContentAddition:
Name: HTML One
Variable: $HTMLOne
Loops: 2 /*Times to loop the code*/
HTML:
{
<div class="example">
<p>Hello World</p>
</div>
}
Why would this be useful?
Say your making a carousel.
To make this customizable, you need multiple variables to work together.
This feature would add a Header Text saying "Category Name", and then have the variables in that category listed below. Now you have a category named "Carousel", and in it you have the variables Image, Name, and Description. This makes it easy for clients to added carousel items to their websites!
The only flaw I know of in the above description, is how to make the variables work for each number of loops in content additions. The way its written above would loop the variables as well, causing repeated of the same content, vs different images and text as would be needed. A possible solution would be to loop the variables appearance in the admin panel to allow for multiple different images/titles/text per loop of the code.
Thoughs, suggestions below please! Thank you!
VERY POORLY DESIGNED ADMIN PANEL EXAMPLE (For reference)
Last edited:
