Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • giulia72 Friend
    #877286

    Hi
    I would to prevent copy of content / right click of mouse in a single page.
    I found a javascript code to do it, but I don’t know how to implement it in a single article.

    Do you have any suggestion?

    Thanks
    Giulia

    Pankaj Sharma Moderator
    #877292

    Hi
    You can add the code in template options > Custom tab before /head or /body using
    Hope it helps .

    giulia72 Friend
    #878835

    Yes but in this case I will add the code in the whole website .
    I want to add it only in a single page

    Pankaj Sharma Moderator
    #878855

    Hi
    then You can add it in your article or in the custom html module that is published on that page .

    giulia72 Friend
    #878882

    It is not so easy as any php code is ignored in a single article unless you know how to insert a php code in a Joomla article

    Pankaj Sharma Moderator
    #878893

    Hi
    These are the only options , or u need to do customization in php files .
    Article files are defined in the /html/com_content/article/default.php

    giulia72 Friend
    #878904

    The second option is for the whole website not for only one article

    No problem
    I will look for other way

    Thank you

    giulia72 Friend
    #879110

    For your info:
    there are several Joomla plug-ins (in Joomla estensions) that allow to insert php, javascriptm and other code in a single article

    Pankaj Sharma Moderator
    #879122

    Thanks for sharing .
    It will help others users . You can also search Extension on JED to prevent copy content on site .

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

This topic contains 8 replies, has 2 voices, and was last updated by  Pankaj Sharma 8 years, 9 months ago.

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