Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

The tag has no usage guidance.

1
vote
0answers
37 views
+50

New Joomla Router: Adding additional item type views

I have a requirement to support two different types of views. Example views are like below. |_ Items |__ Item |_ Another Items |__Another Item So I am registering the views in the router as below. ...
0
votes
1answer
27 views

Generate link to a page with specific language

Lets say I have a menu pointing to an article translated to both english and spanish. How can I generate a link to the english page from the spanish translation? I want to put a notice in all the ...
1
vote
1answer
64 views

Generating URL in CLI

Can anybody shed some light how to generate an url in Joomla command-line application. Seems that budget was cut off at Joomla routing development because: JRoute::_('index.php?option=...
0
votes
1answer
26 views

How to link article to specific menu item?

I have two menu items, for example Menu1 and Menu2. Both are a Category Blog for same category Cat1, but Menu1 has some specified tags. Of course, some articles are present on both pages, and all url'...
0
votes
0answers
19 views

Joomla BuildRule adds language code at the back of setPath

I'm having a problem with building the rule for a particular URL. Here's what I have in my system plugin: //... function onAfterInitialise() { require_once '/path/to/myhelper.php'; $router = $...
0
votes
0answers
14 views

Menu item alias type bug when calling parent url only

i noticed a strange behaviour: Often there are menu structures with hierarchical menu items where the parent has not a single page, but redirects to the first child item, for instance: Jobs - Work ...
1
vote
1answer
32 views

New Router // Nesting, Unique URLs and Multi Parent View Hierarchy

I'm looking for documentation about the new Router arrived in Joomla 3.8/4.0. I already spend some time to figure out how to leverage this new implementation approach to my component and stumbled upon ...
3
votes
0answers
85 views

Joomla 3.8 // New Router & Nested View

I want to use the new router classes to implement SEF stuff. I still struggle to get it to work. I have a view which can show categories. So this view is called categories. If you click a category, ...
1
vote
2answers
473 views

Remove /component/ from URL generated from module for a custom component

I have created a custom component with routing that seems to be mostly correct and have now created a module to display multiple items of the component on the homepage. I have got it to a point where ...
1
vote
0answers
80 views

URL Not Working When SEF is Disabled in Joomla 3.0 Custom Component

I am developing custom component for joomla 3.x. Our urls for non-sef views are not working url: index.php?option=com_mycomponent&view=myview2&id=mycustomeitemid The same url when sef is ...
1
vote
0answers
45 views

How to check if Joomla path is routable

Is there any way to see if a path will route to a component preferably without dispatching it? I can't use CURL or get_headers to see if the status is 200. In other frameworks you can tap into the ...
0
votes
1answer
67 views

Extend the JRoute API?

there is a helper coded: JRoute::_(ContentHelperRoute::getCategoryRoute($item->id, $item->language)) It does precisely what I want it to do, but I need the same functionality for the "Featured" View....
1
vote
3answers
611 views

Create SEF URLs from a Custom Component that does not search on database

I am creating a custom component that will get data by json from another url. So far it works good but I am having some difficult trying to apply a SEF URL with a router.php file. Example, current ...
2
votes
1answer
336 views

Unset not removing parameter from URL

I am writing a component with two views - a list view, and an article view. The list view generates the links for each article as follows, with $text being the variable I want in the URL. <?php ...