Keyword

How to display Extra Field IN-LINE with title

  • Tristan Firman
  • Tristan Firman's Avatar Topic Author
  • Offline
  • New Member
More
11 years 6 months ago #111664 by Tristan Firman
How to display Extra Field IN-LINE with title was created by Tristan Firman
Hi
I would like to be able to display an item's extra fields in line with the item title rather than in a div beneath the title.

For eg if the item title is PARIS and extra fields are Europe and France I want the item to be listed in catagory listing view like this:

PARIS (Europe) (France) {the brackets are not necessary and can be styles differently}

Rather than:

PARIS
Europe
France

Thanks

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

More
11 years 6 months ago #111665 by william white
Replied by william white on topic Re: How to display Extra Field IN-LINE with title
Depending on wether you are woeking in the item view or the category view you should create an
override getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

and use the syntax listed in this blog post
getk2.org/blog/1068-k2-v262-now-available

to place the extra field where you want it.

You could also move the block of code (foreach) that displays extra fields and reformat it to display as you wish if you want all of them to display.

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


Powered by Kunena Forum