English (United Kingdom)
Jms Multi Site, formerly joomla multisite.
Create, share multiple joomla sites in few clicks !
Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View e-Privacy Directive Documents

Welcome, Guest
Please Login or Register.    Lost Password?

Links to shared articles within articles, not menu
(1 viewing) (1) Guest
Go to bottomPage: 1234
TOPIC: Links to shared articles within articles, not menu
#1955
Links to shared articles within articles, not menu 15 Years, 3 Months ago Karma: 0
Hi,

I have a master site and a slave and I´m using article sharing.

The problem I have is that I have links within my articles to related articles and this don´t work on the slave website because they do not exist in it.

Example of a link within an article:

www.master.com/index.php?option=com_cont...ticle&Itemid=233
Itemid 233 exists in master

www.slave.com/index.php?option=com_conte...ticle&Itemid=233
Itemid 233 doesn´t exists in slave = 404 error

How can I share an article and show it on a slave site without having broken links like this?

Thanks,
Pablo
clicterapia
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1956
Re:Links to shared articles within articles, not menu 15 Years, 3 Months ago Karma: 54
The reason is that the link present in your page is relative to current domain.
You should have a full URL in the page to ensure it is redirected to the correct website.

Solution no 1)

If the editor you are using does not allow to save a full URL when you create the link, you could use a special keyword that you could replace later by our "Search/Replace" plugin.
www.jms2win.com/free-download/doc_downlo...rch--replace-utility

This could give you a workarround.
ie. the link could be written {master}index.php?option=com_content&catid=37&id=180&view=article&Itemid=233

and ask the plugin to replace {master} by www.master.com

In such way, the URL would be always www.master.com/index.php?option=com_cont...ticle&Itemid=233

The disadvantage of this solution is that you are redirected to the website that has created the article.

Solution no 2)

Another solution could be to use the link created by a menu item on the articles sharing.
To do that, create a temporary menu entry and select the "MultiSites article layout" or another layout.
There you will be able to select the site and the article.
Once the menu item is save, you can re-open it and copy the link created for this item.
You should have something like
index.php?option=com_multisitescontent&view=article&site_id=XXXXX&id=NNNNN

If you have a look on the link in detail, you will see that the option is different (multisitescontent) and that you have an additional parameter (site_id).

The advantage of the solution no 2 is that you remain on the same domain and you just display the articles from another website.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
Last Edit: 2009/09/26 16:30 By edwin2win.
The administrator has disabled public write access.
 
#5045
Re:Links to shared articles within articles, not menu 14 Years, 4 Months ago Karma: 0
Is there a better solution to this yet?

I have 50 slave sites, all with links to other pages within the master site, and it's really unacceptable that relative links don't become absolute through the multisite article sharing.


Nicole
nniiccoollee
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#5050
Re:Links to shared articles within articles, not menu 14 Years, 4 Months ago Karma: 54
The concept of the article sharing is not to redirect the user to the original website but display the shared article in the current website. If you replace the URL by an absolute path, this will redirect the user to another website.

Perhaps this is a feature that I will add in a future version of the "Articles Sharing for JMS"
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#5375
Re:Links to shared articles within articles, not menu 14 Years, 2 Months ago Karma: 0
This is something major. You should have a disclaimer on the JMS home page that reads "This is a great solution if you really want to limit yourself. Let us take away some of the most basic and common functions of even the most simple Joomla site. Oh' and we'll charge you for it.". Links in an article to and other article contained in that website is as common as it gets. This is article sharing only through menus.
The best work around that I found for this is to enter in the url that comes after the domain. example "index.php/example.html"
This is still more work then what it should be.
BaltaDesign
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#5378
Re:Links to shared articles within articles, not menu 14 Years, 2 Months ago Karma: 54
Sorry but I don't understand this post.
Would you be more clear.

If you want to add a link into an articles that point to another article using the "Article Sharing", this is absolutely possible as you would do with a normal article.
This can be done like you would do it with a normal joomla article. Like with standard joomla article, just put the link that you could get from a fake menu item that point to the article you want. Instead of using the joomla article menu item, use the Multisites Article Sharing menu item to compute the link that must be inserted in your article.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
Last Edit: 2010/09/30 10:02 By edwin2win.
The administrator has disabled public write access.
 
Go to topPage: 1234
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla