+ Start a Discussion
mahesh p 54mahesh p 54 

can i create list of tour pakages something like this using VF page and apex class

User-added image
Gulafsha MohammedGulafsha Mohammed
Hello Mahesh
Yes you can. Create an object tour package with fields:
Name: Text 
Description :Text Area
Image: Rich Text
Days: Picklist
Offer Value : Percent
Hotel type: Picklist
Places to visit : MultiSelect Picklist
Rating: Formula(Fetch the ratings given by users and take average rating)
Activities: Multi Select Picklist

Create a vf page with custom controller and fetch the details of tour packages from the object.
Iterate over the records and display the packages as necessary.You need a bit of styling also to make it attractive.

You may use lightning component also if you are comfortable with that.

Hope this has solved your query. Please mark this as best answer if so.
mahesh p 54mahesh p 54
Could you please help me in styling to make it more attractive
My code is Here:

<apex:page standardController="Tour_Package__c" recordSetVar="Tours">
    <apex:form >
  <apex:pageBlock >
    <apex:pageBlockTable value="{!Tours}" var="t">
      <apex:column headerValue="Tour Name">
          <apex:outputlink value="{!$Page.Tours_Details_Page}?id={!t.id}">{!t.Name}</apex:outputlink>

public with sharing class TourController {

    public Tour_Package__c t { get; set; }

    public List<Tour_Package__c> samepage { get; set; }
    public Integer i=0;
    public TourController(){
       t=new Tour_Package__c();
    public PageReference save() {
        samepage= [select id,Name,Image__c,Country__c,No_of_Days__c,No_of_Nights__c from Tour_Package__c where id=:t.id];
        return null;

<apex:page standardController="Tour_Package__c" >
    <apex:form >
        <apex:pageBlock >
            <apex:detail subject="{!$CurrentPage.parameters.id}"/>

TravelTips TravelTipsTravelTips TravelTips
While travelers will want to have some level of talent on horseback before commencing, those types of trips are a great manner to benefit revel in for individuals who want to enhance their riding.  Adventure Travel Just make certain to be assured in the saddle, do not be fearful of the horse, and revel in the trip. (And if you're in Jordan, test out a way to experience a camel.)
travelweb travelwebtravelweb travelweb
Cycling trips are every other famous approach of transportation and category for adventure journey. Rather than exploring a destination on foot, tourists climb aboard a motorcycle as an alternative. Destination travel This lets in them to cover greater ground at a quicker pace, whilst nevertheless feeling connected with the landscape, tradition, and those there.
healthymom healthymomhealthymom healthymom
The virus, which has been declared a global public fitness emergency, has brought on as a minimum one hundred infections in greater than 20 countries, with Britain, Russia and Sweden confirming their first infections over the weekend. Read here Japan has recorded 20 instances, inclusive of those concerning human-to-human transmission, while the US on Sunday pronounced its 8th case.