PDA

View Full Version : Which CMS-system...


Chinboy
01-03-2009, 05:07 PM
I'm making a new site, and my intentions is to use a cms-system for use, to edit contents.

I'm having trouble to find a cms-system though.

My wishlist to a cms-system is:

First of all - EASY
Making a new template, should be as easy as html, xhtml, css
Menupart should also be easy to build up, like <ul><li>'s etc.
(ofcourse it needs a bit more, for the system to be able to add new pages etc.)

I have tried cmsms - the template system is rather simple, so far so good.
However - and I might just be a notch too dumb - the menusystem was rather frustrating, with all it's special tags and nodes here and there.. It ruins my clean look of html with divs, li's and ul's.. (I like it clean, for a nice overview ;-) )

I don't just want to edit already excisting templates.. I have my own.

Can't you just do it something like this: http://www.communitycare.dk/
(as in cmsms - only with a menu-system I can understand.. whatever that is)

Well - What do you folks know about the systems out there?
Throw in your experiences :)

Thanks on behalf

Millenia
01-03-2009, 05:22 PM
Have you had a look at the "lite" section of OpenSourceCMS?
http://www.opensourcecms.com/

VIPStephan
01-03-2009, 09:58 PM
I have worked with CMS Made Simple a lot and I do endorse it. In the beginning I was kinda hesitant with the Smarty syntax in the menu as well but it’s not as hard as it may look like. What so you want? Maybe I can help you?

Oh and by the way, the abbreviation “CMS” includes the word “system” already so it’s kinda redundant to say “CMS system”. ;)

Chinboy
01-04-2009, 05:02 PM
Hello Millenia :)

Thank you for your link. There are many systems there, that I'm about to test out.
Thanks for sharing!

Best regards
Martin

Chinboy
01-04-2009, 05:12 PM
I have worked with CMS Made Simple a lot and I do endorse it. In the beginning I was kinda hesitant with the Smarty syntax in the menu as well but it’s not as hard as it may look like. What so you want? Maybe I can help you?

Oh and by the way, the abbreviation “CMS” includes the word “system” already so it’s kinda redundant to say “CMS system”. ;)


Oh yea', my bad! Ofcourse 'system' is already in cms :P
I must have ment CMS-software or such.. Sorry, it's just my Danish way of thinking, mixed together with the English language hehe..

Well for the cmsms SOFTWARE :P - I'd like to figure out their menu-backend.
I want this horizontal menu, with dropdown..
Tried to modify the cssmenu that came along the cmsms, but didn't feel it did what I wanted..
Here's my menu:


<div id="menuwrap">
<ul>
<li><a href="#">home</a></li>
<li><a href="#">info</a>
<ul>
<li><a href="#">submenu</li>
<li><a href="#">submenu2</li>
etc...
</ul>
<li><a href="#">menu2</a></li>
<li><a href="#">menu3</a></li>
<li><a href="#">menu4</a></li>
etc..
</ul>
</div>


This is the way I know, to make a menu.. But it seems a bit messed up with the smarty thing..
It's like you have to learn a new programming language - THEIR program language.
Can't I just use the straight forward method in some way?

I think real good about cmsms because of the simple way it works - only having a bit trouble with the menus...

VIPStephan
01-04-2009, 07:35 PM
Well, Smarty kind of is a new programming language, but it is kind of a subset of PHP and it’s not their language. It’s used in many applications and if you know PHP you can deal with Smarty as well.

Now, the CMS comes with different menu layout samples already, you just have to import one and work from there. So, you have a menu with submenu? Then go to the menu manager and import the “CSS menu” from the file templates (if you haven’t done so yet). You can delete the default CSS for the CSS menu to have a clean list structure to look at in the beginning.

Now you actually don’t need to do anything other than creating custom CSS. Firefox’s Firebug plugin will help you viewing the HTML structure. Basically you get a menu like this:
<div id="menuwrapper">
<ul id="primary-nav">
<li class="menuactive"><a href="" class="menuactive"><dfn>1: </dfn>link</a> </li>
<li class="menuparent"><a href="" class="menuparent"><dfn>2: </dfn>link</a>
<ul>
<li class="menuparent"><a href="" class="menuparent"><dfn>2.1: </dfn>link</a>
<ul>
<li><a href=""><dfn>2.1.1: </dfn>link</a> </li>
<li><a href=""><dfn>2.1.2: </dfn>link</a> </li>
</ul>
</li>
<li class="menuparent"><a href="" class="menuparent"><dfn>2.2: </dfn>link</a>
<ul>
<li><a href=""><dfn>2.2.1: </dfn>link</a> </li>
<li><a href=""><dfn>2.2.2: </dfn>link</a> </li>
</ul>
</li>
</ul>
</li>
<li class="menuparent"><a href="" class="menuparent"><dfn>3: </dfn>link</a>
<ul>
<li><a href=""><dfn>3.1: </dfn>link</a> </li>
<li><a href=""><dfn>3.2: </dfn>link</a> </li>
<li><a href=""><dfn>3.3: </dfn>link</a> </li>
</ul>
</li>
<li class="menuparent"><a href="" class="menuparent"><dfn>4: </dfn>How CMSMS Works</a>
<ul>
<li><a href=""><dfn>4.1: </dfn>link</a> </li>
<li><a href=""><dfn>4.2: </dfn>link</a> </li>
<li><a href=""><dfn>4.3: </dfn>link</a> </li>
</ul>
</li>
<li><a href=""><dfn>5: </dfn>link</a> </li>
</ul>
<div class="clearb"></div>
</div>


