Brainstorming - Propose ideas.

Coordinator
Apr 9, 2008 at 1:19 AM
Thread for proposing ideas / concepts for MVCMS.
Coordinator
Apr 9, 2008 at 1:37 AM
Edited Apr 9, 2008 at 1:54 AM
I've already built a basic CMS it's rather direct on top of the MVC. Once I was finished with my current client, I planned to rebuild my CMS from the ground up and offer it as an opensource project but since this fell into my lap, I'd much rather go this route. As a result, I've already got some ideas as to what would be possible and what I consider exciting using the MVC to create a truly unique system:

Styling - Users can create page layouts by uploading styles and by using a custom view engine, can easily moderate their own pages.

Custom View Engine - A view engine very much like nVelocity but with the addition of adding controls as well..

An extreme version (which would be amazing if we came up with it) would look something like this (completely on the spot generated syntax, it would have to be evaluated obviously):
<div id="menu">
<ul>
!#Horizontal_Menu{
{start= $page.depth} {levels = $page.depth + 1}
<li> link {target=$page.address} {text = $page.name} {style="somestyle"} /link
}
#!
</ul>
</div>
Apr 10, 2008 at 9:22 PM
Do we need some filter functions for checking if user input contains only permitted HTML? If so once there is a solution framework, I could make a start on such a function.
Also I have a library of filter functions for server filtering of general user input, together wih unit tests.

These two areas could just be spawned into a separate project on this site.
Coordinator
Apr 10, 2008 at 9:44 PM
Edited Apr 10, 2008 at 10:08 PM

TATWORTH wrote:
Do we need some filter functions for checking if user input contains only permitted HTML? If so once there is a solution framework, I could make a start on such a function.
Also I have a library of filter functions for server filtering of general user input, together wih unit tests.

These two areas could just be spawned into a separate project on this site.

Were you talking about the above code?



Also, I thought about the above example and I think an XML-like syntax would work a lot better. You'd wrap variables in [ brackets with $ declaring the variable name. Like any custom view engine, it would be parsed and translated into the typical <% %>where we have a handful of custom methods already written like NodeList which would iterate through the tree from the start declaration..

<NodeList first="$root.depth" last="$node.depth + 1">. . . . . . .<!--- that would be translated into a foreach on the return of a method NodeList(0, ViewData.Page.Current.Depth + 1);
<li> [$node.name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .<!--- I can't get it to not create a link with ['s surrounding the object
has an id of $node.id
parent's name is $parent.name
</li>
</NodeList>
Apr 10, 2008 at 11:27 PM
>Were you talking about the above code?
No! I was just thinking about code reuse.