Adding a Permalink to entry-default.tpl
  • I use the Plugin PrettyURLs (HTTP Get) and I would like to add a Permalink to the entry-default.tpl
    I looke dinto the variables (Flatpress Wiki) but I couldn't find anything.

    Is there a variable to use as href?

    Best regards
    LTB
  • For example like in my website ??? I've inserted advertisements on the first web-page ( also before to click on Read Me) and later after having clicked on ReadMe  (so you can see advertisements saw before and another new one adv).
    http://www.warsintheworld.com
    If it's like that, later I'll tell you how to do this, this evening.

  • I'm sorry but no. For example if I create a entry with the title "Example Link A",
    the link to the entry is:
    www.example.com/?u=/2012/02/13/example-link-A/

    If I change the title to "Example Link BBB" the link ist automatically changed to:
    www.example.com/?u=/2012/02/13/example-link-BBB/

    I would like to add a variable to the default-entry.tpl to add a link to the entry itself but in the standard link format, so changes to the title don't affect the perma link.

    EDIT

    So I tried

    <a class="permalink" href="{$id|link:comments_link}">Permalink</a>


    But it generates the link in the HTTP Get version...
  • Got it working :D
    <a title="Permalink" href="?entry={$id}" ><img src="./bla/permalink.png" alt="Permalink" align="left"/></a>
  • I don't get it, why using prettyurls at all if you don't want your links to look pretty? :P btw consider setting 

    PRETTYURLS_TITLES to false

    (open for editing fp-plugins/prettyurls/plugin.prettyurls.php : it is at the top)

    this will enable the /YYYY/MM/DD/entryYYMMDD-hhmmss scheme for entries, while retaining every other benefit 
  • If I create an blogentry, I post a link on Facebook too.

    So if I use the prettyURL link and for some reason I want to change the name of the entry later (happens not that often but from time to time), the link also gets corruptet.

    Also isn't prettyURLs benefiting SEO wise (thought so)? Wouldn't I loose that, if I switch back to the standard URL?

In this Discussion