When trying to export (using CSV, DOC or TXT format) Node: Link to node I have got only blank field instead of URL.

CommentFileSizeAuthor
#3 views_bonus_export.module.diff764 bytessvihel

Comments

svihel’s picture

Any thoughts about this?

neclimdul’s picture

I haven't tested or confirmed this behavior but on initial inspection I can't see how this would happen. I can say this though, we use strip_tags on each field in the CSV and something similar for links in the DOC export. So that may be related and I'm not sure if it will be fixed.

svihel’s picture

StatusFileSize
new764 bytes

Thanks for hint!
I have created a little patch for myself, basically adding parameter <a> to strip_tags function so it won't strip the link (strip_tags($value, '<a>')) and the simple removing tags with str_replace

str_replace(array("<a href=\"/","\"></a>"), array("",""), strip_tags($value, '<a>'))

I'm not much of a programer so I dont have any experience with this function, I just read the manual, but its working for me. Anyway I don't see the reason why to not put this function into action. Diff file for this in attachment - of course its raw script probably only serving to my needs...

neclimdul’s picture

I'll take a look, I'm not sure how it fixes the problem yet but it might work. Thanks for the patch!

svihel’s picture

Good, I wasn't really sure about the patch format

I think the key to use this is in parameter Option. When you select "with link" it will transform to "only url" and the "without link" option is just without link :]

svihel’s picture

Status: Active » Needs review
pomliane’s picture

Status: Needs review » Closed (won't fix)

This version of Views Bonus Pack is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

This issue has been automagically closed by a script.