Keyword

SOLVED: Tutorial for extra fields?

  • Johann Scharfetter
  • Johann Scharfetter's Avatar Topic Author
  • Offline
  • Senior Member
More
12 years 2 weeks ago - 11 years 7 months ago #103205 by Johann Scharfetter
SOLVED: Tutorial for extra fields? was created by Johann Scharfetter
Hello!

I'm new to K2. I wonder where there is a tutorial or a video about how to create templates with extra fields?

Please could you indicate me wher to find it, if there is any?
I'm an absolute beginner in php.

THANK YOU!

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

More
12 years 2 weeks ago #103206 by william white
Replied by william white on topic Re: Tutorial for extra fields?
getk2.org/documentation/k2class2012
a good place to start

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

  • Johann Scharfetter
  • Johann Scharfetter's Avatar Topic Author
  • Offline
  • Senior Member
More
12 years 2 weeks ago - 12 years 2 weeks ago #103207 by Johann Scharfetter
Replied by Johann Scharfetter on topic Re: Tutorial for extra fields?
Hello,

what I found out till now ist the following code:

Log in  or Create an account to join the conversation.

More
12 years 2 weeks ago #103208 by Lefteris
Replied by Lefteris on topic Re: Tutorial for extra fields?
@scharfet

What exactly are you trying to achieve? The extra fields are being displayed automatically since you have set up accordingly the category settings.

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

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

  • Johann Scharfetter
  • Johann Scharfetter's Avatar Topic Author
  • Offline
  • Senior Member
More
12 years 2 weeks ago - 12 years 2 weeks ago #103209 by Johann Scharfetter
Replied by Johann Scharfetter on topic Re: Tutorial for extra fields?

Lefteris Kavadas wrote: @scharfet

What exactly are you trying to achieve? The extra fields are being displayed automatically since you have set up accordingly the category settings.


Hi!

The default method despays the extra fields in a simple table format.
But I want do display the extra fields as I need it.

For instance: I have 6 extrafields that are 3 questions and 3 answers which I would like to display in a slider as you can see here.
iteplus.es/marenostrum/index.php?option=com_k2&view=item&layout=item&id=1&Itemid=134#%C2%BFc%C3%B3mo-vemos-la-homeopat%C3%ADa-en-marenostrum

An other thng: I have an extra field which should be displayed in a div with different css styles (pink background)

I want to get this: estudiohr.com/clientes/marenostrum/03.html

What I want to ask is what is the correct way to add extra fields to a k2-template? (Not using the standard display of extra fields in a table.)

I hope I could explain myself clearly.

Thank you!

======================================================

William White wrote: getk2.org/documentation/k2class2012
a good place to start

Hi William,
I have watched all the vidios on this page, but none of them are informing about extra fields and how to display them in a template.

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

More
12 years 2 weeks ago #103210 by Lefteris
Replied by Lefteris on topic Re: Tutorial for extra fields?
Make a template override to item.php and then manipulate the output as you wish. Since you have specific styles for specific fields you may need to target your fields by using their id.

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

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

  • Johann Scharfetter
  • Johann Scharfetter's Avatar Topic Author
  • Offline
  • Senior Member
More
12 years 2 weeks ago - 12 years 2 weeks ago #103211 by Johann Scharfetter
Replied by Johann Scharfetter on topic Re: Tutorial for extra fields?
Hello!

How to display extra fields?

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

  • Johann Scharfetter
  • Johann Scharfetter's Avatar Topic Author
  • Offline
  • Senior Member
More
12 years 2 weeks ago - 12 years 2 weeks ago #103212 by Johann Scharfetter
Replied by Johann Scharfetter on topic Re: Tutorial for extra fields?
Hello!

I need to know whether this code is the best way to display extra fields.
Log in  or Create an account to join the conversation.

More
11 years 9 months ago #103213 by mahdi
Replied by mahdi on topic Re: Tutorial for extra fields?

William White wrote: getk2.org/documentation/k2class2012
a good place to start

I feel your answers is reluctantly
Because most of them are not efficient

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

  • Johann Scharfetter
  • Johann Scharfetter's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 9 months ago - 11 years 9 months ago #103214 by Johann Scharfetter
Replied by Johann Scharfetter on topic Re: Tutorial for extra fields?
New website:

Hello,

I tried to add extra fields to a certain position in K2 item view in a new website.

What I did:
1.) In the Category-settings: the correct extra fields group is associated (Associated "Extra Fields Group")

2.) I added this code to item.php
Log in  or Create an account to join the conversation.