<a href> will not open links when the path has spaces. (kml) - kml

I am using google earth to map placemarkers that each display their attributes. Some of the attributes are hyperlinks that open up a file or folder. When I use a-href to link a folder path that includes spaces, the link will not work in Google Earth. Is there a way to make the link work without changing the folder name?

While printing href attribute, you have to escape it for html special characters. So your spaces will be %20.

Related

I need to find a string within the website files. Specifically looking for the footer HTML files

I've been asked to change part of my client's website which has their social media icons in their footer. They're using WordPress, and while I'm very familiar with editing footer.php or the footer widgets, the HTML in this footer file is in neither one of them. I can't find it in any other files I've looked in, and none of the plugins have any of that functionality.
I figure if I can search all of the website files for the HTML code that's in the footer, I'll find the code and be able to update it. I checked with FileZilla, but it looks like I can only search by file title with that.
Any ideas? I heard that searching by grep is a possibility, but do people still do that?? And I've never done it. Here is a link I saw it in: Grep to find a file that contains a string in a directory
Thank you ahead of time!!!!

PhpStorm new line in HTML replace

For over a year I have been trying to do the simplest thing - do an HTLM/PHP search and replace in several files.
For exapmle if I want to replace
<!DOCTYPE html>
with
<!DOCTYPE html>
<!--
TODO UNIVERSAL
Favicon
Page title
Active page
-->
I get
<!DOCTYPE html> <!-- TODO UNIVERSAL Favicon Page title Active page -->
I realize search and replace is probably considered old fashioned but I have found it an incredibly useful tool for 30 years.
I have scoured JetBrains web site with no avail and searched here and elsewhere.
I have tried /n, \n, \\n, \\n\\r etc etc and nothing seems to work.
I am sure I am being a dunce but could some other PhpStorm user please enlighten me.
Search for:
\<\!DOCTYPE HTML\>
Replace with:
\<\!DOCTYPE html\>\n\<\!\-\-\nTODO UNIVERSAL\nFavicon\nPage title\nActive page\n\-\-\>
Make sure that Regex option is checked
(here on screenshot you see the result of such replacement)
P.S.
PhpStorm (and other IDEA-based IDEs) uses \n internally (while editing) for all line endings. And then, when saving, it uses detected/proper line ending.
This can be achieved with simple and tiny application geany.
I don't know on which platform you are, but it's available on Ubuntu and Windows both.
You can open all files in whclich you want to search and replace.
Open replace dialog
Enter text in find and replace text box.
Here make sure one thing that you copy and paste "replace" text with new line character from a file opened in geany. New line character will be converted to some non readable character, but don't worry just replace it will be as new line after replace.

How to force content editor not to cut my html code?

I have the following problem while trying to integrate Lightbox and SPS2010. All done with scripts and styles and it really works.
I create new list element and write code in internal text editor in HTML mode:
image #1
after saving my code enternal editor parse it and cut out data-lightbox="image-1" so i get only image #1
Is there any possibility to avoid parsing? Or aletrnative variant to achive my goal, e.g. template or smthng else?
Whan i put my code in master page under logo lightbox works perfectly.
Thanks in advance for any advice.
Create a text file with the html content you want to add (in your case <a href="SiteAssets/..)
Upload this file somewhere onto your sharepoint site (for example into SiteAssets library).
Go to content editor webpart, edit it and in "Content Link" section add a url to your text file.
Remove all text from internat text editor.
Save and problem solved, content editor will not change anything in your text file and will always load its content as required.
The content editor is notorious for stripping out markup it doesn't like. Put markup in external file.

Google Earth will not open links in KML that have spaces

I am creating KML files from an ArcMap layer that uses XSLT to generate an HTML popup with custom links to file folders. Some of these links have embedded spaces. When I try to open these links in Google Earth, it does nothing. I have tried encoding spaces as %20 and still GE will not open them. It opens links without spaces just fine.
Here is a link from my KML that works fine:
<a target="_blank" href="file:///C:/Land/ce">Central Wildlife District</a>
Here are a couple that don't:
<a target="_blank" href="file:///C:/Land/ce/Sites/AIKENS%20CR">AIKENS CR</a>
<a target="_blank" href="file:///C:/Land/ce/Sites/AIKENS CR">AIKENS CR</a>
I found a 6-year old problem report on Google Groups (https://groups.google.com/forum/?fromgroups#!topic/kml-support-getting-started/8PfajmyJbiY) that claimed this would be fixed soon. Is it really still a problem?
Has anyone managed to figure out a way to make links with spaces work in Google Earth KML?
Whitespace and special characters in file names and folders have created problems in GE in the past:
Bug #990: Balloon image viewer will not open when the image folder name includes a space
Bug #1014: Embedded images in KMZ files don't display if the path to the KMZ contains spaces
Bug #1126: GE6 can save but fails to load filenames with '#' in filename or path
Only real solution is to simply avoid such KML and either remove all whitespace from file names and paths or replace whitespace characters with _'s.
Of course with KML generated it's often a pain to manually do this but if you want the KML to view correctly on all platforms (Windows, Mac, Linux, Mobile, etc.) then you must eliminate any "special" characters in filenames and folders referenced by KML files included those inside KMZ files.
This is discussed in a related issue with whitespace in files within KMZ file.

TYPO3: indexed_search and title tag

Is there a way to get a title tag in the search results of indexed_search?
Instead of
Text
there should be
Text
Not a real solution but best I could do:
I think this won't be possible without changing the extension's PHP code. If you do so, copy the extension folder from the systext folder to your typo3conf/ext folder, otherwise you will get in trouble when updating Typo3.
indexed_search seems to have only hardcoded -Tags. You can check this by looking first at the actual HTML output (your search results). Then compare this with the HTML template used. If you have shell access to your server, a grep command might help to locate the correct template. Then try to find the marker. I suppose in your case it's ###TITLE###. Then you have to figure out how the marker is filled. Again a grep command for '###TITLE###' in the folder's extension might help you. Then you will see if the tag is hardcoded or not and how you can change it.
Often the faster solution is to use the template object browser and to try to find a piece of TypoScript below plugin.indexed_search which could be responsible what you want to change.
Unfortunately in your case both didn't help. For some strange reason, '###TITLE###' isn't contained anywhere in the the indexed_search extension.
A very ugly workaround would be to use javascript or jquery to insert the attribute.

Resources