Categories

Achaa

No avatar

2007-11-05 16:13

Hi
How do you create new categories?

Such as Categories & Producers

Thank you.
A.

» Quick.Cms v2.x

merci

No avatar

2007-11-06 08:58

Achaa - If you want to add next type of menu for example on the left side, execute following steps:
1) edit config/lang_pl.php file and change

$aMenuTypes[1] = 'Top menu above logo';
$aMenuTypes[2] = 'Top menu under logo';
$aMenuTypes[3] = 'Categories';
$aMenuTypes[4] = 'Producers';


to

$aMenuTypes[1] = 'Top menu above logo';
$aMenuTypes[2] = 'Top menu under logo';
$aMenuTypes[3] = 'Categories';
$aMenuTypes[4] = 'Producers';
$aMenuTypes[5] = enter here name for new menu;


2)create new file in templates/ directory, name it menu_5.tpl and copy content of e.g. menu_4.tpl file to the new one,
3)edit templates/themes/default.php file and add code

$sMenu5 $oPage->throwMenu'menu_5.tpl'5$iContent);


4)edit templates/container.tpl and add $sMenu5 variable behind e.g. $sMenu4 variable in this file,
5)log in to administration and add pages to this type of menu.

Achaa

No avatar

2007-11-06 10:47

Thank you :D
That was very helpful.

Can I just add that the default.css file should be altered also.

Many thanks,
A.

merci

No avatar

2007-11-07 08:26

Achaa - if you don't make changes in file menu_5.tpl (I mean you don't change id of div so it would have id="menu4") you don't need to alter default.css file.

Achaa

No avatar

2007-11-07 10:51

Oh yeah :blush: I didn't think of that... heh heh

Thanks again.
A.

avartec

No avatar

2007-11-10 02:12

I think I know the better idea:

1) edit config/lang_en.php and add code


$config
['menu3'] = "";
$config['menu4'] = "";



2) change in the same file


$aMenuTypes
[3] = 'Categories';
$aMenuTypes[4] = 'Producers';


to


$aMenuTypes
[3] = $config[menu3];
$aMenuTypes[4] = $config[menu4];



3) edit templates/admin/settings.php and paste this code


<tr>
<
td>Menu3 name</td>
<
td>
<
input type="text" name="menu3" value="$config[menu3]" size="50" maxlength="100" class="input" /></td>
</
tr>
<
tr>
<
td>Menu 4 name</td>
<
td>
<
input type="text" name="menu4" value="$config[menu4]" size="50" maxlength="100" class="input" /></td>
</
tr>



I paste this code behind


    
<table class="tab" id="tabPages">
      <
tr>
        <
td>$lang['Start_page']</td>
        <
td>
          <
select name="start_page">
            
$sStartPageSelect
          
</select>
        </
td>
      </
tr>



and I have it in configuration in settings / pages.

http://quick.yoyo.pl

nonopp

No avatar

2007-11-25 20:29

Hi
I have translated to spanish categories -> secciones.
but...
I try to add or modify a menĂº but I have always the same error:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /homepages/45/d216454550/htdocs/cms_lite/config/lang_es.php:1) in /homepages/45/d216454550/htdocs/cms_lite/admin.php on line 11

Warning: Cannot modify header information - headers already sent by (output started at /homepages/45/d216454550/htdocs/cms_lite/config/lang_es.php:1) in /homepages/45/d216454550/htdocs/cms_lite/admin.php on line 14

I follow all the stpes.
Thanks.

merci

No avatar

2007-11-26 08:49

nonopp - have you executed everythink as is described here:
http://opensolution.org/Quick.Cms/docs/?id=tips#how_to_add_next_menu

nonopp

No avatar

2007-11-26 09:54

Yes, but the problem would be with the editor I use, txt, or something else because when I change a simple word I have the same problem for examle:

$aMenuTypes[3] = 'Categories';

$aMenuTypes[3] = 'CategoriAs'; <-

islander_man

No avatar

2007-11-30 19:55

Ok but what if I just wanted to make another page under Categories? I can only make pages under the one page I have inside my Categories section. I believe the above code would add a seperate Categories section. Then I would see it as
Categories
My one page
Categories
My second Page

And that's if I could figure out how to make a page and have the Parent for it be the Categories that is in there?

So for sake of trying to be clear. I need to create a page with Categories as the Parent for it so it shows up on the default template on the left hand side. I had deleted the Shoe Samples and I think perhaps I should have just renamed them, but that would limit me to only 3 Categories anyways.

So is there a way to create a page with Categories as the Parent? It's greyed out in the option for selecting Parent for me.

islander_man

No avatar

2007-11-30 19:58

Well now I see that's I was trying to use the Parent selector when I should have been using the Menu selector. I got the Menu selector back after I changed the Parent to none.

Thanks I got it all solved now.

avwebnet

Avatar: avwebnet

2008-02-22 19:49

Can't there be a way just to add an admin section to edit these Menu titles??

Seems the simplest and easiest way to work with them instead of hacking files.

darkcurves

No avatar

2008-04-20 20:01

Hi, i have tried adding new Categories but having some problem. Any help would be appreciated. I changed everything according to what merci said above. The problem is, one of my category, which is $aMenuTypes[4](Papers) doesnt appear. I already created a page in that category, but it doesn't appear. Only $aMenuTypes[3] and $aMenuTypes[5](which is newly created) appears.

http://www.keretapi.com/citra/

Below is a screenshot of my admin panel, what did i do wrong?
http://img390.imageshack.us/img390/7167/cmsscpr7.jpg

cgan

Avatar: cgan

2008-04-20 23:33

darkcurves - Did you add that menu in templates/themes/default.php?

cgan

darkcurves

No avatar

2008-04-21 09:14

I fixed it, a simple mistake. Sorry for wasting people's time and thanks cgan for your reply.

Back to top
about us | contact