All important elements (and even the less important ones) have a class that you can adress in your stylesheets so you just have to style the menu. If you add or remove pages they are being added to/removed from the menu.

If you wanna change the HTML of this menu then you can edit the imported menu in the database templates section (in the Menu Manager). I have posted the default code below with some color highlighting that hopefully helps to understand it.

{* CSS classes used in this template:
#menuwrapper - The id for the <div> that the menu is wrapped in. Sets the width, background etc. for the menu.
#primary-nav - The id for the <ul>
.menuparent - The class for each <li> that has children.
.menuactive - The class for each <li> that is active or is a parent (on any level) of a child that is active. *}
{if $count > 0}
<div id="menuwrapper">
<ul id="primary-nav">
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="<ul>" times=$node->depth-$node->prevdepth}
{elseif $node->depth < $node->prevdepth}
{repeat string="</li></ul>" times=$node->prevdepth-$node->depth}
</li>
{elseif $node->index > 0}</li>
{/if}
{if $node->parent == true or ($node->current == true and $node->haschildren == true)}
<li class="menuactive menuparent"><a class="menuactive menuparent"
{elseif $node->current == true}
<li class="menuactive"><a class="menuactive"
{elseif $node->haschildren == true}
<li class="menuparent"><a class="menuparent"
{elseif $node->type == 'sectionheader'}
<li class="sectionheader"><span> {$node->menutext} </span>
{elseif $node->type == 'separator'}
<li style="list-style-type: none;"> <hr class="separator" />
{else}
<li><a
{/if}
{if $node->type != 'sectionheader' and $node->type != 'separator'} href="{$node->url}" {if $node->accesskey != ''}accesskey="{$node->accesskey}" {/if}
{if $node->tabindex != ''}tabindex="{$node->tabindex}" {/if}
{if $node->titleattribute != ''}title="{$node->titleattribute}"{/if}
{if $node->target ne ""} target="{$node->target}"{/if}
><dfn>{$node->hierarchy}: </dfn>{$node->menutext}</a>
{elseif $node->type == 'sectionheader'}
><dfn>{$node->hierarchy}: </dfn>{$node->menutext}</a>
{/if}
{/foreach}
{repeat string="</li></ul>" times=$node->depth-1}
</li>
</ul>
<div class="clearb"></div>
</div>
{/if}


Each element of a kind (opening and closing tag) has the same color to identify what is opened and closed where. The grayed out parts aren’t that important to care about right now but keep them as they are. You see the blue opening div tag and the green opening ul tag. They are closed at the bottom (note the according color). Then comes some smarty for the sub list functionality, and then colored indigo are the different kinds of list items.

If you create a page in the admin section you can set it to be a page (content), a section header, or a simple separator, and as such they will show up in the menu structure (i. e. a section header will just be a list item without clickable link). And that’s why there are so many different conditional statements.

You can edit the HTML there, i. e. change class names, remove the <dfn> tags or whatever. You see that the anchors are opened but that opening tag is just closed after the Smarty if statements (that look if certain attributes are required (colored in dark red here)). Then comes the content of the anchor and then the closing tag of the anchor.

I hope that helps? It’s true that some things take a little time to set up but that’s the price of having a fully customizable solution. But that’s better than a crappy CMS where you can’t do very much.

Chinboy
01-05-2009, 03:39 PM
Thank you VIPStephan, for your time and effort to enlighten me :)

I'll try to reinstall cmsms, and start all over - I think it stands a bit clearer before me now. Ofcourse not entirely, that would be a miracle never seen before, but it helps!

I'll be back - maybe! ;)

Thanks for your time, once again!

rosajshannon
01-07-2009, 07:21 AM
+1 vote for Drupal (http://www.drupal.org) - give it a try http://www.codingforums.com/images/smilies/smile.gif (http://www.jeteye.com/jetpak/9029c2bd-b326-42ff-9775-81b30730fa2c/)

Chinboy
01-09-2009, 04:39 PM
Well, Smarty kind of is a new programming language, but it is kind of a subset of PHP and it’s not their language. It’s used in many applications and if you know PHP you can deal with Smarty as well...

So I've installed CMSMS again, and gave it one more shot - I seem to get it now. At least, I got my menu to work the way I wanted :)

tosbourn
01-09-2009, 04:56 PM
+1 vote for Drupal (http://www.drupal.org) - give it a try http://www.codingforums.com/images/smilies/smile.gif (http://www.jeteye.com/jetpak/9029c2bd-b326-42ff-9775-81b30730fa2c/)

Seconded.

VIPStephan
01-09-2009, 05:15 PM
So I've installed CMSMS again, and gave it one more shot - I seem to get it now. At least, I got my menu to work the way I wanted :)

That’s great! :thumbsup: