Show joomla component in menu item type

I created a component for Joomla and it works fine with the direct URL: http://www.something.com/index.php?option=com_pbform

The problem is that when I try to add it to the menu. When I change the type of menu item, the component is displayed, but when I click on it, I do not get a view to apply it to the menu item.

Do I need to configure anything else in the component?

Thank!

+5
source share
4 answers

MVC, / . , , . .

,

views/view_a
views/view_b
views/view_c

Joomla .

MVC, , http://www.joomladevuser.com/tutorials/components

, !

+2

jos_components:

INSERT INTO jos_components (name, link, admin_menu_link, `option`)
VALUES (
  'Greetings', 'option=com_greetings', 'option=com_greetings', 'com_greetings')

, Joomla.

.

  • /view/viewone
  • //viewtwo
  • //viewthree

Bad

  • //view_one
  • //view_two
  • //view_three
+3

. , ! , MVC, :

  • " "
  • joomla db
  • _menu
  • index.php? option = com_yourcomponent

I performed the porting of my Joomla 1.5Ajax / PHP script collection to Joomla 1.7.3using this solution in just one day.

Piece of cake.

0
source

All Articles