When creating a views with RSS Feed format the 'language input' is still visible, even though it is hidden in the RSS display settings of the node.
I have a blog content type with a special text field for publishing on social media. I have installed the i18n module, so that each blog post can be to be translated into different languages. By default the i18n module adds the language information (e.g. 'Language = EN' to the content of each node, but you can hide it in the different display modes (full, teaser and RSS).
With the views > Feed display i generate an RSS feed of these special textfields for social media. settings:
Format:RSS Feed | Settings
Show:Content | Use default RSS settings
I understand that if I use the default RSS settings, than i use the RSS settings as defined in the 'manage display' tab of my node type settings. That works fine: the only visible field is the specific text field for social media, and that is the field that shows up in my RSS Feed.
But: although I have hidden the language from the display: Still i the 'language = EN' appears in my RSS Feed.
Comments
Comment #1
dawehnerAll what views does it
as it does node_feed.
But sadly this isn't exposed as "manage display" at least from my perspective, so you seems to be doomed.
Comment #2
dawehnerYou seems to be not able to alter it.
This seems to be unfixable for me.
Comment #3
dawehnerUpdate status, this would require a fix in core.
Comment #4
Talkless commentedCould someone suggest a walk around? How could I remove it "by hand" (regexp) ?
Comment #5
tegerson commentedI use "title only" instead of default RSS settings, this gives an empty description-tag. I remove the tag in views-view-row-rss.tpl.php and add it again with Content Templates (http://drupal.org/project/contemplate)
Comment #6
dropbydrop commentedI have the same problem.
Dereine says there should be a fix at core, so this issue should move at Drupal core.
@tegerson. Could you please provide a step by step tutorial on how you do this please?
Comment #7
yannisc commentedLooking for a fix too.
Comment #8
mortendk commentedThis is probably the uglist fix ever but got the job done ...
i basically gave up to figure out where it came from so i used good old str_replace
you need off course to go in and change the 'Dansk' & 'Engelsk' from the $dielanguagedie array and change the classes that's added so it match you div classes
its not pretty but it works ;)
Comment #9
kevin morse commentedI too am looking for a fix and don't really want to muck with Core...
I have multiple sites running under a multi-site and I would like to share the news from the main one to a few of the sub sites. I figured this would be the easiest method?
Comment #10
nuezMy solutions was to write a custom module, where you can do exactly what you want.
I wanted to create to feeds, one field with texts for facebook, another field with texts for twitter. The output is two different RSS feeds, you can find at:
yoursite/social/twitter
yoursite/social/facebook
The RSS output you can use to connect with dlvr.it or rssgraffiti to publish on facebook, twitter, etc.
The trick was just to copy the node_feed function (http://api.drupal.org/api/drupal/modules--node--node.module/function/nod...) , give it a different name, and change whatever i wanted to change. instead of using the RSS display of the node, i implemented just the facebook and twitter text fields. you can implement whatever field you want.
its a bit quick and dirty, but its a way to solve it.
Comment #11
kevin morse commentedShould a bug for this also be filed with il8n?
I'm still hesitant to write my own module but I guess I might have too! It really sucks right now to have all my headlines start with Language English. I can't believe this is an issue! It seems like a pretty huge problem to have made it into the release version.
I'm also wondering if perhaps the Content Type / Manage Display menu is broken. In there it provides options for custom display settings for RSS but Language is displayed even though its set to be hidden. I've toggled it on and off and confirmed that other fields can be turned on and off but the Language field appears to be on regardless of whether its turned off or not.
Comment #12
mortendk commentedit should
writing a module to remove 1 line is imho a bit overkill would be nice if "it just worked"
Comment #13
DEJU commented@mortendk
Where exactly did you put this piece of code?
(I’m very new to drupal, so all help is welcom;)
Comment #14
mortendk commentedits in you template.php file
if you dont have it in you theme just create the file
remember to change the THEME_ to you themesname
Comment #15
dddave commentedIs this still an issue?
Comment #16
Talkless commentedJust tried with 7.30.
Though Language is set as hidden in RSS display, it's still visible in rss.xml content with "Use default RSS Settings".
If "RSS" is explicitly selected instead of "Use default RSS settings", Language field can be successfully hidden from rss.xml using both Core and Display Suite "RSS" displays.