Results 1 to 5 of 5

Thread: How to return LIsting ID in on edit_listings page?

  1. #1
    Join Date
    Oct 2006
    Posts
    142

    Default How to return LIsting ID in on edit_listings page?

    I am modifying the iconizer addon so that it works on my listing editor pages, but $listing_ID is not returning the listing id. How else can I return the listing ID on the listings editor page (the page that lists all listings by a given agent in admin)?

  2. #2
    Join Date
    Jul 2005
    Location
    Sao Paulo, BRAZIL
    Posts
    3,763

    Default Re: How to return LIsting ID in on edit_listings page?

    You have it at your URL bar:

    index.php?action=edit_listing&edit=X
    So you can get the listingID with:
    PHP Code:
    $listingID $_GET['edit']; 
    Eduardo

    Open-Realty® DOCs
    We can easily forgive a child who is afraid of the dark; the real tragedy of life is when men are afraid of the light. (Author Unknown)

  3. #3
    Join Date
    Oct 2006
    Posts
    142

    Default Re: How to return LIsting ID in on edit_listings page?

    Edurado,

    But how about this page:
    http://site.org/admin/index.php?action=edit_my_listings
    which lists all agent's listings, and the addon would be used inside each of the listing editors.

  4. #4
    Join Date
    Jul 2005
    Location
    Sao Paulo, BRAZIL
    Posts
    3,763

    Default Re: How to return LIsting ID in on edit_listings page?

    Here you go:

    PHP Code:
    function return_listingID() {
        global 
    $current_ID$listingID;
        if (isset(
    $listingID)) {
            
    $current_ID $listingID;
            }
        return 
    $current_ID;
        } 
    Eduardo

    Open-Realty® DOCs
    We can easily forgive a child who is afraid of the dark; the real tragedy of life is when men are afraid of the light. (Author Unknown)

  5. #5
    Join Date
    Oct 2006
    Posts
    142

    Default Re: How to return LIsting ID in on edit_listings page?

    Thanks, this works

Similar Threads

  1. How to return listing ID in RSS
    By serge06 in forum General Help (CLOSED)
    Replies: 3
    Last Post: 01-07-2010, 01:02 PM
  2. Return to a category page link?
    By MouseClicks in forum General Help (CLOSED)
    Replies: 5
    Last Post: 09-08-2008, 01:18 PM
  3. How to return to searchresults from a certain page?
    By polderweb in forum General Help (CLOSED)
    Replies: 0
    Last Post: 10-27-2007, 07:51 AM
  4. Next_Prev in edit_listings has page error
    By jnu in forum General Help (CLOSED)
    Replies: 5
    Last Post: 10-06-2006, 05:38 PM
  5. Return link on listing view to listing browse
    By tomyken in forum HELP (CLOSED)
    Replies: 4
    Last Post: 07-17-2004, 01:31 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •