Use joomgallery for article images script

  • i use joomgallery as media manager because :

    • i have a lot of different usersgroups and have created an hidden album for each group where the upload there
    • the current media manager from joomla is not friendly
    • User will makes a mess (of everything) so it is nice of you still can move stuff without breaking it.

    For images within an article this is not a problem but is is for the article intro and full image picture. Users can of course select there image but it will brake when images are archieved(to other category). To fix this i made the SQL script below that replaces the image path to a joomgallery url.


    If some one knows how to edit the article edit pages so that the joomgallery plugin shows up instead of the joomla media manager that would be even better but till then this is maybe helpful for others.

    Use at own risk, I`m sure there are people you can make a safer script in php as i`m now depend on the number of " in the string. ^^

    • Offizieller Beitrag

    Hi,


    there is the plugin 'JoomMediaFormField' to use the images of the JoomGallery as article intro or full images. This plugin adds an additional button to the article editor to select the image.

    Even after moving to another category, the image will still be displayed.

    Using an SQL script should not be necessary.


    Regards

    MrMusic

  • To hide the default button i added this css to my template:


    Code
        /*hide default  article image  button*/
        a[href$="/component/media/?view=images&tmpl=component&asset=com_content&author=&fieldid=jform_images_image_intro&folder="], a[href$="/component/media/?view=images&tmpl=component&asset=com_content&author=&fieldid=jform_images_image_fulltext&folder="] {
            display: none;
    }


    Maybe there is an more elegant way that can be added as a config option in the plugin. But for now this also works which why i wanted to share it for other users. :)