CmsmsMLE - how to make indipendent contents in CMSMS Admin Panel?

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
Locked
User avatar
cms_pilot
New Member
New Member
Posts: 4
Joined: Thu Jan 10, 2008 2:11 pm

CmsmsMLE - how to make indipendent contents in CMSMS Admin Panel?

Post by cms_pilot »

Hy everybodyy.
I'm new to this cmsmsMLE (and to cms at all (btw, it's my first web)).. Playing within few weeks I should say - it's incredible!!!
All went smooth, because it's plenty of information in forums..

But I stuck:
1) I was trying to configure languages on phpmyadmin - to make contents independent in CMS Admin Panel (that would be great..), I mean not related to any other language,- but unsuccessfully.

2) I cant make either my content invisible when it's empty..

I'm using the Original CMS menu Stylesheet "Navigation: Simple - Vertical":

/********************
MENU
*********************/
#menu_vert {
  padding-left: 0;
  margin-left: 1em;
}


/* third level has some padding to have it stand out */
div#menu_vert ul ul ul {
  padding-bottom: 0.5em;
}

/* menu li block */
#menu_vert li {
  list-style: none;
  margin: 0;
  border-bottom: 1px dotted #000;
  display: block;
}

#menu_vert ul ul li {
  border: none;
}

/** fix stupid ie bug with display:block; **/
* html #menu_vert li a { height: 1%; }
* html #menu_vert li hr { height: 1%; }
/** end fix **/

/* first level links */
div#menu_vert a {
  text-decoration:none; /* no underline for links */
  display: block; /* IE has problems with this, fixed above */
  padding: 0.8em 0.5em 0.8em 1.5em; /* some air for it */
  color: #9D650D; /* this will be link color for all levels */
  background: url(images/cms/arrow-right.gif) no-repeat 0.5em center;
  min-height:1em; /* Fixes IE7 whitespace bug */
}

/* next level links, more padding and smaller font */
div#menu_vert ul ul a {
  font-size: 90%;
  padding: 0.5em 0.5em 0.5em 2.8em;
  background-position: 1.5em center;
}

/* third level links, more padding */
div#menu_vert ul ul ul a {
  padding: 0.3em 0.5em 0.3em 4.3em;
  background: url(images/cms/dash.gif) no-repeat 2.8em center;
}

/* hover state for all links */
div#menu_vert a:hover {
  background-color: #F4F4F4;
}
div#menu_vert a.activeparent:hover {
  background-color: #F4F4F4;
  color: #000;
}

/*
active parent, that is the first-level parent
of a child page that is the current page
*/
div#menu_vert li a.activeparent {
  background: url(images/cms/arrow-down.gif) no-repeat 0.4em center;
  background-color: transparent;
  color: #9D650D;
}

div#menu_vert ul ul li a.activeparent {
  background-position: 1.5em center;
  background-color: transparent;
  color: #9D650D;
}


/*
current pages in the default Menu Manager
template are unclickable. This is for current page on first level
*/
div#menu_vert ul h3 {
  background: url(images/cms/arrow-right-active.gif) no-repeat 0.4em center;
  background-color: transparent;
  display: block;
  padding: 0.8em 0.5em 0.8em 1.5em;  /* some air for it */
  color: #000;                                /* this will be link color for all levels */
  font-size: 1em;                          /* instead of the normal font size for */
  margin: 0;                                  /* as normally has some margin by default */
}

/*
next level current pages, more padding,
smaller font and no background color or bottom border
*/
div#menu_vert ul ul h3 {
  font-size: 90%;
  padding: 0.3em 0.5em 0.3em 2.8em;
  background-position: 1.4em center;
  background-color: transparent;
  border-bottom: none;
  color: #000;   
}

/* current page on third level, more padding */
div#menu_vert ul ul ul h3 {
  padding: 0.3em 0.5em 0.3em 4.3em;
  background: url(images/cms/arrow-right-active.gif) no-repeat 2.7em center;
}

