We tried to set up the image preview using the view=switchimage, but when i check the code its opening phocagallery and then immediately closing it. We basically copied (by typing not copy/pasting) the code from your page, but was unsure what basicimageid was, or if the switchimage has been implemented at all yet.
Any response would be welcome.
view=switchimage doesnt seem to work
- Jan
- Phoca Hero
- Posts: 48536
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Hi, there is no docu
Hi, there is no documentation yet, it is new, I still work on it....
the basicimageid means the id of an image which will be displayed at start on the place where the images are changing...
This displays the detail window:
{phocagallery view=switchimage|switchheight=360|switchwidth=480|basicimageid=71}
This displays the images below this window:
{phocagallery view=category|categoryid=15|limitstart=0|limitcount=5|detail=0|displayname=1|
displaydetail=1|displaydownload=1|imageshadow=shadow1|enableswitch=1}
the basicimageid means the id of an image which will be displayed at start on the place where the images are changing...
This displays the detail window:
{phocagallery view=switchimage|switchheight=360|switchwidth=480|basicimageid=71}
This displays the images below this window:
{phocagallery view=category|categoryid=15|limitstart=0|limitcount=5|detail=0|displayname=1|
displaydetail=1|displaydownload=1|imageshadow=shadow1|enableswitch=1}
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 2
- Joined: 18 Apr 2008, 19:17
We were reading thro
We were reading through the source and PhocaGallerySwitchImage javascript function is being added on your page, with the onmouseover being called up for the images.
I don't see this javascript function being applied on our page. Is there a module or component extra for that? or has it not been fully implemented yet?
Thanks.
I don't see this javascript function being applied on our page. Is there a module or component extra for that? or has it not been fully implemented yet?
Thanks.
- Jan
- Phoca Hero
- Posts: 48536
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
This javascript is r
This javascript is rendered if the parameter 'switchimage' is used
<script language="javascript" type="text/javascript">
var pcid = 0;
var waitImage = new Image();
waitImage.src = '.....components/com_phocagallery/assets/images/icon-switch.gif';
function PhocaGallerySwitchImage(imageElementId, imageSrcUrl)
{
var imageElement = document.getElementById(imageElementId);
if (imageElement && imageElement.src)
{
imageElement.src = waitImage.src;
imageElement.src = imageSrcUrl;
}
}
function _PhocaGalleryVoid(){}
</script>
Do you use the version 1.7.0 ?
<script language="javascript" type="text/javascript">
var pcid = 0;
var waitImage = new Image();
waitImage.src = '.....components/com_phocagallery/assets/images/icon-switch.gif';
function PhocaGallerySwitchImage(imageElementId, imageSrcUrl)
{
var imageElement = document.getElementById(imageElementId);
if (imageElement && imageElement.src)
{
imageElement.src = waitImage.src;
imageElement.src = imageSrcUrl;
}
}
function _PhocaGalleryVoid(){}
</script>
Do you use the version 1.7.0 ?
If you find Phoca extensions useful, please support the project