Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

SIG Pro in Back End Component

  • johnlanglois
  • johnlanglois's Avatar Topic Author
  • Offline
  • New Member
More
14 years 9 months ago #34522 by johnlanglois
SIG Pro in Back End Component was created by johnlanglois
I have simple image gallery pro working correctly in a front-end K2 article.

I would like to also use it to present the images for editing a single record in the Administrative back end of the site.  However, when I paste the code in, all I get is {gallery}client2{gallery}.

Is it possible that it will not work in the back end?
Also, is there some way that I could calculate the folder name in PHP and pass that value so that the same editing code will work for multiple profiles?

Thanks.

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #34523 by Katia
Replied by Katia on topic Re: SIG Pro in Back End Component
Maybe because you should write
{gallery}client2{/gallery}
instead of
{gallery}client2{gallery}

Please Log in or Create an account to join the conversation.

  • johnlanglois
  • johnlanglois's Avatar Topic Author
  • Offline
  • New Member
More
14 years 9 months ago #34524 by johnlanglois
Replied by johnlanglois on topic Re: SIG Pro in Back End Component
Doh!
Alas, even correcting for the missing slash did not solve the problem.

I know that the path and folder are correct because
$picturepath = "../images/stories/".$this->row->farmphotofolder."/";

Plus the $file names from readdir

AND  echo "<img src=". $picturepath.$file." width = $pictureWidth alt=$file  />"." ";

yields a series of pictures.

However, {gallery}<?php echo $this->row->farmphotofolder; ?>{/gallery}
yields {gallery}client_images8{/gallery}

Notice that the code above that yielded pictures references the folder "images/stories" one folder up. I tried changing that reference in the php code and got
{gallery}../client_images8{/gallery}.

I infer from your first response that when we get things configured properly that there is nothing inherent in putting SIG in a component that would keep it from firing.

Would having JHTML::_('behavior.mootools');
JHTML::_('behavior.calendar');
$editor =& JFactory::getEditor();
jimport('joomla.html.html');

trigger anything that would keep SIG from firing?
Would it help if I pasted the SIG javascript directly into the component?

Thanks for the help.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum