What is the right format for a RSS file for Pinterest? - pinterest

I have tried to create a RSS feed that Pinterest can read ones every 24 hours and add pins to my boards. I looked at the docs that Pinterest have, but they don´'t even have an example file.
So I have created the RSS file and linked it to Pinterest and I get no errors when adding the link, but it is not working! It is not adding any pins to my boards so I guess I have something wrong in my RSS file.
I wonder, hwat should a Pinterest RSS file look like?
This is my RSS file.
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>My title</title>
<link>https://www.mywebpage.com/</link>
<description>Some text here.</description>
<item>
<title>The item title here</title>
<link>https://mywebpage.se/produkt/6740</link>
<description>The item description here</description>
<image>
<url>https://mywebpage.se/image.jpg</url>
</image>
<guid>https://mywebpage.se/produkt/6740</guid>
</item>
</channel>
</rss>
I have tested a few different formats, but nothing is working.
So please, any input really appreciated.

I had the same issue. I tried several times to get the correct RSS from support. Here it works for me. Be careful with the correct date format, this also affects validity.
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dcterms="http://purl.org/dc/terms/" xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
<channel>
<title>My Site name</title>
<link>http://example.com/rss</link>
<managingEditor>support#example.com (myname)</managingEditor>
<webMaster>support#example.com (name)</webMaster>
<image>
<url>http://example.com/android-chrome-512x512.png</url>
<title>My site name</title>
<link>http://example.com/rss</link>
</image>
<description>My site description.</description>
<language>en</language>
<pubDate>Wed, 29 Jun 22 03:47:23 +0000</pubDate>
<item>
<guid>https://example.com/img/739</guid>
<title> Description image </title>
<description/>
<link>https://example.com/img/739/</link>
<enclosure url="https://example.com/resources/964.jpg" length="83372" type="image/jpeg"/>
<media:content url="https://example.com/resources/739_964.jpg" fileSize="83372" type="image/jpeg"/>
<pubDate>Tue, 21 Jun 22 22:38:51 +0000</pubDate>
</item>
</channel>
</rss>

Related

I need to override admin login page in magento2

I need to access the magento2 admin login page using my custom module.How can i override login.phtml into my custom template file like custom-login.phtml file.
Kindly check the below coding and give me some solutions,
Check the layout file view/adminhtml/layout/adminhtml_auth_login.xml
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="admin.login">
<arguments>
<argument name="template" xsi:type="string">Namespace_Modulename::admin/login.phtml</argument>
</arguments>
</referenceBlock>
In my custom module added that xml file and placed the login.phtml in my custom module. The file path was view/adminhtml/templates/admin/login.phtml.
Thanks in Advance
Try following layout update to set template.
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="admin.login">
<action method="setTemplate">
<argument name="template" xsi:type="string">Namespace_Modulename::admin/login.phtml</argument>
</action>
</referenceBlock>
</body>
</page>

Short cut Key for .axml code format in Xamarin Studio(Mac)

I find on SO. and Google but i couldn't find the solution. Whenever i write the code in .axml file the format is not well means the code putting space to it's format. I write code this format code is generated.
Styles.Xml
<?xml version="1.0" encoding="UTF-8" ?>
<resources>
<style name="AppTheme" parent="Theme.AppCompat.Light.ActionBar">
<item name="colorPrimary">#color/colorPrimary</item>
<item name="colorPrimaryDark">#color/colorPrimaryDark</item>
<item name="colorAccent">#color/colorAccent</item>
</style>
</resources>
but i want format code like this :
<?xml version="1.0" encoding="UTF-8" ?>
<resources>
<style name="AppTheme" parent="Theme.AppCompat.Light.ActionBar">
<item name="colorPrimary">#color/colorPrimary</item>
<item name="colorPrimaryDark">#color/colorPrimaryDark</item>
<item name="colorAccent">#color/colorAccent</item>
</style>
</resources>
Any Help be Appreciated..
Are we talking about xaml or xml files? Try to press Control + K, keep pressing Control and press D (without K)

Glassfish directory mappings: resources are cached by glassfish

I use the external resources mapping by glassfish for storing user uploaded images (sun-web.xml):
<property name="downloadroot" value="from=/downloaded dir=c:\glassfishv3\downloads"/>
I store uploaded images to this directory. The first download is ok, the image is shown at the address server:8080/downloaded/image_13.png. But when the users uploads another file and replaces the image (it is really replaced in file system) the GF doesn't show new image, but the old one. Event restart and osgi-cache/generated clean doesn't help! That's very misleading and hope anyone could help me with this issue..
Ok, the issue was in JRebel! I spent the whole day, and finally found the issue! So, if anyone meets with it, the reciept to fix is to include the gf virtual path to rebel.xml like this:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<application>
<classpath>
<dir name="${myproject.root}\target\classes" />
</classpath>
<web>
<link target="">
<dir name="${myproject.root}\src\main\webapp" />
</link>
<link target="">
<dir name="C:\glassfish3.1" />
</link>
</web>
</application>

