■ユーザーズフォーラム リニューアルのお知らせ
新規投稿は新ユーザーズフォーラムにお願いします。

トップページにグローバルメニューが表示されない

hiroki > トップページにグローバルメニューが表示されない @ 2017/4/20 1:13
logical_jp_baserのテーマを使用しております。
グローバルメニューが表示されません。
エレメントにはグローバルメニューのphpはありませんでした。
どうやったらメニューが表示されるようになりますか??
akillerbee > Re: トップページにグローバルメニューが表示されない @ 2017/4/20 10:25
こんにちはakillerbeeです。

baserCMSのバージョンやPHPバージョン、DB、サーバ環境など明記してもらえると回答が付きやすくなると思います。
hiroki > Re: トップページにグローバルメニューが表示されない @ 2017/4/20 10:40
akillerbeeさん、お世話になります。
いつも有り難う御座います。

失礼致しました。
CMSのバージョンは4.0.1、logical_jp_baser3.0.0です。

<?php
/**
 * デフォルトレイアウト
 */
?>
<?php $this->BcBaser->docType('html5'); ?>
<html lang="ja" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<?php $this->BcBaser->element('meta') ?>
<?php $this->BcBaser->element('google_analytics') ?>
</head>
<body id="<?php $this->BcBaser->contentsName() ?>">
<?php $this->BcBaser->element('fbroot') ?>

<div id="document">
<?php $this->BcBaser->header() ?>
<?php if($this->BcBaser->isHome()): ?>
<?php $this->BcBaser->element('home_mainvisual') ?>
<?php endif ?>
<nav id="globalNav" role="navigation">
<?php $this->BcBaser->element('global_menu') ?>
<!--/#globalNav --></nav>
<div id="wrapper">
<div id="main" role="main">
<div id="contentsWrapper" class="layout01">

<div id="contents01" class="contents">
<!-- BaserPageTagBegin -->
<!-- BaserPageTagEnd -->
<!--/#globalNav --></nav>
<div id="wrapper">
<div id="main" role="main">
<?php if($this->BcBaser->isHome()): ?>
<?php $this->BcBaser->element('home') ?>
<?php else: ?>
<nav class="topicPath">
<p>
<?php $this->BcBaser->element('crumbs'); ?>
</p>
<!-- /.topicPath --></nav>

<?php if($this->BcBaser->isPage()): ?>

<article class="article">
<header class="articleHeader">
<div class="articleHeaderInner">
<h1 class="title"><?php echo $this->BcBaser->getContentsTitle(); ?></h1>
<!--/.articleHeaderInner --></div>
<?php $this->BcBaser->element('social_plugin', array('size' => 'S')) ?>
<!--/.articleHeader --></header>

<div class="articleContents freetxt">

<?php $this->BcBaser->flash() ?>
<?php $this->BcBaser->content() ?>

<!--/.articleContents freetxt --></div>

<footer class="articleFooter">
<?php $this->BcBaser->element('social_plugin', array('size' => 'L')) ?>
<!--/.articleFooter --></footer>

<!--/.article --></article>

<?php else: ?>

<?php $this->BcBaser->flash() ?>
<?php $this->BcBaser->content() ?>

<?php endif ?>

<?php $this->BcBaser->element('contents_navi') ?>

<?php endif ?>

<!--/#main --></div>

<?php if(!$this->BcBaser->isHome()): ?>
<?php $this->BcBaser->element('sidebar') ?>
<?php endif ?>

<!--/#wrapper --></div>
<?php $this->BcBaser->footer() ?>

<!--/#document --></div>
<?php $this->BcBaser->func() ?>
</body>
</html>


デフォルトのphpを載せてみました。
画面をスクショしてみました。


hiroki > Re: トップページにグローバルメニューが表示されない @ 2017/4/21 15:24
エレメントにglobal-menuのphpを作成することで反映されました。
nana123 > Re: トップページにグローバルメニューが表示されない @ 2017/8/25 11:55
This information is very interesting, I like.












holiday palace


ログイン
ユーザー名:
パスワード:


  新規登録 / パスワード紛失

検索

facebook
フォーラムで悩みが解決した場合など、よかったら「いいね!」をポチっとクリックしてください!質問の回答者や開発者の励みになります

フォーラムガイド


関連リンク

オンライン状況
26 人のユーザが現在オンラインです。 (25 人のユーザが フォーラム を参照しています。)

登録ユーザ: 0
ゲスト: 26