How to add own fields to menu item in Joomla 2.5 - php

i need to include my list area component in existing menu item(type: List All Categories) Administrator screen in Joomla
solution tried:
i have created new menu item type as component
its displaying my textarea now how can i load data input to the textarea
i have referred below link.
http://docs.joomla.org/J2.5:Developing_a_MVC_Component/Adding_a_variable_request_in_the_menu_type.

I have created component referred below link and component type as overridden select-option,
its working fine now.
Thanks
http://docs.joomla.org/J2.5:Developing_a_MVC_Component/Adding_a_variable_request_in_the_menu_type

Related

New post dynamically shown in dropdown menu in WordPress

I am making a Wordpress site with DIVI theme.
Suppose I have two categories complete project and ongoing project. These two categories are already in Menubarbar with dropdown list.
I manually create this dropdown menu from Appearance->Menus.
Now I want that, while I add a new post under ongoing project/ completed project category, the dropdown list of Menubar will automatically updated dynamically with the new post.
Please Help.Thanks in Advance.

Add new field in WordPress Menu to output in theme

Is there a simple class or function to extend the WordPress default menu items with new custom fields?
For example, when you go to Appearance - Menus, add a new menu and drag/drop an item to your menu, that actual item has few hidden fields that can be enabled from Screen Options:
Title Attribute
Description
My question is: how to add another custom field there? Like a background field to write the text there and output it in my custom theme like we output the title and description:
<?php echo $navItem->description; ?>
Changed the html code live on the admin page, so you can catch my idea on what I want to do.
Thanks!
ACF is the plugin just what you looking for. Create as many fields as your want, assign it to manu form and you are done.
For more information follow this URL,
https://www.advancedcustomfields.com/resources/adding-fields-menu-items/
Hope this helps.
follow this URL may help you
Adding custom Fields to WordPress Navigation Menu Items
http://jafty.com/blog/how-to-add-custom-fields-to-wordpress-navigation-menu-items/

Wordpress Custom Post Type not showing in admin menu (created with CPT UI)

I created a Custom Post Type using CPT UI Plugin called program and added contents to Custom Post Type which I created. Suddenly that menu item is not showing in admin menu (so far it showed in admin menu and I have already added posts to it).
Note: Previously added Custom Posts showing in Front-End and working fine. How can I get to display this Custom Post in Admin Menu ? I tried using changing the host and still the same thing happening.
Thanks in Advance
I fixed the issue which I struggled so far.
In CPT UI plugin there is a setting called show_in_menu. That should be true to show the created custom post type in admin menu.

How to get seo friendly article url in joomla without assiging it to any menu

I am a wordpress developer and new for Joomla cms. Currently i am working on a Joomla project.
I have created articles from admin section and i want to call those articles in my front end with seo friendly url(http://www.example.com/article-alias) without assigning it any menu.
I am already using url like this /index.php?option=com_content&view=article&id=article_id to get article in front end.
Thanks in advance for any suggestion or solution.
In my Joomla instance I created a new menu called "blank" to put any articles I wanted to link to directly instead of adding them to the navigation on the site. I assigned my articles to that menu, and there is a field called "alias", manually type in the name you want to appear in your URL (like article-alias). Then you can link directly to that page with example.com/article-alias. This will also allow you to add modules to the page from the module manager and selecting your articles from the "blank" menu.

Publish a menu item but dont show it

I have a situation where we have a "user menu" on the top of the page.This menu is shown on every page with a module.Now in order to set up breadcrumbs properly I need to have a menu item which is published but not visible to any type of user whether guest or registered..
Is it possible in Joomla to have a menu item published and hidden yet accesible via URL??
You will have to write a different module which had most of the functionality of your custom module. In the new module you can change the code in a way so that you dont show the required menu.
I think you should create a menu, setup user groups, view level. Create a menu item, and try to access via menu alis - link.
Good luck
Yes, Menu's are independent of the modules that display them, it's possible to create a menu and not create a menu module, how, depends on the version of Joomla you are using.
That's why there are so hits when you Google — "Joomla Hidden Menu" There is even an article on Joomla Doc's on "Menus" that discusses hidden menus briefly.
So, the normal approach is to create a new Menu with a name like "Hidden" or "Shortcuts" and have the menu items created in that menu, then don't assign a menu module for it.

Categories