Customizing Travel Details page | Travel - Documentation | JoomShaper

Travel

Updated Last: 24 February 2014

Customizing Travel Details page

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.