Page 1 of 1

Using the plugin with php code.

Posted: 20 Aug 2010, 22:11
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

Re: Using the plugin with php code.

Posted: 22 Aug 2010, 15:19
by smartino
Any thoughts on how to implement this into the default.php script, this would really be very useful to me....

thanks

Steve

Re: Using the plugin with php code.

Posted: 22 Aug 2010, 23:30
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

Re: Using the plugin with php code.

Posted: 23 Aug 2010, 18:35
by smartino
Any hints?