Sparkle Framework problem (not displaying right version)

I am using sparkle framework for the first time. I am trying to test it out and everything works perfectly, except it doesn't display the update version correctly. So for example this is my xml file on server:
<?xml version="1.0" encoding="utf-8"?> <rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" xmlns:dc="http://purl.org/dc/elements/1.1/"> <channel>
<title>Your Great App's Changelog</title>
<link>http://localhost/test/SampleAppcast.xml</link>
<description>Most recent changes with links to updates.</description>
<language>en</language>
<item>
<title>Version 1.5 (2 bugs fixed; 3 new features)</title>
<sparkle:releaseNotesLink>
http://localhost/test/notes.html
</sparkle:releaseNotesLink>
<pubDate>Wed, 15 Mar 2011 19:20:11 +0000</pubDate>
<enclosure url="http://localhost/test/seglab.zip" sparkle:version="2.0" length="1623481" type="application/octet-stream" sparkle:dsaSignature="MCwCFD8H0l7NOhl7OXeqVM1+CeonHuKtAhRQXdB4alDeMPgSUaHhuX1Zx5GwTg==" />
</item>
</channel> </rss>
notice in the title tag, the name of the version is 1.5, but when I get a prompt for sparkle update, it says "App Name version 2.0 is now available - you have 1.0...."
It should say 1.5...
Why is this happening?
Thanks!
"It should say 1.5" as in, "App Name version 1.5 is now available - you have 1.0...."?
Then you probably need to change this tag:
<enclosure
url="http://localhost/test/seglab.zip"
sparkle:version="2.0"
length="1623481"
... />
to this:
<enclosure
url="http://localhost/test/seglab.zip"
sparkle:version="1.5"
length="1623481"
... />
Full disclosure: I have never used Sparkle before. This is just a guess based on eyeballing the XML.

RSS displaying correctly in Safari but not Firefox

I am having a problem with our RSS feed displaying correctly in Safari but not in Firefox.
A sample is shown below. The issue is in the <title> tag under <pubdate>. The ó shows correctly in Safari but is spelled out in Firefox. Has anyone encountered this problem?
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/rss/styles/shared_xsl_stylesheet_v2.xml"?>
<rss version="2.0">
<channel>
<title>Updates: What's New on The Website</title>
<link>http://www.site.com/news/whatsnew/wn-today.shtml</link>
<description>The latest events, developments, and updates to the website</description>
<language>en-us</language>
<pubDate>Thu, 10 Sep 2009 11:58:18 EDT</pubDate>
<lastBuildDate>Wed, 09 Sep 2009 16:41:00 EDT</lastBuildDate>
<item>
<title>Pronunciamiento de la Presidenta de la Comisión de Valores y Bolsa</title>
<link>http://www.site.com/divisions/corpfin/cfnew/cfnew0909.shtml</link>
<description>Pronouncements</description>
<guid isPermaLink="false">2009-09-09-000115</guid>
<pubDate>Wed, 09 Sep 2009 16:41:00 EDT</pubDate>
</item>
</channel>
Edited to show the above as code. :-)
ó is valid in UTF-8 encoded documents. The problem is that you reference ó but the entity needs to be defined in a DTD somewhere because the default DTD doesn't define it because ó is valid in UTF-8 encoded XML.
Check out the W3C's Validator.
This example worked like a champ! (I couldn't have been on the right path without getting started by some of the great answers here. Thanks Mike Buckbee and CptSkippy)
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE channel [
<!ENTITY oacute "Ó">
<!ENTITY nbsp " ">
]>
<rss version="2.0">
<channel>
<title>RSS Example</title>
<description>This is an ó example of an RSS feed</description>
<link>http://www.domain.com/link.htm</link>
<lastBuildDate>Mon, 28 Aug 2006 11:12:55 -0400 </lastBuildDate>
<pubDate>Tue, 29 Aug 2006 09:00:00 -0400</pubDate>
<item>
<title>Item Example</title>
<description>This is an example of an Item</description>
<link>http://www.domain.com/link.htm</link>
<guid isPermaLink="false"> 1102345</guid>
<pubDate>Tue, 29 Aug 2006 09:00:00 -0400</pubDate>
</item>
</channel>
</rss>
I believe in either case it is actually encoded, but the Safari view is more sophisticated (may not be a good thing).
If you want to really "see" what is happening with the HTML, your best bet is to use curl or wget to directly download the RSS feed and then view the file in a text editor.

Resources