How to add options to the menu item that is asosiated with your component. - joomla

I Have created a component in Joomla 2.5, I have succesfully installed it, and now I need to add some options that will be configured at the menu view. So when a user ads a new menu item to a menu and the menu type is my component, then he can also select some parameters at the menu item view. How can I do this?

It's on the first page of the docs for developing an MVC component for Joomla 2.5:
http://docs.joomla.org/Developing_a_Model-View-Controller_%28MVC%29_Component_for_Joomla!2.5_-_Part_05
To access these params from within your component look at " Accessing the parameters - frontend" on this page:
http://docs.joomla.org/Component_parameters

Related

Joomla External Link -

I am using the external link type menu items within Joomla - the reason is I need to link direct to an anchor on another page from the menu.
I have around 10-15 links, all work as expected except 2.
in my external URL box I have something like this:
"index.php?option=com_content&view=article&id=10&Itemid=207#SystemIntegration"
id - is the article id
Itemid - is the menu item I want to be active
hashtag - is my anchor link
PROBLEM:
On the 2 that are not working it seems to go to url with this "http://www.website.com/component/content/?Itemid=207#SystemIntegration" instead of "http://www.website.com/services/digital-solutions/SystemIntegration#SystemIntegration" as expected
has anyone else had this issue? I have a feeling its connected to the SEF urls being on.
Joomla 3.5.0 version
Step1. Create a Hidden Menu from Joomla admin==>Menus==>Manage==>add
new menu
Step2. Select a Hidden Menu ==> add a new menu item==>Menu Item
Type==>Article==>single article==>your article id==>save
Step3. Site load this url(take copy)
Step4. Create a new menu from external url Pate the previous url
(include #)
Nothing I tried worked reliably - so I got round it by making each item go to the single article, then using a spare field to store the name of anchor. Then within some custom JS code I checked if the field was set and automatically scrolled the page to it if it was - works better than the joomla standard anyway and is more reliable

Need to embed new header menu in joomla

i am using Joomla 2.5 inbuilt registration Form ,I Need to a new header menu after the successful user log-in. how to do this ? Can we integrate Different header menu for Different page(artical). Please help.
There are two options.
First one that you could create two menus, one for registered and one for non-registered users and use different module after login.
Second option to use the same menu and set different items for each group. The selection could be made under:
Menus -> *Menu_Name -> *Menu_Item -> Access: Public / Registered
EDIT: In order to set menu items available only for non-registered users you have to select Guest Access Level: Allowing Guest-Only Access to Menu Items and Modules.
Hope this helps

how to add custom category to display area with blog in joomla?

In joomla 3.2 I have created a new category with name struts2. But when I create articles under this category it's not getting displayed in the default page. Only if I select the category as blog then only it is displaying the content area. How to add mu category struts2 to the default category (blog) which is displaying by default?
In the categories menu, struts2, in the options tab under 'Alternative Layout'
select 'Blog'. Then in the Home page menu item, in the Layout tab under Categories add struts2. It should work.

Missing Itemid on url at login pages

I'm on Joomla 2.5.
I created a menu item named "Login Form" with Itemid=626 . Also I created a menu item named "Article" with access level "Registered".
The Problem
When a user click on the "Article" menu item on the frontend, he goes to login page index.php?option=com_users&view=login I need this url to contain Itemid=626 so it could be index.php?option=com_users&view=login&Itemid=626
Please advise
I think you can't override standard joomla login page just creating a menu item.
To create easily some rules and redirect the users you can use this component, Chameleon.
If you don't need complex rules you can just auto redirect all users from standard login to your page.

joomla: why does Registration Form menu item go to user's Profile page?

I created a new menu item: my_RegistrationForm_menu_item (type = Registration Form).
But when I click my_RegistrationForm_menu_item, it goes to "User Profile" page instead of the "Registration Form" page.
Also, if I append: index.php/component/users/?view=registration
OR index.php?option=com_users&view=registration
to my browser URL, it re-directs me to index.php/.../profile
NOTE: if I click the Create An Account button in the default LOGIN module, it will correctly take me to the "Registration Form" page.
Why does the Registration Form menu item go to the user's "User Profile" page ?
If you have selected type = Registration, then there is no reason why it should be redirecting to the User Profile page, unless you have touched any related core Joomla files.
As an alternative, you can select type = External and use the following link:
index.php?option=com_users&view=registration
Update:
You can also do the following:
Create a new menu (not menu item) called "hidden"
Create a new menu item for the "hidden" menu called "register", set the type to "external" and add the link that I provided above.
Create a new menu item for your main menu, set the type to "Menu Item Alias" and called it "Register". Then in the Required Setting section, select the hidden menu item you created before.
If this still dosn't work then there is something wrong with your Joomla site and the com_users code has been tampered with most likely

Resources