Failure

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
16 May 2017

As title says.
See #346 (comment)

@zero-24
to be checked for unvoluntary modifications of already merged PRs

@astridx Please test

avatar infograf768 infograf768 - open - 16 May 2017
avatar infograf768
infograf768 - comment - 16 May 2017

Note: this includes and replaces #336 and #346

avatar astridx
astridx - comment - 16 May 2017

@infograf768 Thank you very much.
I had a first test and noticed two things.
The files in the folder media are not copied with the installation. I think we have to add an entry in the manifest file.
And I would name the entry in the select box for the associations in the singular not in the plural.
Edit: My first opinion was, because I want to edit only one web link. But I see many web links in the list, so the plural is OK. But we mixed singular and plural in this select box - contact is in singular.
multilingual associations select item type and language joomla cms test administration
This evening I will have a closer look.

avatar infograf768
infograf768 - comment - 16 May 2017

on ipad now. will look later. :)

avatar infograf768
infograf768 - comment - 16 May 2017

But we mixed singular and plural n this select box - contact is in singular.

Yep, that's the only one. It was a mistake when we merged com_associations.
We have to propose a patch on cms changing
"COM_CONTACT_CONTACTS="Contact"
to
COM_CONTACT_CONTACTS="Contacts"
in
administrator/language/en-GB/en-GB.com_contact.ini

avatar infograf768
infograf768 - comment - 16 May 2017

Should we minimize this file?

I added the call into the manifest but not sure we need them.
I picked the one you posted in your PR and I see
// Used in xtd_contacts

Even if that is a typo, we do not have an xtd-weblinks and I do not know if we need these js at all. For example, we do not have these js for newsfeeds.

That type of js was introduced in joomla/joomla-cms#12561 and then modified.

Calling @dgt41 to look into that.

avatar dgt41
dgt41 - comment - 16 May 2017

Even if that is a typo, we do not have an xtd-weblinks and I do not know if we need these js at all. For example, we do not have these js for newsfeeds.

Actually there should be a button for every type of content in Joomla (newsfeed, weblink, etc)

avatar infograf768
infograf768 - comment - 17 May 2017

OK. Will add the xtd-editor for weblinks and minimise js

avatar infograf768
infograf768 - comment - 17 May 2017

I guess we should be OK now.

@zero-24
Please check my changes in pkg_weblinks.xml where I added the new plugin

avatar infograf768
infograf768 - comment - 17 May 2017

Results should now be:
screen shot 2017-05-17 at 09 43 00

screen shot 2017-05-17 at 09 46 00

screen shot 2017-05-17 at 09 46 33

screen shot 2017-05-17 at 09 47 37

avatar astridx
astridx - comment - 19 May 2017

For me, almost everything works. I have only problems with the xtd plugin. But I think it's up to me. I'll try again tomorrow.
I only suggest to call the plugin weblinks (plural - not weblink (singular)), because we call all other plugins synonymous.

avatar infograf768
infograf768 - comment - 19 May 2017

concerning name of plugin, except for fields, they are singular
PLG_ARTICLE_BUTTON_ARTICLE="Article"

https://github.com/joomla/joomla-cms/tree/staging/plugins/editors-xtd

avatar infograf768
infograf768 - comment - 20 May 2017

@astridx
Corrections done.

avatar astridx
astridx - comment - 20 May 2017

I have tested this PR successfully.
I created an weblink item and translated it into the associations-component. Then I created several weblinks items in several languages and linked (associated) them in the weblinks components to another language.
Die frontend view was OK
I created a xtd-button and inserted an weblink with the help of this button into an article.

Concerning name of plugin: I meant, that the names of all other weblink plugins (finder, system, search) are in singular. But that was only a suggestion.
And I had another idea while I tested. Should we add the images to the single frontend view? At the moment we use this only for the category view. But this is only a suggestion, too. We can do this in another PR later. If you like I would open an issue for this.

avatar infograf768
infograf768 - comment - 20 May 2017

Concerning name of plugin: I meant, that the names all other weblink plugins (finder, system, search) are in singular. But that was only a suggestion.

we have to normaise vs editors-xtd plugins, not any other type. ?

