-
AuthorPosts
-
sbaldwin Friend
sbaldwin
- Join date:
- May 2008
- Posts:
- 342
- Downloads:
- 0
- Uploads:
- 65
- Thanks:
- 119
- Thanked:
- 15 times in 1 posts
March 18, 2009 at 4:06 pm #139308Hi,
I’m working too many hours here and having a moment and I’m stuck on this question! 🙂 I created a custom module (posistion right) and now I want to place a “link” inside the module using TinyMCE link using the editor.I would like the “link” to go to a new article I just created. What do I use for the URL link to connect it to the article?
A side note…does anyone know of a good extension for creating “coloums” inside an article? I’m trying to create 4 or 5 images across and seperate them with a greay line for like you would see in a newspaper article for enagements etc.
THANKS!
jsliao Friendjsliao
- Join date:
- April 2008
- Posts:
- 817
- Downloads:
- 0
- Uploads:
- 12
- Thanks:
- 25
- Thanked:
- 236 times in 210 posts
March 19, 2009 at 3:47 am #296784create a ‘temp’ menu pointing to the article and activate/publish it
from your site, right click and copy link location and that will be the link u need.
deactivate/unpublish the menu afterwards
questbg Friendquestbg
- Join date:
- May 2008
- Posts:
- 1912
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 146
- Thanked:
- 339 times in 197 posts
sbaldwin Friendsbaldwin
- Join date:
- May 2008
- Posts:
- 342
- Downloads:
- 0
- Uploads:
- 65
- Thanks:
- 119
- Thanked:
- 15 times in 1 posts
April 5, 2009 at 12:28 am #300089Hi Chris,
That worked great! All I had to do is change the article ID to link the article…thanks a bunch!midcult Friendmidcult
- Join date:
- March 2009
- Posts:
- 6
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 2
- Thanked:
- 1 times in 1 posts
April 5, 2009 at 12:58 pm #300133Hi,
great answer for linking to a direct article but how to I keep the menu section (highlighted) from direct link? E.g. If you click on a menu item (section), the menu is highlighted but how do I do this when directly linking to an article like the dude above?
Thanks in advance..
Mike
jsliao Friendjsliao
- Join date:
- April 2008
- Posts:
- 817
- Downloads:
- 0
- Uploads:
- 12
- Thanks:
- 25
- Thanked:
- 236 times in 210 posts
midcult Friendmidcult
- Join date:
- March 2009
- Posts:
- 6
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 2
- Thanked:
- 1 times in 1 posts
April 5, 2009 at 4:13 pm #300148Thanks for the quick reply matey!!
If you could help with my other kinda related question below also, that would be fantastic!
SEF with menu highlight and article comments:
http://www.joomlart.com/forums/topic/problem-sef-with-menu-highlight-and-article-comments/cgc0202 Friendcgc0202
- Join date:
- August 2007
- Posts:
- 2244
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 206
- Thanked:
- 262 times in 1 posts
April 5, 2009 at 5:02 pm #300155<em>@questbg 118783 wrote:</em><blockquote>I’m not sure if this will work, but wouldn’t it be easier to just use the article ID number from the back end?
<a href="index.php?option=com_content&view=article&id=1047">Click here</a>
</blockquote>Hi sbaldwin and Chris,
And this could be done also using the link dialog (click “link” icon found) in the editor, just like how links are added in this forum, for example:
Link to Article From Inside a Custom Module
to provide the URL:
http://www.joomlart.com/forums/showthread.php?p=118783#post118783Moreover, to make the link accessible to those with sight impairement — one of the requirements considered if you want your site to comply with html policies — it is important to include a title of the link:
<a href="index.php?option=com_content&view=article&id=1047" title="provide link title here">Click here</a>
the title is one of the blanks that you are asked to fill via the
In case you have not added the link title before, just copy the link, and repeat the “link dialog” to fill it properly. Alternatively, if you have quite a number of links in an article already, if you already have some basic html skills, it is more easy to add the titles or revise the links via the HTML dialog (click the “HTML” icon) in the editor window.
Word of caution: Linking and SEO-generated URL
I must point out a potential problem of linking URLs from Joomla sites. If you turn on (answer: “Yes”) the SEO — for security reasons and improved Google and search engine ranking — the resulting URL would be quite different from the example given by Chris above:
<a href="index.php?option=com_content&view=article&id=1047">Click here</a>
instead when the SEO is on, what you see is something like this:
Image Presentation : Possibilities
where to SEO generated URL will be something like this:
http://joomlart.bayanihan-saranay.org/jte15x099/artist/photography/119-image-presentation-possibilities.html
If you use the SEO generated URL in your links, and decide to move the article to another site in the future, your link using the SEO-generated URL will no longer work — you will get a 404 error message.
The solution may be simple. Don’t use the SEO generated URL in your links, instead, when linking make sure to use the CID of the article, essentially as suggested by Chris, above. At least that is what works with me, as I just found out.
Can members please confirm if this link works:
Image Presentation : Possibilities
using the CID of the article:
http://joomlart.bayanihan-saranay.org/jte15x099/index.php?option=com_content&view=article&id=119
The drawback of course is that you have to generate the CID based URL.
I will present a version of the issue as a separate thread/ Perhaps someone will know an SEO extension that will solve the problem.
Cornelio
-
AuthorPosts
This topic contains 8 replies, has 5 voices, and was last updated by cgc0202 15 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum