duplicated menu module in joomla - menu

I have a bottom menu module in my joomla CMS which works fine in footer 1 position. However, when I try to create another menu module in the footer 2 position. it assigns the same articles to this menu item as my first one?

You go to folder "template/{name of template}" and open file "index.php". Then create new module menu footer:
<?php if ($this->countModules('footer_menu')): ?>
<jdoc:include type="modules" name="footer_menu" style="none" />
<?php endif; ?>
After that, you go to backend and config position.

Related

Browser page title in Joomla 3.3.4

i have got following problem with Joomla! 3.3.4: after entering text to the Browser Page Title window in article options, the title doesn't change. In that place is only displayed the global sitename. In older Joomla everything works properly.
To change the field title you need to edit the menu item options. When you go to the detail view of menu item in question, navigate to the Page Display tab. The first field is Browser Page Title, enter the title you want to appear and save.
That should sort it out for you...
Please try to switch to the default template and if it works there is something wrong with your template.
In order to set browser title you could use setTitle() method.
<?php
$this->setTitle( $title );
?>
You could check setTitle usage at: Joomla Docs.
If you want to set title in article template you could make an addition to:
/templates/*template_name/html/article/default.php
An example code that could set the article title to browser title would be:
<?php
$this->setTitle( $this->item->title );
?>
Hope this helps
Go to Global Configuration -> Site -> Include Site Name in Page Titles and set it to Before or After. Of course you also have to set a Site Name.

Customization of Navigation menu in Wordpress

I'm new in Wordpress. I run the wordpress using xampp. Themes have a limited navigatiob menu, and I want to add two to four navigation menus with sub-menus in my theme. How can I do that? What file should I edit to add some navigation menus?
Please help me.
Thank you!
In your theme functions.php you should register the menu location by adding the following code:
register_nav_menus(
array(
'menu_1' => 'Menu name #1',
'menu_2' => 'Menu name #2'
)
);
For more instruction about the register_nav_menus() function you can visit the related codex.
Then in your theme files, you should use the following code:
wp_nav_menu(
array(
'menu' => 'menu_1'
)
);
For more instructions about the wp_nav_menu() function you can visit the related codex.
Finally, the sub menu items can be manipulated from within the WordPress dashboard. You can see this video for more information.
<?php register_nav_menu( 'menu-id-1', 'Menu Label1' ); ?>
<?php register_nav_menu( 'menu-id-2', 'Menu Label2' ); ?>
<?php register_nav_menu( 'menu-id-3', 'Menu Label3' ); ?>
put this in your 'functions.php' file

Zend framework 2 - Add a subview in layout?

I have three layout views for render my web page (one for logged users, other for unlogged users and one for admin users).
These layouts have the same footers section. This footer is very complex and I'd like centralizing changes to a single footer view.
How I can add a subview inside the layout view, such that the layout will have the following code for rendering the content returned by actionControler?
<?php echo $this->content; ?>
And the following code, but this is always same template and isn't returned by the actionController:
<?php echo $this->footer; ?>
Do I have to modify onBootstrap method?
If the footer itself is simple you should be able to use the Zend\View\Helper\Partial helper to render a phtml file. To do this (inside your layout):
<?php echo $this->partial('view path'); ?>
If the footer requires some logic, it maybe best to look at creating a view helper.

How to display html content in block in Drupal 6?

How can i display external(from server) html content into block region.
let me tell you what i did so far is i created a new block on my site called sitemap and put some php code
<?php include('../sitemap/sitemap.html'); ?>
and set this block region to footer.
But it show nothing so plz help me so i do it.
Maybe the include file path is wrong. For better results, you can put that file in the themes folder and call it.
<?php include(path_to_theme().'/sitemap.html'); ?>

Drupal 6: extracting input field of a search form out of div

The Drupal documentation about theming search forms says:
* $search['search_theme_form']: Text input area wrapped in a div.
My html page which i want to make a drupal theme uses a special search form so i don't want the form's elements to be wrapped into a div. How can i get the clean search form elements not wrapped into div?
Well the Drupal documentation pretty much says it all: http://drupal.org/node/45295
If you just want to remove the div container overwrite the template search-theme-form.tpl.php or whatever template is responsible for the input search field. You have the instruction on how to overwrite in the link above.
If you want more customization than you'll have to do step #2 from the Drupal tutorial.
So from this:
// #file /modules/search/search-theme-form.tpl.php
<div id="search" class="container-inline">
<?php print $search_form; ?>
</div>
To this:
// #file /sites/all/themes/your-active-theme/search-theme-form.tpl.php
<?php print $search_form; ?>
Don't forget to clear the Drupal's site cache.

Resources