Opening a PicLens RSS feed from a standard page
Posted: 31 Jul 2008, 11:16
Hi, a strange request I know but...
Is it possible to open a PicLens gallery from a non-phocagallery menu page?
i.e. have an RSS feed created ready on a gallery page and then on another page have a button that takes the user straight into the PicLens experience. I've found that I can use code similar to the below to launch the gallery:
I know that when I create a Phoca Menu item in the Joomla Admin extra styles and code is added to the <head> of my page, e.g.
Is there anything else I would need to add?
I suppose this could just be added to my templates code - or is there a better way to save on loading all the extra css & js on all pages? - e.g. I may be able to load this in through a module position?
Is it possible to open a PicLens gallery from a non-phocagallery menu page?
i.e. have an RSS feed created ready on a gallery page and then on another page have a button that takes the user straight into the PicLens experience. I've found that I can use code similar to the below to launch the gallery:
Code: Select all
<a href="javascript:PicLensLite.start({feedUrl:'yourfile.xml'});">
Code: Select all
<!--[if IE]>
<link rel="stylesheet" href="/components/com_phocagallery/assets/phocagalleryieall.css" type="text/css" />
<![endif]-->
<style type="text/css">
#phocagallery .name {color: #ffffff ;}
.phocagallery-box-file {background: #000000 ; border:1px solid #333333;margin: 5px;padding: 5px;}
.phocagallery-box-file-first { background: #000000; }
.phocagallery-box-file:hover, .phocagallery-box-file.hover {border:1px solid #666666 ; background: #050505 ;}
.ol-foreground { background-color: #f6f6f6 ;}
.ol-background { background-color: #666666 ;}
.ol-textfont { font-family: Arial, sans-serif; font-size: 10px; color: #000000 ;} .ol-captionfont {font-family: Arial, sans-serif; font-size: 12px; color: #ffffff ; font-weight: bold;} </style>
<!--[if IE]>
<style type="text/css">
phocagallery-box-file{
background-color: expression(isNaN(this.js)?(this.js=1,
this.onmouseover=new Function("this.className+=' hover';"),
this.onmouseout=new Function("this.className=this.className.replace(' hover','');")):false););
} </style>
<![endif]-->
<style type="text/css">
#sbox-window {background-color:#000000;padding:10px}
#sbox-overlay {background-color:#000000;}
</style>
<link id="phocagallerypiclens" rel="alternate" href="/images/phocagallery/1.rss" type="application/rss+xml"
title="" />
<script type="text/javascript"
src="http://lite.piclens.com/current/piclens.js"></script>
<style type="text/css">
.mbf-item { display: none; }
#phocagallery .mbf-item { display: none; }
</style>
I suppose this could just be added to my templates code - or is there a better way to save on loading all the extra css & js on all pages? - e.g. I may be able to load this in through a module position?