Skip to content

Incorrect links inserted into articles

calixcalix Sweden
Hi,

I was troubleshooting why a link was not showing up in an html article and realized that the links were incorrectly inserted.



The href attribute is missing double quotes, to wrap the url.

Might be worth mentioning that I am receiving data over the GSAPI for a custom application.


Comments

  • calixcalix Sweden
    The configuration for the custom engine, related to the articles is:

    [Article]
    type=memo
    allow html=1
    must be filled=1
    hint=The full article comes here.
    auto modify=0
    custom mode=1
  • cherubcherub SERnuke.com
    You don't need double quotes to wrap the url for the link to be valid. Double quotes, single quotes, no quotes are all valid html. The issue looks more to be that there is no anchor text inserted.
    Thanked by 1calix
  • calixcalix Sweden
    Just checked W3, you are absolutely correct. And yes, the anchor was the issue.

    Forgot to include:

    [Anchor_Text]
    type=text
    alternate data=%spinfile-generic_anchor_text.dat%

    Thanks for the help.
  • calixcalix Sweden
    hm, strange, tried adding the anchor text to the engine and setting the anchor % numbers in options, but still no anchor text inserted...
  • cherubcherub SERnuke.com
    If there are no existing links in your article content when you add it via the article editor, you may need the following lines in your [Article] variable definition:

    auto add anchor url=2
    auto add anchor url content=%file-auto_anchor-article.dat%
    Thanked by 1calix
  • calixcalix Sweden
    Yes, thank you, realized that finally. Thanks for your help.
Sign In or Register to comment.