Menu Titles

horiah

Avatar: horiah

2007-11-30 16:03

Hi,

This is probably a sily question, but I dind't find a way to edit the menu titles in the admin panel. How can I change the names "Categories " and "Producers".

Thanks

» Quick.Cms v2.x

openzibi

Avatar: openzibi

2007-11-30 16:12

horiah - Only in config/lang_xx.php




----------------------------------------
openzibi - http://www.rhh.pl

arform

No avatar

2007-12-04 13:39

Not present in lang_xx.php that string.

Anywhere else?

Droso

cgan

Avatar: cgan

2007-12-04 15:00

arform - on line 22 and 23 in config/lang_xx.php you'll find this:
$aMenuTypes[3] = 'Categories';
$aMenuTypes[4] = 'Producers';
Change them to what you want.

avwebnet

Avatar: avwebnet

2008-01-14 22:43

Since these menu category header listings will probably not pertain to 99% of our website content, I suggest making this section editable thru the admin section. I haven't had a chance to really study the paid versions yet to see if its possible.

I simply removed the text as outlined in the above posts. Then I just Use a page to create my Category, then Subpages under that.

Since finding your CMS application, I have already employed it for two websites, one for a non-profit entity, the other for my cousin's website.

It took only a matter of a couple of hours to set it up on my servers, and have them updating with their content.

Thanks!

AV Web Designs

cgan

Avatar: cgan

2008-01-14 23:04

avwebnet - study avartec's idea a bit down in this topic http://opensolution.org/Quick.Cms/forum/?p=readTopic&nr=262
By following it you can make the Categories editable from admin.

avwebnet

Avatar: avwebnet

2008-01-17 23:34

I still can't change the names of the Menu Categories. (Categories, Producers)

What I would like to do is have these section titles viewable in admin, but not on web pages.

When I try to create names on the "admin.php?p=settings-config#more" in the new "Menu Names" boxes, it doesn't make any changes at all.

files in /config/ have 777 chmod

here is what I did.

copied /templates/menu_4.tpl

renamed to:
/templates/menu_5.tpl
/templates/menu_6.tpl

Inserted code in /templates/container.tpl:

<div id="column2">
<!-- additional column, hidden in styles -->
</div>

<div id="column">
$sMenu3
$sMenu4
$sMenu5
$sMenu6

<div id="slogan">


EDITED /templates/themes/default.php

if( !isset( $bBlockPage ) ){
$sMenu1 = $oPage->throwMenu( 'menu_1.tpl', 1, $iContent, 0 );
$sMenu2 = $oPage->throwMenu( 'menu_2.tpl', 2, $iContent, 0 );
$sMenu3 = $oPage->throwMenu( 'menu_3.tpl', 3, $iContent, 1 );
$sMenu4 = $oPage->throwMenu( 'menu_4.tpl', 4, $iContent, 1 );
$sMenu5 = $oPage->throwMenu( 'menu_5.tpl', 5, $iContent, 1 );
$sMenu6 = $oPage->throwMenu( 'menu_6.tpl', 6, $iContent, 1 );
}

EDITED /config/lang_en.php

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

$aMenuTypes[1] = 'Top menu above logo';
$aMenuTypes[2] = 'Navigation bar under header';
$aMenuTypes[3] = $config[menu3];
$aMenuTypes[4] = $config[menu4];
$aMenuTypes[5] = $config[menu5];
$aMenuTypes[6] = $config[menu6];

Inserted the code into /templates/admin/settings.php

<table class="tab" id="tabPages">
<tr>
<td>$lang['Start_page']</td>
<td>
<select name="start_page">
$sStartPageSelect
</select>
</td>
</tr>
<tr>
<td>Menu 3 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>
<tr>
<td>Menu 5 name</td>
<td>
<input type="text" name="menu5" value="$config[menu5]" size="50" maxlength="100" class="input" /></td>
</tr>
<tr>
<td>Menu 6 name</td>
<td>
<input type="text" name="menu6" value="$config[menu6]" size="50" maxlength="100" class="input" /></td>
</tr>
<!-- tab pages -->
</table>

treewood (OpenSolution)

Avatar: treewood

2008-01-18 08:52

avwebne -
1. return back names of menu types in config/lang_en.php
2. Edit templates/menu_3.tpl and templates/menu_4.tpl and delete

<div class="type">$aData[sMenuType]</div>

Back to top
about us | contact