You can inject system messages at any point in the page render cycle like so:
JFactory::getApplication()->enqueueMessage('My glorious message','error');
The jdoc tag basically creates the place host and loads needed files required to inject and display messages. Hope this helps, but depending on exactly where you plan on creating message in code could be ...
In TinyMCE (the default editor) and also JCE Editor and probably most editors, a pasted url is automatically changed to a hyperlink if you press the space bar or the return key immediately after the link.
This is convenient but you may still want to edit the hyperlink to add title text for better SEO.
Weblinks component is not a locked extension and can be uninstalled anyway, even in your current J2.5 site.
Note though, that despite the component is allowed to be uninstalled, doing so can possibly give you minor issues when updating/upgrading Joomla, mostly within the database because of the absence of the relative tables.
Before attempting anything below, make sure you have a working backup of your complete site, just in case.
First check for any files in your Joomla installation. Using FTP look at and remove the whole folders (if found) in the following locations:
If you link to an article using the WYSIWYG editor's button then it creates a link with a structure such as the following:
That Itemid tells the router what menu item to base the page's layout on - what modules to assign etc. ...
Using Brian's answer (thanks very much @Brian Bolli) and this post - https://stackoverflow.com/questions/19323010/execute-php-function-with-onclick - I figured out how to make the link load a page with the message at the top.
The link's code looks like this:
<a href="index.php/animals?multiple=true" title="Add multiple animals to mob"><i class="...
A "task" is a class method (function) in a component's controller.
In your case, weblink is the controller and go is a method within the controller.
Here is a simple and clear tutorial: How to add a New Task to your Joomla 3 Component from InmotionHosting.
I'll bring the screen captured snippets into text here, but certainly visit the link for the ...
Joomla needs to have an indication of the menuitem (ie itemid) to know how to display all the stuff around the item being shown - templates, modules etc. It tries to determine the most appropriate menuitem to use based on certain things like what menuitem you're currently on, language etc. It looks as if Joomla is using the itemid of your home page.
As an alternative, you could have opened up your template and used php's native strip_tags function which allows a list of exceptions, so...
echo strip_tags($this->item->introtext, '<img><p><listofallowedelements>');
It appears on review of Christo Kiwi's solution that it only works with a link which has an identical part of which you wish to remove.
Based on your example, I suspect that your link is a variable and so you may need to take a slightly different approach.
You first need to identify the start position and end position of the string component in the intro ...
index.php/2-uncategorised/9-assurance resolves to default menu item, therefore the condition $menu->getActive() == $menu->getDefault() is met.
I strongly advise not to hide the component. If you do, any page that resolves to default menu item will not have its content displayed. This will break part of your site's functionality.
Generally you need to find a variant of the Joomla 3.5 that will work; usually it is stripping off the SEF, etc to a simplified version. Once you find that, you can adjust your .htaccess to reform the J1.5 version into the simplified J3.5 version.
I fixed this error. So I found out that this happens sometimes with peoples Joomla installations and it's most often occuring on Joomla systems that have been migrated from earlier versions.
the fix is actually built directly into the Joomla Admin panel. To fix this problem you need to go onto the menu manager and click the 'Rebuild' button.
See the image ...
The simpliest way or at least the way I achieve the same goal as you have is using Joomla Content Editor together with K2 Links for JCE plugin.
There are also plugins for VirtueMart and other Joomla extensions for this editor. Furthermore, this editor is very customizable in everything you can think of, and is free. Only some of its extensions are paid, but ...