Fork me on GitHub

Title for Modules  Bottom

  • Hi, all.
    I read:
    http://community.zikula.org/index.php?module=Wiki&tag=SEO

    But I have not understood, what files it is necessary to replace? icon_confused

    Code

    <!--[ pnpagesetvar name="title" value="mon titre"]-->
    <!--[ pnpageaddvar name="description" value="ma description"]-->
    <!--[ pnpageaddvar name="keywords" value="mes mots clés"]-->

    In advance thanks
  • This is in your templates you need to change this. Either in your /modules/modulename/templates OR in your themes/themename/templates/ folder(s)

    The old implementation of this was add_description and add_additional_header.

    A bit confusing, yes I know.

    Zikula lacks proper documentation.

    supa

    --
    ttgapers.com - the latest from the caribbean
    Caribbean News
    Online Shopping from USA, Canada, UK, France, Germany
    On Facebook
  • Many thanks!
  • daddysupa

    Zikula lacks proper documentation.


    You can make changes and add data to the Wiki, feel free to do so, please.

    --
    Home Page | Find on Facebook | Follow on Twitter
  • zudvip

    Code

    <!--[ pnpagesetvar name="title" value="mon titre"]-->
    <!--[ pnpageaddvar name="description" value="ma description"]-->
    <!--[ pnpageaddvar name="keywords" value="mes mots clés"]-->


    This is great, but what if I wanted to add other meta tags? For instance, I'd like to add Facebook meta tags from a PageMaster template. I have found that

    Code

    <!--[add_additional_header header='<meta property="og:title" content="`$core_title`" />']-->
    does not work. It displays

    Code

    <meta property="og:title" content="`$core_title`" />


    --
    Harness Technology
  • LOL

    Simply by exchanging " for ' and vice-versa, I got it working.

    Code

    <!--[add_additional_header header="<meta property='og:title' content='`$core_title`' />"]-->


    The method used in my previous example had always worked and was, in fact, stolen from the pgForm module templates.

    --
    Harness Technology
  • Note that add_additional_header is deprecated and should use:

    Code

    <!--[ pnpagesetvar name="raw" value="<meta ... />"]-->


    --
    - Mateo T. -
    Mis principios... son mis fines
  • If I do it that way:

    Code

    <!--[pnpagesetvar name="raw" value="<meta property='og:title' content='`$title`' />"]-->

    the meta tag doesn't show up in the source at all.

    --
    Harness Technology
  • Uh, it's "rawtext", not just "raw" icon_rolleyes
    and in the second code you're using $title instead $core_title, I hope it's fine.

    --
    - Mateo T. -
    Mis principios... son mis fines
  • nestormateo

    Uh, it's "rawtext", not just "raw" icon_rolleyes
    and in the second code you're using $title instead $core_title, I hope it's fine.


    So I fixed that, but it only works if you use it once. If you have more than one, it only displays the last one. So I guess I'll have to cram them all into one.

    --
    Harness Technology
  • that would definitely be a bug. please report it.
  • it's not a bug. it's a feature icon_razz
    if you want to add more values to a multi valued property (such as rawtext), you have to use pnpageaddvar and not pnpagesetvar.
    using pnpagesetvar does exactly that, resets the property to the last value.



    Edited by tfotis on Sep 27, 2010 - 09:53 PM.
  • tfotis

    if you want to add more values to a multi valued property (such as rawtext), you have to use pnpageaddvar and not pnpagesetvar.

    Thank you for the clarification! icon_smile

    --
    Harness Technology
  • ticket closed. thanks icon_smile
  • 0 users

This list is based on users active over the last 60 minutes.