Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 2d 19h 45m 27s
Claim 50% off

Customizing Travel Details page

Updated 24 Feb 2014 1 min read

Let we will create an extra field named: “Test”.We are using Our TRAVEL template now.

For adding an extra field we go through the following steps:

First we will go to k2 extra field. Then Click on new , following scene will be appeared.

At the name field we have put “Test”, here Group and Type field is an important matter. At group field “Info” have been selected as group of all the extrafield here is “Info”.Our new extrafield is “Textarea” type.

Now we will create an k2 item whose category is “Hotel”. Write your desired text at the text area.

From components/com_k2/templates/travel_list you will find item.php file.At this file at line no 27 we have add $test and at line no 36 for showing value we have added the code [highlighted].

For showing output at line no 524 we have added the code.