Taggable
ExpressionEngine 2
Back to this add-on's main page
View Other Add-ons From Jamie Rumbelow
Displaying the tag entries
Support Request
David Roberts
|
Posted: 31 January 2011 07:04 PM |
|
|
|
I am having a problem displaying the tag entries on a site using Taggable.
When you click on the link for the Tag and you are sent to the page with all the links for that Tag. You then click on a link to get sent to that page it does not go to that page. the code is below. Also is there anyway of not showing the numbers below in the URL?
S=877202fd1728e22fe2ef1d74232003916748c2de
Posts tagged with ‘{segment_3}’
{exp:channel:entries channel=“notebook-link” search:notebook_link_tag=”{segment_3}”}
{/exp:channel:entries}
|
|
|
Jamie Rumbelow
|
Posted: 01 February 2011 02:38 PM |
# 1
|
|
Developer
|
Hello David,
Apologies you’re having issues with Taggable.
Your first issue, that problem is an issue with your PHP or ExpressionEngine configuration, definitely not Taggable. That’s called a session key, and it’s what PHP uses to keep track of your user session. It shouldn’t be appearing on your site’s front-end, but should in the administration panel.
Secondly, it’s currently impossible for me to tell whether your code should work or not. What template is it in? Additionally, what code is displaying and showing the tags? Thirdly, is your Taggable custom field called notebook_link_tag or something different?
Thanks,
Jamie
|
|
|
David Roberts
|
Posted: 01 February 2011 04:59 PM |
# 2
|
|
|
Jamie
Fixed the session key.
The template is in templete group/template - notebook/notebook-article
<p>Tags: {notebook_link_tag backspace="2"}<a href="{path='notebook/tag'}/{url_name}">{name}</a>, {/notebook_link_tag}</p>
This show the tags in the article.
Then when you click on the tag it takes you to a page (notebook/tag -templete group/template) to show all the titles with the same tag, code below. Then I wanted to be able to link back to the article from the any of the titles listed.
Thanks, David
<h2>Posts tagged with ‘{segment_3}’</h2> {exp:channel:entries channel="notebook-link" search:notebook_link_tag="{segment_3}"} <h3><a href="{title_permalink}">{title}</a></h3> {/exp:channel:entries}
|
|
|
Jamie Rumbelow
|
Posted: 01 February 2011 07:06 PM |
# 3
|
|
Developer
|
Unless you’ve set it up as a custom field, {title_permalink} isn’t a tag. You should use EE’s {url_title_path} instead.
|
|
|
David Roberts
|
Posted: 02 February 2011 04:50 PM |
# 4
|
|
|
Thanks for that, but its still not working correctly.
I am getting database error as per example below.
Also some of the articles which are tagged don’t show up in the list of Posts tagged with xxx. So for example, an article tagged with books, when you click on ‘books’ it should show up in the list tagged with books. But it does not. It is in the list of tags etc.
A Database Error Occurred
Error Number: 1054
Unknown column ‘tag_name’ in ‘order clause’
SELECT exp_taggable_tags.id, exp_taggable_tags.name, exp_taggable_tags.description FROM (exp_taggable_tags) WHERE `exp_taggable_tags`.`site_id` = ‘1’ AND `exp_taggable_tags`.`name` LIKE ‘S%’ GROUP BY exp_taggable_tags.id ORDER BY tag_name ASC
Filename: third_party/taggable/libraries/Model.php
Line Number: 143
|
|
|
David Roberts
|
Posted: 03 February 2011 06:49 PM |
# 5
|
|
|
Jamie,
I really need to get this fixed or otherwise take it off the site if its not working and there are errors occurring.
Thanks
David
|
|
|