Creating the Pages
These pages will not require a login to view. These pages should include:
- Lot Name
- Lot Address
- Lot Number
- Lot location on small area map
- Lot photo
- Available Parking Rates
- Contract Terms and Conditions (with the ability to be read and agreed to) This would be a disclaimer they will agree to before purchasing. This wouldn't be the right place for this.
A buy now button from these pages would need to get the login screen or create account screen.
Using Shortcodes
Shortcodes are used to allow the client to set up the layout of a page in the way they see fit.
They are used on the Pages and Content Blocks page.
It can be found under System Configuration → Content & Designs → Pages and Content Blocks
System Messaging
A shortcode is coded to return a specific value when placed within the body of the page layout.
The value it returns can be anything from single variable, to a module laid out in a blade template, like a table or a form.
The shortcode must be surrounded in square brackets, like [lots_list].
By placing the shortcode in the body of the message, it will show up on the corresponding page in that location.
The path chosen by the client is what the path will be in the url. This would make the lots_list module show up when the address has /lots at the end of the base URL.
The specific lot detail page is set up a bit differently, in that it is hardcoded to only work if the path is set as --lots-detail. This will make the details for the lot appear from the path /lots/{id}, with the id supplied being passed to the page to fetch the correct lot information.
Here is a list of the shortcodes that have been setup for this issue.
The shortcodes must be typed exactly as they appear, or they will not work.
List Shortcode (works on any page):
- [lots_list] - displays a list of the currently available lots
The following options are available to shorten the list:
include_hidden=1 - By default, lots set as not visible will not appear in the list. This option will include those lots in the list.
only_text2parkme=1 - This will restrict the list to only show lots that have Text2ParkMe enabled.
i.e. [lots_list only_text2parkme=1]
Value Shortcodes (only works on --lots-detail):
- [values show=lotname] - displays the name of the lot
- [values show=lottype] - displays the initial of the lot's type
- [values show=lotnameid] - displays the lot's id
- [values show=defaultcost format=currency] - displays how much renting a permit for the lot costs.
- [values show=location] - displays the location set for the lot. It is an address or a short description.
- [values show=textcode] - The Text2ParkMe code for the lot.
- [values show=ratePer10Min format=currency] - The Text2ParkMe rate for the lot.
Module Shortcodes (only works on --lots-detail):
- [lot show=buy_now] - displays a button that will take the user to the page to purchase a permit for the lot. Will take the user to the login screen if they are not logged in or do not have an account.
- [lot show=map] - displays a small map with the lot's location according to the latitude and longitude values that are stored for it.
- [lot show=photo] - displays the photo that has been selected for the lot. A photo can be assigned from the Lot Administration page /admin/config/permits/lot/{id}/edit.
The Lot List Page
The resulting lot list page will look like this:
The Lot Detail Page
The Lot Detail Page will look like this:
Related Pages
Filter by label
There are no items with the selected labels at this time.