All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Low Replace within Low Alphabet?

PDM 23 Jun 2011 21:14 question, complete

I'm trying to use Low Replace within Low Alphabet, but it's not working. The code is used to generate the list of locations and info window content on a Google map. One of the location names has an apostrophe, which keeps getting output with the Numerical Character Reference & # 8 2 1 7 ; (spaces added so it shows here). On mouseover on that particular location icon, the map shows the title with the NCR rather than the apostrophe, so just thought I'd use Low Replace to switch it back. I've pasted the code below, but maybe there's a better way to do this? Although would be handy to have the two work together. Another version of the map is just using the regular channel entries tag, and that works fine.

Here's the code:


{exp:low_alphabet:entries channel="lakes" alpha_field="title" alpha_filter="{segment_3}" orderby="low_alphabet_field" disable="categories|member_data|pagination" limit="1000" backspace="1"}
["{exp:low_replace find="&#8217;" replace="'"}{title}{/exp:low_replace}", {lake_lat}{latitude}{/lake_lat}, {lake_long}{longitude}{/lake_long},'<strong>{title}</strong><br><a href="/lakes/profile/{url_title}/">Learn more ></a>'],{/exp:low_alphabet:entries}

Replies

  1. Low 24 Jun 2011 07:20

    Hi! Try adding parse="inward" to the exp:low_alphabet:entries tag.

  2. PDM 24 Jun 2011 13:29

    That did the trick. Thanks Low!