• Resolved cetacousin

    (@cetacousin)


    Hi

    On all the demos I have seen, it shows you can add attributes on the overview page under the property title. I have tried using the documentation and have got no where! How do you add them?

    I want to add the attributes:-
    – ‘native_name’
    – ‘completion_date’ to ‘ceased_operation’
    – ‘state1’, ‘country1’, ‘region’

    I feel like I am missing something important.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter cetacousin

    (@cetacousin)

    Nm i got it to work

    Any chance you could elaborate on how you got it to work, for the rest of us? It sounds like I am seeing the same thing you saw.

    I believe I am looking at the same document that others here say to follow, and sure enough the code doesn’t match. Specifically between the “custom_attribute_overview” section and the “$show_children” section. Instead of what’s shown in the documentation, I see the following, which I don’t know what to do with:

    <?php
    if( is_array($wpp_query[ ‘attributes’ ]) ){
    foreach ($wpp_query[ ‘attributes’ ] as $attribute){
    if(!empty($property[$attribute])){
    $attribute_data = WPP_F::get_attribute_data($attribute);
    $data = $property[$attribute];
    if(is_array($data)){
    $data = implode( ‘, ‘, $data);
    }
    echo “<li class=’property_attributes property_$attribute’><span class=’title’>{$attribute_data[‘title’]}:</span> {$property[$attribute]}“;
    }
    }
    }
    ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Property Overview’ is closed to new replies.