Using the plugin with php code.

Phoca Gallery plugins - plugins for Phoca Gallery extension
smartino
Phoca Member
Phoca Member
Posts: 36
Joined: 21 Jul 2010, 19:52

Using the plugin with php code.

Post by smartino »

To all,

I changed the components/com_phocagallery/views/categories/tmpl/default.php script to include some text at the beginning before displaying the actual categories. I also included pictures within this text, but was wondering if I could insert the below code instead? This is the phocagallery plugin statement I use within my K2 document, but wanted to put it into the script, but unsure of the syntax?



{phocagallery view=category|categoryid=2|imageid=42|displaydescription=1|displayname=1|overlib=3|displaydetail=1}

Thanks

Steve
smartino
Phoca Member
Phoca Member
Posts: 36
Joined: 21 Jul 2010, 19:52

Re: Using the plugin with php code.

Post by smartino »

Any thoughts on how to implement this into the default.php script, this would really be very useful to me....

thanks

Steve
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Using the plugin with php code.

Post by Jan »

Hi, this plugin code can be read only by content, it means it must be run in content, not is html or php code :-( - you can add the whole plugin code to your code (but you need to find only the code you need)

Jan
If you find Phoca extensions useful, please support the project
smartino
Phoca Member
Phoca Member
Posts: 36
Joined: 21 Jul 2010, 19:52

Re: Using the plugin with php code.

Post by smartino »

Any hints?
Post Reply