/* section header */
div#menu_vert li.sectionheader {
  border-right: none;
  font-size: 130%;
  font-weight: bold;
  padding: 1.5em 0 0.8em 0;
  background-color: #fff;
  line-height: 1em;
  margin: 0;
  text-align:center;
}



/* separator */
div#menu_vert li.separator {
  height: 1px !important;
  margin-top: -1px;
  margin-bottom: 0;
  padding:2px 0 2px 0;
  background-color: #AFDEFA;
  overflow:hidden !important;
  line-height:1px !important;
  font-size:1px; /* for ie */
}

div#menu_vert li.separator hr {
  display: none; /* this is for accessibility */
}


Any thoughts or directions to the light at the tunnel..?

Martins.
alby

Re: CmsmsMLE - how to make indipendent contents in CMSMS Admin Panel?

Post by alby »

cms_pilot wrote: I'm new to this cmsmsMLE (and to cms at all (btw, it's my first web)).. Playing within few weeks I should say - it's incredible!!!
All went smooth, because it's plenty of information in forums..

But I stuck:
1) I was trying to configure languages on phpmyadmin - to make contents independent in CMS Admin Panel (that would be great..), I mean not related to any other language,- but unsuccessfully.
Please, I don't understand: content independent from languages?

cms_pilot wrote: 2) I cant make either my content invisible when it's empty..
Have you look to Documentation, howto and tips (#4)?

Alby
User avatar
cms_pilot
New Member
New Member
Posts: 4
Joined: Thu Jan 10, 2008 2:11 pm

Re: CmsmsMLE - how to make indipendent contents in CMSMS Admin Panel?

Post by cms_pilot »

Maybe the issue were explained too incorrectly ..  ::)

So, let's try in other words.. :)
At the moment i have 3 languages.
If I make any content, it appears in other language contents as well.
What I've been trying,-  make it possible to create absolutely different contents to any language (in cms admin panel).

The only solution i found in forums is:
{if !empty($node->menutext)}

I've managed to adopt the styleseets and templates..
- but I don't know how to implement this {if !empty($node->menutext)} into my ordinary cmsms stylesheet..


Martins.
alby

Re: CmsmsMLE - how to make indipendent contents in CMSMS Admin Panel?

Post by alby »

cms_pilot wrote: - but I don't know how to implement this {if !empty($node->menutext)} into my ordinary cmsms stylesheet..
In your template you use MenuManager for automatic menu (check in your template for {menu ....} or {cms_module module="MenuManager" ....})

This module use own templates (Layout -> MenuManager), default is simple_navigation.tpl
Read this for info

That code is for template and not for CSS.

Alby
User avatar
cms_pilot
New Member
New Member
Posts: 4
Joined: Thu Jan 10, 2008 2:11 pm

Re: CmsmsMLE - how to make indipendent contents in CMSMS Admin Panel?

Post by cms_pilot »

Alby - thanks for directions..!!!

Job's done!
__________________________________________

Problem solution:

I've imported (in Menu Manager (from File Templates )) simple_navigation.tpl template to the Database.
Placed {if !empty($node->menutext)} in the wright place in template;
and {menu template='simple_navigation.tpl' collapse='1'} in (Layout(Templates(Left simple navigation + 1 column)));
- end this message appeared:
string(86) "Smarty error: unable to read resource:

Came back to (Menu Manager (File Templates)):
changed "simple_navigation.tpl" to "simple_navigation" (removed .tpl);
removed .tpl in {menu template='simple_navigation' collapse='1'} in (Layout(Templates(Left simple navigation + 1 column)));

and wuolia!
content doesn't shows any empty contents..
__________________________________________

Finally I have multilanguage web page fully functioning and completely satisfying all my needs!!!

Huge THANKS for all CMSMS and MLE crew for so great "All in one" easy setup solution!!! ;)
Locked

Return to “[locked] CMSMS MLE fork”