Skip to content

Improving menu item workflow in Joomla[GSoC 16_menu_for_article_project]#11766

Closed
shubhamnba2009 wants to merge 137 commits intojoomla:stagingfrom
shubhamnba2009:menupluginpr
Closed

Improving menu item workflow in Joomla[GSoC 16_menu_for_article_project]#11766
shubhamnba2009 wants to merge 137 commits intojoomla:stagingfrom
shubhamnba2009:menupluginpr

Conversation

@shubhamnba2009
Copy link
Copy Markdown

@shubhamnba2009 shubhamnba2009 commented Aug 23, 2016

Summary of Changes

In Joomla 1.0 it was possible to create a menu link to an article from the article edit view in the administrator back-end. Joomla is missing this feature since 1.5 and it has a long time since then. Content-Createmenulink plugin recreates the old memories of creating menu item directly from the component view.

Testing Instructions

  1. Install the patch/PR.
  2. Go to Extensions > Plugins.
  3. Enable Content-Createmenulink Plugin if it is disabled.
  4. Click on Content-Createmenulink plugin.
  5. Parameter dialogue view will appear.
    firstpr1
  6. Enter component+view in the form [com_content.article], just like in the given image below.
    Type two component view to enable component in both component view.
    [Note: Remember to press enter before typing second component+view name]

firstpr2

  1. Navigate to content > article >create new article.
  2. A new tab named as "Menu link options" will appear.
    firstpr3
  3. Fill all the details.
  4. Check fornt end.
  5. Also try to make a new menu item for contact or other 3rd party component using this PR.
    firstpr4

Expected outcome

New menu item for the article/contact/3rd party component will get created in the frontend.

Shubham Rajput and others added 30 commits April 10, 2016 21:18
Add changes to appear in hathor template.
Also updated en-GB.plg_content_menu.ini file according to xml file.
Also the class name is changed and made according to the Joomla coding
standards.
1. Added<fieldset> tab in menu.xml so that menulink tab appears in the
backend of edit view.
2. Tested the code generic functionality with com_contact component and
it worked successfully.
3. Added a new functionality that make sure that the plugin works in the
backend of the component.
1. Menu data is saved in the menu table.
2. Checked with content and contact component.
1. Click on already created article or contact.
2. The menu link tab fields are retrieved from the database.
Coded xml file to made a drop down list of component view in which to
enable the plugin.
Fixed the decapricated, getsession() method.
1. Solves the problem specified in :
joomla-projects/gsoc16_menu-for-article#16 (comment)
2. Solves the problem specified in:
joomla-projects/gsoc16_menu-for-article#19
3. Solves the issue specified in :
Also made necessary changes in the plugin to suit changed plugin name
Shubham Rajput added 7 commits December 20, 2016 20:48
…luginpr

# Conflicts:
#	administrator/components/com_admin/script.php
#	installation/sql/mysql/joomla.sql
#
…luginpr

# Conflicts:
#	installation/language/sr-YU/sr-YU.ini
#	installation/sql/sqlazure/joomla.sql
# Conflicts:
#	administrator/templates/hathor/html/mod_menu/default_enabled.php
@puneet0191
Copy link
Copy Markdown
Contributor

@shubhamnba2009 Could you please resolve conflicts on this one?

Shubham Rajput added 2 commits February 5, 2017 15:59
…luginpr

# Conflicts:
#	administrator/components/com_admin/script.php
#	installation/sql/mysql/joomla.sql
#	installation/sql/postgresql/joomla.sql
#	installation/sql/sqlazure/joomla.sql
@shubhamnba2009
Copy link
Copy Markdown
Author

@puneet0191 I have noticed a new check (appveyor) is integrated now. The PR is failing its check... Any idea whom should I contact to know about it?

@roland-d
Copy link
Copy Markdown
Contributor

@shubhamnba2009 Appveyor should be fine. If you can resolve the conflicts we can see what the automated tests do and we can follow up as needed.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/11766.

Shubham Rajput added 3 commits August 19, 2017 18:46
…luginpr

# Conflicts:
#	administrator/components/com_admin/script.php
#	administrator/language/en-GB/install.xml
#	administrator/templates/hathor/html/mod_menu/default_enabled.php
#	installation/sql/mysql/joomla.sql
#	installation/sql/postgresql/joomla.sql
#	installation/sql/sqlazure/joomla.sql
@shubhamnba2009
Copy link
Copy Markdown
Author

@roland-d I resolved the conflicts.. Let me know how the automated test does :)

@roland-d
Copy link
Copy Markdown
Contributor

@shubhamnba2009 All tests passed. Thanks 👍

@roland-d
Copy link
Copy Markdown
Contributor

Now we just need human test. I will get some people to test next week.

@brianteeman
Copy link
Copy Markdown
Contributor

Tested this and it never populates the parent item

menu

@brianteeman
Copy link
Copy Markdown
Contributor

Further test

  1. Menu title not stored in the article so no way to see if an article has a menu item
  2. Menu item created as unpublished so you still need to go to the menu to publish it which defeats part of the object of this PR

menu2

@wilsonge
Copy link
Copy Markdown
Contributor

wilsonge commented Aug 2, 2018

This has been superceeded by #21357 and merged so closing here - thanks for all the hard work that was done here!

@wilsonge wilsonge closed this Aug 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature Language Change This is for Translators

Projects

None yet

Development

Successfully merging this pull request may close these issues.