Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • Aratype Friend
    #195266

    I noticed even in your demo that article’s title has a number before it. Can I get ride off this number or it is mandatory to have it?

    Thanking you in advance.

    Ninja Lead Moderator
    #524621

    Please let me know where I can see it. Any screenshot will be helpful as well.

    Aratype Friend
    #524740

    From your demo… You see 159 “159-paris-hilton-and-christina”


    1. Capture-Number
    Ninja Lead Moderator
    #525209

    <em>@aratype 413885 wrote:</em><blockquote>From your demo… You see 159 “159-paris-hilton-and-christina”

    </blockquote>

    That means you wish to remove article id from url, this solution works perfectly on Joomla 3.x.

    Open the “components/com_content/router.php“ file

    Step 1:
    Replace:
    $advanced = $params->get(‘sef_advanced_link’, 0);

    With:
    $advanced = $params->get(‘sef_advanced_link’, 1);

    Step 2
    Change:
    ->where($db->quoteName(‘alias’) . ‘ = ‘ . $db->quote($db->quote($segment)));
    To:
    ->where($db->quoteName(‘alias’) . ‘ = ‘ . $db->quote($segment));

    becino Friend
    #554149

    hi bro’s ….. thanks for help writitng this ….. 😀

    i have a joomla 3.3.6 and i dont have this line
    where($db->quoteName(‘alias’) . ‘ = ‘ . $db->quote($db->quote($segment)));

    but i change only the firt line two times in file ……..

    lines 38 and 294

    and all works fine !!!! thanks!!!!

    jooservices Friend
    #554187

    Hi there,
    Just want to give some more information:
    – Should not remove id. It would cause performance issue.
    – Should not do core hacking
    – You can try to use 3rd SEF extension like sh404SEF

    Thank you,
    Viet Vu

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

This topic contains 6 replies, has 4 voices, and was last updated by  jooservices 9 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum