Keyword

Using PHP to show Extra Fields in sidebar?

  • Peter Sorensen
  • Peter Sorensen's Avatar Topic Author
  • Offline
  • New Member
More
11 years 2 months ago #116104 by Peter Sorensen
Using PHP to show Extra Fields in sidebar? was created by Peter Sorensen
Here is a tricky one - I'm not really sure if there's a way to do this or not, but I figure I'll ask and see. So I've gone ahead and added:
Log in  or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 2 months ago #116105 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Using PHP to show Extra Fields in sidebar?
Hello Peter,
You either need to create a new K2 module base on the K2 content module or you need to modify your template's index.php and item.php.

The second one is quite easier and since you know your way around coding it will be a piece of cake.

First open you index.php and exclude all the sidebar modules from your item views.
Then open item.php and use the markup of your index.php. This meaning you have to include your sidebar inside your item.php and two module positions one before the extrafields and one after.

PS. There are a lot of snippets about modules and module positions inside this forum that will make your life easier.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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