Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Eran Meir 401 posts 543 karma points
    Jun 30, 2010 @ 09:12
    Eran Meir
    0

    getting the data from the fields

    hey, i've installed the package,

    i added the macro 

     

    <head runat="server"> 
        <umbraco:Macro Alias="GetMetaTags" runat="server"></umbraco:Macro>
    
    </head>

    i added fields with alias title,description and keywords to the generic properties

    but i'm getting this text

    <head><title /><meta name="keywords" content="" /><meta name="description" content="" /><title></title></head> 

    don't know what i did wrong.

    please help me.

    thank you.

    Umbraco version: 4.0.4.2

  • Ismail Mayat 4511 posts 10090 karma points MVP 2x admin c-trib
    Jun 30, 2010 @ 10:00
    Ismail Mayat
    1

    Eran,

    2 things firstly does the document you are viewing have the content for the meta tags?  Secondly in 4.0.3 if you have head runat="server" then macros do not run this is known issue not sure if its been fixed in 4.04.2 so if you defintately have data in the page try removing the runat server attribute and see if that fixes the problem.

     

    Regards

    Ismail

  • Eran Meir 401 posts 543 karma points
    Jun 30, 2010 @ 10:13
    Eran Meir
    0

    tnx :)

  • Ismail Mayat 4511 posts 10090 karma points MVP 2x admin c-trib
    Jun 30, 2010 @ 10:43
    Ismail Mayat
    0

    can you post which suggestion fixed your problem then mark as solution will hopefully help others.

    Regards

    Ismail

  • Eran Meir 401 posts 543 karma points
    Jun 30, 2010 @ 10:55
    Eran Meir
    0

    the runat thing, and the fact that my page wasn't published somehow...

Please Sign in or register to post replies

Write your reply to:

Draft