Skip to main content

How to link to a listing creation page with the listing type pre-selected

If you have more than one listing type on your marketplace, you can link to a listing creation page where the listing type is already chosen by default.

Written by Sharetribe Team
Updated today

If your marketplace has more than one listing type, you may want to separate the flows to create each type of listing. When you use a specific internal link format in your content, this is possible.

This is especially useful for marketplaces that have both reverse and regular transaction flows where customers create one type of listing and providers create another. It makes sense to separate the two listing creation flows entirely instead of having the user choose the type of listing they want to create after clicking to post a listing.

Link to a pre-selected listing type creation page

You link to a pre-selected listing type creation with an internal URL. The format is:

/l/draft/00000000-0000-0000-0000-000000000000/new/details?listingType=listing-type-id

For example, this would be the URL for a creating a listing for offering services, when the listing type ID is offer-services:

https://www.example.com/l/draft/00000000-0000-0000-0000-000000000000/new/details?listingType=offer-services

This makes it easier to direct users to the relevant listing creation flows.

You can add the link to any content, such as your landing page or top bar, or create email notifications with links to the correct listing type creation. Keep in mind that internal links added in Pages, top bar settings, or footer settings should only include the section after your marketplace URL, in this case, starting with /l/.

Hide the general Post a new listing link

To make sure people only use the listing type specific links, you can hide the general link for posting a new listing and add listing-type-specific links to your top bar with some strategic hiding of marketplace texts. This is the no-code solution: if you're custom-coding, you can of course remove the link entirely.

To hide the link to post a new listing, replace the following marketplace texts with a single empty space:

  "SearchPage.createListing": " ",
"TopbarDesktop.createListing": " ",
"TopbarMobileMenu.newListingLink": " ",

Make sure to add a space between the quotes. If you remove the value entirely, your marketplace will automatically use to the default marketplace texts.

Did this answer your question?