How to make internal article links in Joomla? - hyperlink

I'm trying to create a link in one Joomla article that points to another article, but can't see how this should be done.
Could you please tell me how to do it?

You can link to it like this:
index.php?option=com_content&view=article&id=ARTICLE_ID

Use the JCE Editor. Then follow these steps.
Select the 'link' option
Select browse/content
Select the content item
Select 'insert'.
This is one method, but there are many others. The example uses Joomla 2.5 but the same process is used in Joomla 3.0.

To create internal linking between different div or p just create links like this
Go to div one
Note: must add full URL of current article and then add #name.
<div><a name="div1">Here is div one</a></div>

Related

How to add a hyperlink in a text translation in prestashop?

When I try to choose a product, when it is out of stock, it shows me the following mesage "There are not enough products in stock". So I want to make the "products" hyperlink.
I tried to edit the products with <a> tags. So I wrote it like this:
There are not enough products in stock
, but unfortunately it didn't work and it shows me the <a> tags as a text.
How can I make the word products a hyperlink?
The Prestashop version is 1.7.5.
Thank you in advance!
Go to the theme folder and find theme_name/templates/catalog/_partials/product-add-to-cart.tpl in there find {$product.availability_message} and modify it like this {$product.availability_message nofilter}. It should help
P.S. Do not forgot to clear cache and recompile

Remove bloggers automatic 'add URL' feature to menu items

My Blogger template (klarity) automatically adds my domain name infront of any link I want to add to my menu. For example: I want to create a link to my page 'about'. All I need to do is create a list item with a link pointing towards /about.html.
This is a problem when I want to link a menu item with an external domain. So if I want to create a link between the menu item 'shop' and www.myshop.com I cannot simply change the href of the link to www.myshop.com because blogger adds my domain name infront of it, making it look like: www.mydomain.com/www.myshop.com.
From what I understand Blogger does this through the following code: data:post.url or similar. I have looked for that kind of code and tried cutting it out but so far I have not managed to get rid of www.mydomain.com infront of every list item.
How can I remove www.mydomain.com from my menu items? This is the only solution I could think of, if there are any others please do suggest them!
So I actually figured out the problem, it was really easy:
Just change the link so that it looks like this:
My domain
Make sure you don't forget the http, otherwise you are going to get errors (thats's the mistake I made)

How to properly encode links to external URL in MVC Razor

This view suppose to show a list of hyperlinks, each pointing to an external URL. The goal is for the user to click one of these links and have their browser open a new tab with the selected URL.
Currently I have the following markup:
#Html.ActionLink("SomeSite", "http://subdomain.mydomain.com/SomeSite")
This markup produces:
http://localhost:58980/AccessInstance/http%3a/subdomain.mydomain.com/SomeSite
instead of :
http://subdomain.mydomain.com/SomeSite
What can I change in my markup to make this work as I expect?
You don't need to use #Html.ActionLink for that. Just use a plain A tag:
SomeSite
Html.ActionLink is specifically for generating links to actions defined in MVC controllers, in the same app. Since you're linking to an absolute URL, you don't need any of the functionality that Html.ActionLink provides.
Two ways :
1. update the database column with full link:
eg SQL:
update ProductTable set ProductLink='http://www.example.com/Product/Mobiles' where ID=123
In asp mvc view
View
2. Hardcode the http part and list from model
View
Hope helps someone.
While a ViewBag is overused and not the best choice most of the time this is something that I had done when inheriting someone else's mvc app to do a quick fix for a URL that I needed to redirect to with a specific dynamically changing querystring parameter
<a target="_parent" href="http://localhost:56332/services/#ViewBag.factory">View Service</a>
Using .NET Core 6
This seems to be the most correct answer:
Link
This will generate the following result:
As you can see at the bottom left corner of the window before clicking the link, the URL address was rendered as it is (NOTE: The cursor was recorded out of place for some reason, that's a ShareX problem, ignore it).
Than link will be directly saved as a nvarchar(750) type (probably any character like type will do the work). No changes to the original link were made before saving it or on reading:
You need to take into account your RouteConfiguration.
routes.MapRoute(
name: "Default",
url: "{controller}/{action}"
because you are specifying the action link as the entire link that you want to redirect.
I would recommend that you use the #rossipedia answer because you can make tricky things like putting a span inside the link
Here to display link that are clickable in index page
<td>
#Html.ActionLink(item.FileName, "../Uploads/Catalogue/"+item.FileName)
</td>

How to navigate?

Say I create an HTML file with two .page on it. In the first .page, I'd like to have a link to the second .page.
Is there a way to navigate between pages without having to write my own JS? This seems to suggest I do have to write JS: http://view.jquerymobile.com/1.3.2/dist/demos/widgets/navigation/.
However, I'd would rather set an id attribute for one of the pages, then maybe define some data attribute in the link to tell jQuery mobile where to go. Possible?
I'd also like to specify what kind of transition effect to use.
You can use standard anchor links, just give an id to your page and set the transition via the data attribute
Link to Page 2

How to get a link beside the content in select_tag?

select tag:-
<%=select_tag "names",options_from_collection_for_select(#users,"id","name",#user.id)%>
Right now my dropdown looks like this:-
john
matt
sara
But I want to have it like:-
john edit
matt edit
sara edit
Where "edit" is the link which can edit a particular user.But I am not able to put a link into select_tag.
Thanks
There's no way to do this in Rails out of the box - this is rather uncommon task. Yet I see two options here:
use solutions like this;
find yourself a suitable jQuery plugin like this. Most of them will turn the select tag into divs, which can be further customized.

Resources