Creating custom module: Menuitem SEF links? - joomla

I have a Joomla site that I am working on, building some custom modules to control content.
I am using a menuitem field type:
<field type="menuitem" name="loc_nav_item" label="Link URL" ></field>
And then echoing out:
However, even though I have SEF urls active and working on the site, this creates a url based on the ID like this:
I am relatively knew to Joomla, even more so with custom module creating. Is there something I am missing here that will allow the module to generate the proper, SEF url?
Joomla 1.7 (required by client...)

Yes! You need to apply the JRoute function to it - this effectively hasn't changed since Joomla 1.5 so you're fine using it on Joomla 1.7. See the Joomla doc here for more info for the 11.1 platform though.
So you need to use something along the lines of:
Also tell your client Joomla 2.5 has no visible differences to Joomla 1.7 except has a tonne of extra security features missing in Joomla 1.7. He's asking for himself to be hacked!!

Related

Joomla friendly URLs not working after update?

Hi and thanks for reading&answering my question. I am fairly new to Joomla,however I have built a directory website and started to put some content. I have created the standard pages(contact us, privacy etc) and added businesses. I would like SEO friendly URLs so I set Search Engine Friendly URLs, URL Rewriting --YES, and Suffix --No. However, Joomla somehow rewrites my alies and change them. example: mywebsite/bar-and-dinner is displayed now as my website/bar-din-r. I contacted the support of the plugin I use and they told me that I must have had some filters on Joomla that creates such a problem. I tried to purge cache on the website & server still the same. I just updated to Joomla 4.0. Thanks in advance for your help.

Integrating Laravel app into Joomla CMS

I would like to build a custom application in Laravel framework and include it in Joomla.
What I would like to do is to replace central content of Joomla with application served from content.
Joomla url: http://www.joomlasite.com/campaign-directory -> should show content from laravel url: http://www.joomlasite.com/laravel/directory/showall
I noticed component Joomi for Joomla, but Iam not sure if this component will be able to do that.
Please advice.
Thanks!
I think you mean Jumi, and yes, I think that Jumi can do what you want, but I believe there are other easier ways to achieve what you need to do. What you can do is use the iFrame Wrapper component in Joomla to "wrap" your lavarel application and display it in Joomla. Try that before using a Jumi if possible.

Add static javascript to every page of joomla

Im completely new to Joomla development. I need to develop Joomla plugin that adds static javascript to the footer of all the pages of a Joomla site. Also, the plugin would need to save 2 fields in database, and access these fields on per page basis. Also, Admin panel is needed.
Now, my questoion is, where do i start? Joomla plugin development is a big task, so if I can get some pointers as to where to start, it would be very supporting.
Im not asking for direct code, but just the right direction to start.
Thanx in advance....
Joomla has three types of extensions (what you refered to as plugin): components, modules and plugins, where each has a different purpose.
If you need to add javascript to all pages, the best place is your template. If you don't have access to template, just building an extension, then you have to create a content plugin.
If you need to create extension with admin panel which also works with database, you need to create a component. The best place to get started is tutorial Developing a MVC component for Joomla 2.5

Mapping Old URLs to new joomla 2.5 website SEF urls?

I have a weird situation. A client of mine has a website having this kind of URL:
OLD URL: website.com/products/the+product_1.php
Now the new website that we developed has joomla 2.5 and has all content in there... So we have enabled Joomla SEF there. Now the issue is how to map the OLD urls to new Urls.
And the new Joomla 2.5 URL Looks like this:
New URL: website.com/products/digi/category/the_product_1
Now the issue is the search engines have indexed the OLD URLs and client does not want to loose the Page Ranking as you know how it matters.... They have about 18k URLs.
How best I can map the Old URLs to new URLs?
Please help?
Hm, why didnĀ“t you use the Joomla build in redirection manager?
http://docs.joomla.org/Help17:Components_Redirect_Manager
Sure it takes some time to build the links into it, but from my point of view this would be the best way. Then there is no need to develop something and everything can be managed in joomla.
You can also write a script which add links to the SQL DB if needed for this component.
The easiest way would be to create a system plugin that looks for the old product URL pattern and fires a redirect to the new URL. You should also look at this list of new and renamed events as some of them have changed since the plugin documentation was written.

Joomla 2.5 language code in URL. How to disable?

I have Joomla 2.5 with built-it multilanguage system. Main language is russian and second is english.
In 2 specific articles I have iframes with src="/freeflight2/form.php". In russian version of the site the iframe loading correctly. But in english I get URL of iframe with language code: http://xxx/en/freefligh2/en/form.php which causing 404.
I also tried to write full url, but Joomla again inserting language code.
Is there any way to fix it?
Is this custom or within Joomla? If custom have you tried using JPATH to get the base path? If within Joomla are you using an editor like JCE to create the iframes?

Resources