- Posts: 58
COMMUNITY FORUM
SOLVED: Tutorial for extra fields?
- Johann Scharfetter
- Topic Author
- Offline
- Senior Member
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.
- william white
- Offline
- Platinum Member
- Posts: 3722
a good place to start
Please Log in or Create an account to join the conversation.
- Johann Scharfetter
- Topic Author
- Offline
- Senior Member
- Posts: 58
what I found out till now ist the following code:
Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
- Posts: 8743
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
- Topic Author
- Offline
- Senior Member
- Posts: 58
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!
======================================================
Hi William,William White wrote: getk2.org/documentation/k2class2012
a good place to start
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.
- Lefteris
- Offline
- Moderator
- Posts: 8743
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
- Topic Author
- Offline
- Senior Member
- Posts: 58
How to display extra fields?
Please Log in or Create an account to join the conversation.
- Johann Scharfetter
- Topic Author
- Offline
- Senior Member
- Posts: 58
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.
- mahdi
- Offline
- Junior Member
- Posts: 21
I feel your answers is reluctantlyWilliam White wrote: getk2.org/documentation/k2class2012
a good place to start
Because most of them are not efficient
Please Log in or Create an account to join the conversation.
- Johann Scharfetter
- Topic Author
- Offline
- Senior Member
- Posts: 58
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.