Lots of questions (2.0)
Posted: 13 September 2007 02:00 PM   [ Ignore ]
Jr. Member
RankRank
Total Posts:  46
Joined  2007-09-10

I have 2.0 installed. I am using a tag cloud. I am confused about a few things.

1) I’ve set up the preferences to accept tags when input into this filed: Tags. But, when I add or edit an entry, I see that field PLUS I see a Tab at the top.

2) Inside the Tab at the top, even though I have entered a few tags in the field “Tags”. they do not show up under this tab.

3) There is also some odd js action (or something) going on withion the tab area. On the left side there odd square above a text box. When i enter text into the text box I get a yellow alert triangle with a ! in it. I don’t understand.

How am I supposed to have the client add tags to entries? via the extra field I created, or via the TAB? Is something not working correctly?

And finally, is there some example code for how to do the following:

4) I’d like to place the list of tags underneath each entry on the comments page. Is there an example of this code? A simple comma seperated list. Perhaps they would also be linked to a page with all the entries that use that word.

5) I’ve created a page in my blog called tags blog/tags and in it I’ve put the following:
{exp:tag:entries weblog=“{my_weblog}“ orderby=“entry_date” sort=“asc” limit=“20”}
  <div class=“post”>
 

{title}


Posted by {url_or_email_as_author} on {entry_date format=‘%m/%d’} at {entry_date format=‘%h:%i %A’}
<div class=“thumb”>
  {mugshot}
</div>
<div class=“excerpt”>
  {exp:word_limit total=“70”}{summary}{/exp:word_limit} 
 
  Read more | Comment
</div> 
</div>  {/exp:tag:entries}

but when I click on my tagcloud items, it takes me to that template blog/tags page, but no entries show. What am I doing wrong?

Whew!

Profile
 
 
Posted: 13 September 2007 04:58 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  736
Joined  2004-03-30

Evoir,

The concept of a custom field for tags is legacy with version one. We still employ the concept because you can harvest tags from custom fields using the Tag CP. But otherwise use the Tags tab in the edit panel.

What you’re describing here:
“On the left side there odd square above a text box” suggest that you have not loaded the language file for the module. EIther that of the AJAX functionality allow you to brows for tags and have tags suggested for you is not behaving for you.

On item 4, you want to use the exp:tag:tags function and provide it the entry_id parameter so that I can pull tags for a given blog entry like this:

{exp:tag:tags entry_id=“{entry_id}“}
{tag},
{/exp:tag:tags}

Another example is on this page of the documentation: http://www.solspace.com/docs/entry/tag_20_tags/

On item 5, when you hit your template with the tag:entries code, are you including a tag in the url? And are there entries that belong to the tag you indicate?

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 13 September 2007 11:29 PM   [ Ignore ]   [ # 2 ]
Jr. Member
RankRank
Total Posts:  46
Joined  2007-09-10

1) Yes, you were right about the language file. smile
4) yup. It works smile
5) Yes, I am including the tag in the url. It looks like this:
/index.php/blog/tags/orange
/index.php/template_group/template/tag

That’s right, no? No entries show up on that page. And, yes, I’m using a tag that has entries, since it is a cloud and it would only show up if there were entries, right? (aside from that, I am certain there is at least one entry with the tag, “orange”.

Thank you! smile

Profile
 
 
Posted: 13 September 2007 11:40 PM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  736
Joined  2004-03-30

Evoir,

Check in the documentation for the ‘marker’ parameter with respect to the exp:tag:entries function. That’s what you need.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 14 September 2007 07:26 AM   [ Ignore ]   [ # 4 ]
Jr. Member
RankRank
Total Posts:  46
Joined  2007-09-10

Hmmm.

I looked here and I still don’t understand it:
http://www.solspace.com/docs/entry/tag_20_entries/#marker

Here is the code I am using:

{exp:tag:cloud weblog=“blog” start=“10” step=“3” limit=“40” dynamic=“off” marker=“tag”}
{tag}
{/exp:tag:cloud}

It is not part of your example at the top of the page. You had the word “taggage” in there. I feel like a luddite, but I don’t know what “Marker” to use.

Profile
 
 
Posted: 14 September 2007 08:51 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  736
Joined  2004-03-30

Evoir,

The cloud function is not designed to pull weblog entries for you by a given tag. That’s the job of the entries function.

You want something like

{exp:tag:entries marker=“tags”}
{title}
{/exp:tag:entries}

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 14 September 2007 10:03 AM   [ Ignore ]   [ # 6 ]
Jr. Member
RankRank
Total Posts:  46
Joined  2007-09-10

I am still confused. My goal is to create a tag cloud, and when you click on any one of those words, it takes you to a page with all the entries that have that tag. Wouldn’t that be the tag cloud?

Profile
 
 
Posted: 14 September 2007 10:41 AM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  736
Joined  2004-03-30

You’re describing a tag cloud perfectly. When someone clicks a tag in the cloud, they go to a separate page on your site right? On that page you need the exp:tag:entries function running. And you need to tell that function what to look for in the URL in order to know which part is the tag.

So you might have a URL like this

www.yoursite.com/index.php/template_group/template_name/tag/jellybelly

The template_group is the template group in your EE site. The template_name is the template within the group. ‘tag’ is the marker in the url. And jellybelly is the tag itself.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 14 September 2007 10:42 AM   [ Ignore ]   [ # 8 ]
Jr. Member
RankRank
Total Posts:  46
Joined  2007-09-10

Bingo. smile You were talking about the landing page where I want the cloud to link to. So, the code you provided worked. thank you!

Profile
 
 
Posted: 14 September 2007 10:43 AM   [ Ignore ]   [ # 9 ]
Jr. Member
RankRank
Total Posts:  46
Joined  2007-09-10

Ah, it is amazing when things work as they should, and you just have to figure out how to get out of the way!

Profile
 
 
   
 
 
‹‹ No Results      categories and tags ››