How can i integrate joomla media selector into a custom component - joomla

I'm writing a custom component for joomla 1.5 and i been searching for a way to integrate
com_media image selector into it.
All i want, is to have a functionality like, the image selection in the create article page.
Anyone knows how to do this?
Is there an API in joomla to do this, or do i have to see how is done in com_content an start
form there?

You can use a select box with image preview like the one used for the Sections and Categories thumbnails. This is much easier to integrate though images must come from single directory.
See the com_sections and com_content files in you Joomla Administrators components directory.
Also try posting this in the Joomla Forums.

Related

Joomla - Remove product image zoom function

I am relatively new here but am looking forward to the support and knowledge i can gain here.
I have recently taken over a Joomla site that has a custom shopping cart which as far as i can tell is called dnaCatalog. I have tried to Google it but came up nothing but the actual dna workings of Joomla and other such things.
What i would like to achieve is to remove the image zoom from the product images in the shopping cart. I have searched the admin back-end through the plugins and modules but cant find any reference to any form of image zoom so I am guessing its hardcoded into the theme or catalog.
I currently have the site on a testing server here... http://geekdimm.com/ragland-current.
I have just updated it to the current version of Joomla 3.6.5
Your help would be greatly appreciated.
Many Thanks in advance.
The zoom function is coded as a JQuery add on, you will find it at templates/quasar/js/jquery.loupe.min.js. The optimal way to solve this is to find the calls to the script above and remove them (be careful what you remove, you should know what you doing when editing the core files).
Alternatively look for the class called loupe which are associated to your images, this gives your images the zoom functionality.
The easiest (but dirtiest) way to solve this is to go to your templates css file
templates/quasar/css/template.css and on line 7127 add the CSS display:none!important;

Custom data in pyro cms pages, such as images or other data

I'm wondering how in PyroCMS I can add a custom field to a page. Ideally I would like to have an image area at the top of the layout, and have a custom field in pyro that would allow someone to populate that image from the pages module. I realize that there are some image plugins that allow me to attach images to pages, but I would like to be able to add the images directly into the page in the admin (as well as other custom fields for the pages). Even on a separate tab would be fine with me. I'm fine building something if someone can point me in the right direction.
Currently if you want to add a custom field to a page you have to hack the module. This is obviously not ideal and im not really suggesting it, but I had to do it for http://tedco.org/business to add a "Subtitle" field to each page.
2.2/develop is having its Pages and Blogs moved over to Streams, so you can add custom fields to all pages globally, meaning you can add an image in if you like, or append a US State for some reason, or add a slider. Whipee!
So right now: Hack it or wait. 2.2/develop will have your feature in a week or two.
I'm not sure you can do this directly from the pages module yet or not without some customization (possible hacking) though, I just asked and will update if possible.
In the meantime this might be helpful:
Consider looking into PyroStreams. for this though, it will require the Pro version of PyroCMS or you can purchase it from Parse19 directly.
You might find this article helpful about organization and page layouts.
Here is an article called Dynamic Pages with PyroCMS and PyroStreams though, it's a bit outdated now.
You may also make use of the gallery module, which is free though, I'm not sure this will meet your needs.

Gallery of images with long descriptions in Joomla

I need to make something like gallery of magazine covers in joomla, and after clicking one image, it should open a page, where viewer would see an image of cover (that he could open in full size) and table of contents with links to some articles. Administrator should also be able to (reasonably) easily add a new covers with content to a gallery. I'm more like a Drupal guy, so I'm asking Joomla guys - what would be the best/easiest way to achieve this (including using extensions etc)? :)
You should be able to do that within the standard Joomla framework. In this case -
Have a main category that each issue would be a subcategory of.
Each issue of the magazine would be a new category, the magazine cover would be the image for that category.
Add the content as articles in the appropriate category
Display the parent category to get the listing of each issue.
Clicking the category would then display a list of links to the articles within the category.
This can definitely be accomplished with the K2 extension, but you can probably do it within the Joomla category/article framework with some simple template overrides.
To suit your needs, you will be best off using a Photo Gallery component and changing the link from opening an iframe/full size image, to an article OR a Portfolio component which I think might be the easier option.
One of my personal favorites is BT Content Slider. I have used it on multiple pages and adapted the code to suit our own needs and it works like a charm. Would also recommend it for you too.

Use Media Manager as filepicker in component

I'm developing a component in Joomla 1.6, is a Document Manager and I have all the funcionality, but now I want to include the Media Manager as File Picker.
In Joomla 1.6 Media Manager is prepared to be use like a Image Picker (as we can see in the Article Manager where you can select a Image for the content), but I want to know if it's possible to reproduce the same action with all filetypes without modifying the Media Component.
I know how to use the media manager as Image Picker in my component. In fact I answered to this question.
use joomla com_media image selection in my custom component
Can someone help me? :)
Byes
Ok, after the study of the component i got the fact that is not an easy question.
How can we use another filetypes?
/administrator/components/com_media/models/list.php
on line 116 exists a switch which works as a filter
If we want to add a new functionality (with a button)...
Where can we add the button?
/administrator/components/com_media/views/images/tmpl/default.php
Where can we add the javascript functionality?
/media/media/js/popup-imagemanager.js
Doing that we have some problems
1) we need to hardcode in every joomla.
2) I'm not sure, but the changes might be delete after a Joomla Updated.
Another chance is make a fork of the media component with theses changes ready to install.
Byes
Thanks to the tumbleweed badget to encourage me to write the response.

Add component into Article?

I need to add a component into my Joomla articles.example(i have create a article in joomla ..in this article i needed added image gallery.. that gallery functions are in one joomla component..) how to create it?
There are a couple of ways to do this. First, the easiest is to get a plugin specifically designed to do this. I prefer Simple Image Gallery Pro. There is a free version as well http://extensions.joomla.org/extensions/photos-a-images/photo-gallery/1468. With this plugin, you simply upload your images to a folder for the gallery you wish to create, then reference that folder in the article you want the gallery to appear in with {gallery}myphotos{/gallery}
You can also replace the Joomla article with the extension K2. It has galleries within content items built in. It uses Simple Image Gallery and is written by the same developers.
Last, you can also use a plugin that allows you to load components within an article - http://extensions.joomla.org/extensions/2723/details.
EDIT
I forgot one. Last, last some of the good image gallery components also come with modules that allow you to display galleries in a module position. You would need to have a menu item or advance module manager in order to assign the module to the correct article, but it would give you a lot of flexibility in where you place the gallery.

Resources