test
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • sbaldwin Friend
    #139308

    Hi,
    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 Friend
    #296784

    create 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 Friend
    #296799

    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>

    sbaldwin Friend
    #300089

    Hi Chris,
    That worked great! All I had to do is change the article ID to link the article…thanks a bunch!

    midcult Friend
    #300133

    Hi,

    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 Friend
    #300137

    u need to set the itemid, just copy the link from the menu and use it as the url for ur link and it’ll give u the correct itemid

    midcult Friend
    #300148

    Thanks 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 Friend
    #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#post118783

    Moreover, 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

Viewing 8 posts - 1 through 8 (of 8 total)

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