Jooglar Logo
 Pathway : Home arrow Forum
Register. Lost Password?
Home
Download
Products
Help & Support
Sitemap
Other
 
 
Jooglar Support Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Link to Source within Joomla Content (0 viewing) 
Go to bottom Post Reply Favoured: 0
TOPIC: Link to Source within Joomla Content
#177
Jooglar (Admin)
Admin
Posts: 144
graph
User Online Now Click here to see the profile of this user
Link to Source within Joomla Content 6 Months, 2 Weeks ago  
Hi!

As you may have noticed, when copying an article from the Virtual Newspaper Manager to Joomla Content, you won't see the link to the source on any place in the content.

IF YOU DON'T WANT TO READ MUCH, JUST DOWNLOAD THIS FILE AND OVERWRITE THE ONE YOU HAVE IN administrator/components/com_periodicos/includes.

==============================================================

For interested people, I detail the changes down here:

To solve this issue at this moment, you should know a bit of PHP scripting.
The link to the source of the article is kept on the database when is copied as a Joomla Content element. It is kept on the table field "text_alias", on the table "jos_content". However, that field is not shown on the content edit menu of joomla.That's why you can not see the link.

There are two ways to show the link within the content text:

1)
The solution is on the file funciones.periodicos.php (under the administrator/components/com_periodicos/includes folder), on line 847. The function copiarNoticiaAJoomla(...) copies the imported item into Joomla Content. You can see that the variable $noticia->Link is stored in the field "text_alias".
If you want to have that link at the end of the content (which is the most logical place I can think of) you can do a little hack to the function, so it appends the link to the end of the content.
The source page will open in a new window. It can be changed by rewriting the code to target="....." instead of target="blank".

The link is right aligned and the text , in English, is "Go to source". The text can be changed in the lang file english.php. Just look for the constant _PERIODICOS_IR_A_FUENTE.

I upload the modified file for you.

2)
The second way is to modify the function on which the content is shown. The problem is that function is in the joomla core and you have to be very careful to change it. I won't post that at the moment so no one wrecks his joomla installation, .
I think with the first one it's enough
File Attachment:
File Name: funciones.zip
File Size: 7165
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/07 11:01 By Jooglar.
  The administrator has disabled public write access.
Go to top Post Reply