J4 Issue ?
avatar chetanmadaan
chetanmadaan
22 Apr 2019

Is your feature request related to a problem? Please describe.

N/A.

Describe the solution you'd like

Just thinking out loud here, I think it would be very useful to give the user a URL editor (like wordpress), where while editing the article, they can see what the URL would be on the frontend and even edit it (if menu alias is being changed, user can be given a popup for confirmation).

I understand that WordPress only has posts and Joomla has articles, categories and other types which further links to menu items (which can result in different URL's on how you have something linked on the frontend).

But, we can predict what the URL will be on the frontend, based on whether the SEF is enabled or not or whether the current Item is linked to a menu items or not.

Additional context

I understand that when SEF extensions and other 3rd party extensions get involved, thing can be cumbersome, but I am only thinking for a solution for Joomla articles (core joomla out of the box).

Thank you for reading.

avatar chetanmadaan chetanmadaan - open - 22 Apr 2019
avatar joomla-cms-bot joomla-cms-bot - change - 22 Apr 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 22 Apr 2019
avatar brianteeman
brianteeman - comment - 22 Apr 2019

Joomla is not Wordpress

avatar HLeithner
HLeithner - comment - 22 Apr 2019

Would be possible with the new route helper.

avatar franz-wohlkoenig franz-wohlkoenig - change - 22 Apr 2019
Labels Added: J4 Issue
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 22 Apr 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 22 Apr 2019
Title
WordPress like URL editor.
[4.0] WordPress like URL editor.
avatar franz-wohlkoenig franz-wohlkoenig - change - 22 Apr 2019
Title
WordPress like URL editor.
[4.0] WordPress like URL editor.
avatar franz-wohlkoenig franz-wohlkoenig - edited - 22 Apr 2019
avatar Bakual
Bakual - comment - 22 Apr 2019

Displaying the expected URL should actually be quite simple in J4. As Harald wrote with the new Router we have a single "correct" URL for a given item.

However editing anything beside the current item alias could become quite tricky as each part of the URL would have to be identified somehow as to where it comes from (menuitem path, category path).
Any change in that path would have impacts on other URLs. So I wouldn't do that.
Also keep in mind that you can always create a menuitem for a given item and create a custom URL this way.

avatar brianteeman
brianteeman - comment - 22 Apr 2019

Displaying the URL is very different to editing the URL. Unlike WordPress a url does not have to be to a single item.

avatar HLeithner
HLeithner - comment - 22 Apr 2019

In wordpress you can change the "alias" of the blog entry, so its more or less the same as our alias iirc.

So displaying the baseurl + the alias would be possible but would not work with a direct linked menu item als Thomas described

avatar chetanmadaan
chetanmadaan - comment - 22 Apr 2019

Joomla is not Wordpress

I agree Brain and I am not trying to make Joomla work like WordPress. I just have a hard time explaining my clients the links for items that are either not linked to a menu item or linked to a hidden menu item.

avatar chetanmadaan
chetanmadaan - comment - 22 Apr 2019

Displaying the expected URL should actually be quite simple in J4. As Harald wrote with the new Router we have a single "correct" URL for a given item.

However editing anything beside the current item alias could become quite tricky as each part of the URL would have to be identified somehow as to where it comes from (menuitem path, category path).
Any change in that path would have impacts on other URLs. So I wouldn't do that.
Also keep in mind that you can always create a menu item for a given item and create a custom URL this way.

even if we can only display the URL to the and not have the editing ability just the job and for editing we can point the users to menu items and stuff. May be? May be not?

avatar brianteeman
brianteeman - comment - 22 Apr 2019

You are forgetting that you don't always know what the full url will be when you create an article because you haven't created a suitable menu item yet.

avatar brianteeman
brianteeman - comment - 22 Apr 2019

In wordpress you can change the "alias" of the blog entry, so its more or less the same as our alias iirc.

No it is very different

avatar Bakual
Bakual - comment - 22 Apr 2019

You are forgetting that you don't always know what the full url will be when you create an article because you haven't created a suitable menu item yet.

We can only ever show the currently expected URL. If the user creates a new menuitem afterwards for that article (or its category), then of course the displayed URL would be different next time that article form is loaded.
I think just displaying the URL is an interesting idea. Editing it not so much.

avatar HLeithner
HLeithner - comment - 22 Apr 2019

In wordpress you can change the "alias" of the blog entry, so its more or less the same as our alias iirc.

No it is very different

Would you like to explain this? My test on a wordpress sites gives me the feeling thats something similar.

avatar brianteeman
brianteeman - comment - 22 Apr 2019

They are what wp calls permalinks https://codex.wordpress.org/Using_Permalinks

avatar chetanmadaan
chetanmadaan - comment - 22 Apr 2019

expected URL. If the user creates a new menuitem afterwards for that article (or its category), then of course the displayed URL would be different next time that article form is loaded.
I think just displaying the URL is an interesting idea. Editing it not so much.

I agree, even if we can can just show the URL (Like I said in the original post), that'd be more than enough for the end user,
Right now, the user (the client) (who naive enough), doesn't even know what the URL looks like or is going to be on the frontend, unless it's linked on a menu item (which is actively showing up on the frontend).

Thanks,
Chetan

avatar franz-wohlkoenig franz-wohlkoenig - change - 23 Apr 2019
Status New Discussion
avatar fevangelou
fevangelou - comment - 15 May 2019

@chetanmadaan That's because WP is a post-based CMS, whereas Joomla is an application-based CMS (application = component in Joomla lingo).

WordPress can easily determine that post ID X referenced on the URL will always map to the posts table (and the record with ID X).

Calling an article ID in Joomla through the URL though would yield nothing as you need to define WHICH component to redirect the DB call, which view, task and so on, in order to fetch the required content.

That why WP overrides are hackish and contain hardcoded references to IDs and whatnot. The only thing that kinda saves the situation is the pre-existence of "view" specific sub-templates in WP, e.g. category.php, page.php, single.php etc. And that's why Joomla is 10 times easier in theming compared to WP.

avatar Fedik
Fedik - comment - 16 May 2019

it is already possible, no? with editors-xtd/menu button

avatar SharkyKZ
SharkyKZ - comment - 17 May 2019

@Fedik the question is about displaying links to frontend items in backend.

It's already possible but only for published items. Article preview button already uses this.

avatar chetanmadaan
chetanmadaan - comment - 21 May 2019

@chetanmadaan That's because WP is a post-based CMS, whereas Joomla is an application-based CMS (application = component in Joomla lingo).

WordPress can easily determine that post ID X referenced on the URL will always map to the posts table (and the record with ID X).

Calling an article ID in Joomla through the URL though would yield nothing as you need to define WHICH component to redirect the DB call, which view, task and so on, in order to fetch the required content.

That why WP overrides are hackish and contain hardcoded references to IDs and whatnot. The only thing that kinda saves the situation is the pre-existence of "view" specific sub-templates in WP, e.g. category.php, page.php, single.php etc. And that's why Joomla is 10 times easier in theming compared to WP.

Thanks for the explanation. All am I really looking for is a link for the dumb end user to access the URL of the current article. I do understand the different between WP & Joomla

avatar chetanmadaan
chetanmadaan - comment - 21 May 2019

@Fedik the question is about displaying links to frontend items in backend.

It's already possible but only for published items. Article preview button already uses this.

I just tried the preview and it opens the article in the iframe but doesn't really shows the user what the URL is, which is what the original request was.

avatar chetanmadaan
chetanmadaan - comment - 21 May 2019

it is already possible, no? with editors-xtd/menu button

Yes but again that inserts the link inside the content. What we are looking for is a direct link for the current article starting user in the face.

avatar brianteeman
brianteeman - comment - 21 May 2019

Why? What use it it to you? How are you using it? That will help us understand

avatar chetanmadaan
chetanmadaan - comment - 21 May 2019

Why? What use it it to you? How are you using it? That will help us understand

I am trying to get a link to the current article without linking it to a menu and without telling the user to manually type in site.com/index.php?option=... and all that stuff.

avatar brianteeman
brianteeman - comment - 21 May 2019

Again I ask you why? Why do you need it?
Without a menu it is going to be impossible

avatar Bakual
Bakual - comment - 21 May 2019

I think it can be useful to see the URL that an article is going to get.
Easier to share (otherwise you need to navigate to it in frontend).
Easier to spot suboptimal structures (eg missing menuitem)

avatar chetanmadaan
chetanmadaan - comment - 22 May 2019

Again I ask you why? Why do you need it?
Without a menu it is going to be impossible

The user doesn't want to link it to a menu item. It is possible without a menu item. the link is
index.php?option=com_content&view=article&id=xxx

avatar chetanmadaan
chetanmadaan - comment - 22 May 2019

I think it can be useful to see the URL that an article is going to get.
Easier to share (otherwise you need to navigate to it in frontend).
Easier to spot suboptimal structures (eg missing menuitem)
Thank You @Bakual

avatar brianteeman
brianteeman - comment - 22 May 2019

The user doesn't want to link it to a menu item. It is possible without a menu item. the link is
index.php?option=com_content&view=article&id=xxx

But the SEF url will be dependant on whatever is the closest best fit for the menu.

avatar chetanmadaan
chetanmadaan - comment - 22 May 2019

The user doesn't want to link it to a menu item. It is possible without a menu item. the link is
index.php?option=com_content&view=article&id=xxx

But the SEF url will be dependant on whatever is the closest best fit for the menu.

Then we build something that's allow use to generate the same URL on the backend. Either way, we want give the user URL's for item in the frontend. Like Virtuemart does for products and Wordpress does for posts that its.

May be we can follow the buttons inside the Editor that allows us to insert links to menu items, articles & contact items. Just a non SEF link directly to the item?

avatar micker
micker - comment - 24 May 2019

have a consistent item url without creating a menu link will be smother for workflow .... i like this idea for end-user
but how to check duplicate content if we have menu link AND direct item link ..

avatar chetanmadaan
chetanmadaan - comment - 28 May 2019

have a consistent item url without creating a menu link will be smother for workflow .... i like this idea for end-user
but how to check duplicate content if we have menu link AND direct item link ..

I wouldn't know the coding aspect of it. Again, duplicates is something Joomla 4 shouldn't have or atleast try to fix the duplicate url problem.

avatar Bakual
Bakual - comment - 28 May 2019

have a consistent item url without creating a menu link will be smother for workflow .... i like this idea for end-user

That's not possible: Menulinks are essential in Joomla.
The only URL you could get without a menuitem would be the non-SEF one (eg index.php?option=com_content&view=article&catid=123&id=456).

As I said in an earlier comment, the only thing whjich would be possible to do in J4 is having the frontend URL displayed in the form. It wouldn't be editable at all. If you want to change it, you would have to change the alias in the respective menuitem/category/article.
Everything else is just out of scope in Joomla due to the way URLs are generated and routing is done.

avatar brianteeman
brianteeman - comment - 28 May 2019

As I said in an earlier comment, the only thing whjich would be possible to do in J4 is having the frontend URL displayed in the form

And that would not be a permanent url (like in wordpress) but subject to change as menu items change

avatar Bakual
Bakual - comment - 28 May 2019

And that would not be a permanent url (like in wordpress) but subject to change as menu items change

Exactly. It would only be a convenient way to quickly share an URL.

avatar micker
micker - comment - 28 May 2019

yes it will a be untresting solution to create a dynamic link between menu link and url in content
now that doesn't work if we change menu link urlused in content isn't update
=> can we herite link params with itemid ?

avatar franz-wohlkoenig franz-wohlkoenig - change - 29 May 2019
Title
[4.0] WordPress like URL editor.
[4.0] WordPress like URL editor
avatar franz-wohlkoenig franz-wohlkoenig - change - 29 May 2019
Title
[4.0] WordPress like URL editor.
[4.0] WordPress like URL editor
avatar franz-wohlkoenig franz-wohlkoenig - edited - 29 May 2019
avatar chetanmadaan
chetanmadaan - comment - 29 May 2019

Thank you all for the contributions so far. The URL won't be permanent or editable. Just display.

avatar brianteeman
brianteeman - comment - 29 Dec 2019

In my opinion this should be closed. The complete architecture of joomla is of a menu based system and not a page based system so this idea is never going to produce something that is really usable

avatar Quy Quy - change - 29 Dec 2019
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2019-12-29 22:00:39
Closed_By Quy
avatar Quy Quy - close - 29 Dec 2019

Add a Comment

Login with GitHub to post a comment