Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly merge tag params #13643

Merged
merged 2 commits into from
Jan 21, 2017
Merged

Properly merge tag params #13643

merged 2 commits into from
Jan 21, 2017

Conversation

Bakual
Copy link
Contributor

@Bakual Bakual commented Jan 18, 2017

Pull Request for Issue #13641.

Summary of Changes

I don't know what to say after looking at that code... That stuff certainly didn't work at all before.
In short, item and menu params are now properly merged.

Testing Instructions

Test that tag parameters are merged properly, meaning that options set in the tag override those in the menu item. Except when the menu item is an exact match to the tag (eg it's a single tag menuitem for that specific tag shown), then the menu item takes precedence over the tag params

Documentation Changes Required

None.

@ghost
Copy link

ghost commented Jan 19, 2017

will test today.

@ghost
Copy link

ghost commented Jan 19, 2017

Test-Scenario:

  1. 2 Tags without single tag menuitem
  2. menuitem list-of-all-tags, no other tag-menuitemtype published
  3. 2 tags are shown
  4. click on one tag got Call to a member function get() on string. Same if click on tag in an article.
  5. if menuitem list-of-all-tags is unpublished, got correct view "index.php/component/tags/tag/*"

@Bakual
Copy link
Contributor Author

Bakual commented Jan 19, 2017

The error was a typo on my part. Can you try again?
I also fixed another bug I saw that the single tag view loaded the layout parameter from the tags list view... sigh

@ghost
Copy link

ghost commented Jan 19, 2017

menuitem list-of-all-tags works. Furthermore testing.

@ghost
Copy link

ghost commented Jan 19, 2017

  • In "Tags > Options" a "Tag Image" is set on "Show" and is displayed.
  • In an Tag on Tab "Images" set Float of "Full Image" to "Right". This don't work, Image stay left.

@Bakual
Copy link
Contributor Author

Bakual commented Jan 19, 2017

The parameter for the image float seems to be not used at all in com_tags. That would be a different PR to add this, but not one I'm going to write 😄

@ghost
Copy link

ghost commented Jan 19, 2017

made #13646

@ghost
Copy link

ghost commented Jan 19, 2017

I have tested this item ✅ successfully on 28dc518


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

@justinherrin
Copy link
Contributor

Thanks for getting to this one so quickly! I will test it out now.

@justinherrin
Copy link
Contributor

I have tested this item ✅ successfully on 28dc518

Patch applied to the view.html.php file all is working good from the issue I reported. Tags View Layout (one without a menu item) is now grabbing the correct layout selected in the single Tag parameters and not choosing the one set in Global Tags Component Options.


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

@jeckodevelopment
Copy link
Member

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Jan 21, 2017
@jeckodevelopment jeckodevelopment added this to the Joomla 3.7.0 milestone Jan 21, 2017
@ghost
Copy link

ghost commented Jan 21, 2017

@justinherrin does

Tags View Layout (one without a menu item) is now grabbing the correct layout selected in the single Tag parameters and not choosing the one set in Global Tags Component Options.

mean i can close #13646?

@wilsonge wilsonge merged commit b222a8d into joomla:staging Jan 21, 2017
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Jan 21, 2017
@Bakual Bakual deleted the FixTagParamsMerging branch January 21, 2017 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants