I am using following two extension:
dd_googlesitemap and dd_googlesitemap_dmf
I have two Sitemaps:
Default pages:
index.php?Eid=dd_googlesitemap
My extension:
index.php?Eid=dd_googlesitemap&Sitemap=DMF&selector=myExtSelector
I need only one sitemap. (for google webmaster tool)
https://webmasters.googleblog.com/2006/10/multiple-Sitemaps-in-same-directory.HTML that doesn't work.
Error:
XML-Verarbeitungsfehler: nicht wohlgeformt
Adresse: http://www.mydomain.de/sitemap.xml
Zeile Nr. 9, Spalte 55:<loc>http://www.mydomain.de/?eID=dd_googlesitemap&sitemap=dmf&selector=myExtSelector</loc>
Thank you :-)
Look at line 9, character 55 and you'll probably end up near the '&' in the URL. In XML an ampersand is used to start an entity (and a semicolon ends it). In this case the characters following the '&' should be a valid entity name. This is of course not the case here, so you must encode the ampersand.
<loc>http://www.mydomain.de/?eID=dd_googlesitemap&sitemap=dmf&selector=myExtSelector</loc>
Use scheduler task. It will create a sitemap index for you from multiple sitemap URLs.
Related
We just added Swiftlint to our project and we want to follow all the rules but I'm not sure what's meant by 'type_body_length' warning. I'm not a native english speaker so I find it a bit confusing.
There is a rule for file length aswell so how do they differ? What falls under this definition?
type_body_length violation means that the class has too many lines in it. I dont think it counts extensions, comments or whitespace
Type name should only contain alphanumeric characters, start with an uppercase character and span between 3 and 40 characters in length.
The rules documentation linked here and above also gives examples of what would and wouldn't be accepted (Triggering & Non Triggering). - Edit suggested by #GoodSp33d, thanks
In order to use if statements in Freemarker templates, the following syntax is used;
[#if ${numberCoupons} <= 1]
[#assign couponsText = 'coupon']
[/#if]
Is there a way to replace the '#' character with something else, because I am trying to integrate it with drools (a java based rule engine) and the '#' character is used to mark start of comments so the formatting breaks?
There isn't anything for that out of the box (it uses a JavaCC generated parser, which is static). But you can write a TemplateLoader that just delegates to another TemplateLoader, but replaces the Reader with a FilterReader that replaces [% and [/% and [%-- and --%] with [#, etc. Then then you can use % instead of # in the FreeMarker tags. (It's somewhat confusing though, as error messages will still use #, etc.)
As #ddekany wrote, you can write code that tranform the template without the pound sign, But notice it can clash with HTML or XML (and similar) tags, at least from an editor prespective.
I have the following code on a README.md file on GitHub, where I am trying to display the hash sign on a header (I am trying to escape it using the \ symbol) like so:
### C\#
* [Beginning Game Programming with C#](https://www.coursera.org/course/gameprogramming)
However it renders like so:
I obviously want the hash sign to appear on the header, and I also tried to use a double backslash, but it didn't work. How do I get the pound sign to appear?
EDIT: the linked question deals with GitHub links, my question is to do with headers on a .md file.
You could try and add a matching '#', followed by one extra '#':
### C# #
As in this answer you can insert an invisible character before the octothorpe, such as .
Add an extra space after ### C\#. See the demo.
I guess this is a simple question, but I have found no reference. I have a small lex file defining some tokens from a string and altering them (actually converting them to uppercase).
Basically it is a list of commands like this:
word {setToUppercase(yytext);}
Where setToUppercase is a procedure to change case and store it.
I need to have the complete entry string with the altered words. Is there a way to define a default token / rest of tokens so I can asociate them with an unaltered storage in an output string?
You can do that in one shot with:
.|\n {save_str(yytext);}
I said it was an easy one.
. {save_str(yytext);}
\n {save_str(yytext);}
This way all characters and newline are treated.
When I am going to validate my page using w3c validator, I am getting : Line 1, Column 1: character "" not allowed in prolog error.
There is a character, or data interpreted as a character, in the document before the doctype declaration. In the error message quoted, there is the character U+200D ZERO WIDTH JOINER (ZWJ) between the quotation marks, so this seems to be the culprit. ZWJ is an invisible control character. There is no point in having it at the start of a file, as it is supposed to cause ligature or joining behavior for the characters (usually letters) around it. ZWJ is invalid at the start of a document by HTML rules.
You may need a good editor, like BabelPad, to detect and remove the ZWJ.
I copied all my code into a new fresh file and used that file instead. It worked for me