ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Tag links

January 30, 2011 3:57pm

Subscribe [2]
  • #1 / Jan 30, 2011 3:57pm

    David Roberts

    250 posts

    Hi,

    I am using the Taggable module to show tags which works fine. What I would like to do is when you show an entry with the tags and you click on a tag which then gives you a list with all the entries how do you then link back to that entry. I am using the following code and have tried a number parameters but can’t get it to work. How would you include the template group into the code below.

    {{exp:channel:entries channel="notebook-link" search:notebook_link_tag="{segment_3}"}
    <h3><a href="http://{title_permalink}">{title}</a></h3>
    <p>{/exp:channel:entries}

    Thanks

    David

  • #2 / Jan 31, 2011 3:29pm

    Barry Cogan

    291 posts

    HI David,

    you can specify a specific template group/template and the “url title” will automatically be added:

    {title_permalink="channel/archives"}

    Will render as:

    <a href="http://example.com/index.php/channel/archives/my_ugly_boyfriend/">http://example.com/index.php/channel/archives/my_ugly_boyfriend/</a>

    Note: When creating a new entry, if you don’t supply the “url title” then it will be automatically created from the actual entry title. Spaces are turned into underscores and quotes are removed. For example, “Joe’s night out” becomes “joes_night_out”.

    Best regards,
    Barry

  • #3 / Jan 31, 2011 4:10pm

    David Roberts

    250 posts

    Hi Barry

    I don’t think that’s what i want. Each link I want to go to its Permalink page.

    so for example the Permalink for a page is click on the tag for music which takes you to http://fattoad.co.uk/S=877202fd1728e22fe2ef1d74232003916748c2de/notebook/tag/Music. Click on one of the other music tags whose link is http://fattoad.co.uk/saturdays_music_track_amo_bishop_roden_boards_of_canada which is incorrect it needs to have the notebook (which is the template group).

    Hope that makes sense.

    David

  • #4 / Jan 31, 2011 4:52pm

    Barry Cogan

    291 posts

    for tag specific permalinks you will need to talk to the taggable support. The only two options you have with ExpressionEngine are {permalink="template_group/template"} or the title_permalink as previously mentioned.

    I hope this helps you identify where you can be best helped. 😊

    Best regards,
    Barry

  • #5 / Jan 31, 2011 4:54pm

    David Roberts

    250 posts

    Thanks. i have emailed him but no response yet.

    David

  • #6 / Jan 31, 2011 5:01pm

    Barry Cogan

    291 posts

    Let us know How it turns out 😊

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases