Keyword

Adding code to item in K2

  • Chess Dad
  • Chess Dad's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 5 months ago #65799 by Chess Dad
Adding code to item in K2 was created by Chess Dad
I'm trying to add some code to a K2 item so I can display a chess viewer.

The chess viewer is a java script and the following script is to be added:
<!-- Chess Viewer stub -->
<script src='http://chesstuff.googlecode.com/svn/deployChessViewer.js'
type='text/javascript'/>

How would I add this code to an item so I can display the chess viewer.

Here is a link to the instructions:

chesstuff.blogspot.com/2008/11/how-to-publish-chess-game-on-your-blog.html

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

More
12 years 5 months ago #65800 by william white
Replied by william white on topic Re: Adding code to item in K2
You would probably want it in item.php.
Check the documentation at the top, there is an explination of templating for k2

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

  • Chess Dad
  • Chess Dad's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 4 months ago #65801 by Chess Dad
Replied by Chess Dad on topic Re: Adding code to item in K2
I know this is somewhat of an old post, but since then I've found an answer that might be helpful to others. I found a module called "flexi custom code". I used this module to put in my code, then used the loadposition code in my item to place the viewer. Worked like a champ. If anyone is interested in this module you can find it at Joomla's extensions.

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

More
12 years 4 months ago #65802 by william white
Replied by william white on topic Re: Adding code to item in K2
Thanks for posting back!

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


Powered by Kunena Forum