Home › Forums › MapPress Support › Beta (2.38.7) Marker List Formatting
Tagged: formatting, marker list, pro
- This topic has 7 replies, 2 voices, and was last updated 13 years, 8 months ago by
TonyCookUSA.
-
AuthorPosts
-
November 21, 2012 at 4:16 am #10864
I know that I can add
echo $poi->get_body();
To the map_poi_list.php template. However, I only want to add what’s in the marker to the body, not an excerpt of the text. Is it possible to add what’s in the marker? Or, maybe a better question is: Where can I find what’s available at $poi->get_????()?
November 24, 2012 at 3:17 pm #10894Hi,
I’ve just released version 2.38.8. On the settings screen you can control what’s displayed in mashups (the POI title/body or the post title/body). You can also use shortcode paramters to do the same thing.
I hope that helps, but let me know if you still need info about how to modify the template.
November 27, 2012 at 10:19 am #10925What are the shortcode parameters? I think I’d prefer to do it that way…
November 27, 2012 at 10:35 am #10926Playing with the settings, I can get the address, but I don’t want that. I can get an excerpt, but I don’t want that. What I want is what I’ve entered in the POI body. I can get that with the marker, but not for the list. That’s what I’d like to show:
Marker Title
Marker Body goes below title.November 27, 2012 at 11:13 am #10929Hi,
The parameters are in the beta documentation:
http://mappresspro.com/mappress-beta
The POI list doesn’t show the POI body normally, only the title and links.
You can modify the template and use $poi->get_body() to show it above the links. You will also need to set the POIs to show the POI body on the settings screen. Then the function will return the POI body as it was originally saved.
November 27, 2012 at 2:39 pm #10934I’ve modified the map_poi_list.php template and uploaded it and it doesn’t appear to make a bit of difference. I’ve even just added some dummy text to make sure it was working correctly and it’s not showing.
Ideas?
November 27, 2012 at 5:24 pm #10935Where did you upload it to? It should go in your theme directory, or in your child theme directory if you’re using a child theme.
If you just want to see if it’s working you can overwrite the version in the /templates directory of the plugin – just make a backup or the original first.
November 28, 2012 at 4:22 am #10938That was it… I added it to my child theme and it works!
Thanks!
-
AuthorPosts
- You must be logged in to reply to this topic.