avatar infograf768
infograf768 - comment - 22 May 2017

@zero-24
OK to merge?

avatar zero-24
zero-24 - comment - 22 May 2017

looks ok now from a quick review but I did not found time to test this yet. Sorry.

avatar astridx
astridx - comment - 7 Jun 2017

I just noticed something. If an weblink is unpulished, you can see it in this single weblink view, if you know the link. This a security problem, right?

avatar infograf768
infograf768 - comment - 9 Jun 2017

btw, folks, we are freezing languages for the CMS on the 13th.
These new strings should added to core before that date. Thanks.

avatar infograf768
infograf768 - comment - 9 Jun 2017

If an weblink is unpulished, you can see it in this single weblink view, if you know the link.

It should throw a 404 when a single weblink menu item is clicked.
Looking into that now.

avatar infograf768
infograf768 - comment - 10 Jun 2017

@zero-24 @dgt41 @astridx

I have now updated the frontend model for weblink. It should now take care of language, access, state.

Please test and check code.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 14 Sep 2017

this PR is ready for Test?

avatar infograf768
infograf768 - comment - 14 Sep 2017

It was, last time I tested. :) In June.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 14 Sep 2017

can there be proper Test Instructions at first Comment?

As far as i read there should be a "single weblink" (menue?) which i can't find, also no Button so i share Comments of @infograf768 in #346 why to have multlingual as you got to an Page after click on Weblink.

avatar infograf768
infograf768 - comment - 14 Sep 2017

as far as I remember, there is a already a single weblink menu item and with this patch instead of displaying directly the page targeted by this link, it displays a joomla frontend page containing the web link to click on, therefore permitting associations.

avatar astridx
astridx - comment - 14 Sep 2017

why to have multlingual as you got to an Page after click on Weblink.

You are right. The single view and the multilingual is not really neccessary for this component. But I think weblinks is a component where others (and I) have the opportunity to learn creating componentens.

As far as i read there should be a "single weblink"

Do I understand you right? You do not see the opportunity to create a single weblink view when you create a menu point? It should be similar to com_content, where you can create a menu item for a single article.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 14 Sep 2017

correct, no "Single Weblink"-Menu Item:
bildschirmfoto 2017-09-14 um 10 26 34

Test on

weblinks-3.7.0-beta1
macOS Sierra, 10.12.5
Firefox 55.0 (64-bit)

MAMP 4.1.1

  • PHP 7.0.15
  • MySQLi 5.6.35
avatar astridx
astridx - comment - 16 Sep 2017

I applied the path via Patch Tester and @franz-wohlkoenig is right, here I saw no menu item for a single web link. By the way, there was no JOOMLA/components/com_weblinks/views/weblink/tmpl/default.xml file in the folder. I think patch tester can not copy new files. And this file is new in this version.

Then I applied the branch via git fetch upstream pull/349/head:weblinks_assoc and built a new pkg-weblinks-current.zip and installed this.

After that I could create a new menu item. I saw the web link in the front end, when I clicked it. After publishing these web link I saw a 404 error.

I could create web links and web links categories for other languages via multilingual component. And I saw the association tab in the web links component and I could use it.

I made some checks on a website, that is not multilingual and there was everything OK, I mean, I saw no association tab.

I had only one issue. I could not create a web link with the same alias in different languages. But I would like to merge this and open an issue for the opportunity to have the same alias for different languages.

I tested with Joomla! 3.8.0-rc2-dev Development [ Amani ] 5-September-2017 14:00 GMT

avatar astridx astridx - change - 3 Nov 2017
Milestone Added: Weblinks 3.7.1
avatar astridx astridx - change - 3 Nov 2017
Status New Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-11-03 20:46:28
Closed_By astridx
avatar astridx astridx - close - 3 Nov 2017
avatar astridx astridx - merge - 3 Nov 2017
avatar astridx astridx - reference | d0ff882 - 3 Nov 17
avatar astridx astridx - merge - 3 Nov 2017
avatar astridx astridx - close - 3 Nov 2017
avatar infograf768 infograf768 - head_ref_deleted - 27 Dec 2019

Add a Comment

Login with GitHub to post a comment