2 of 3
2
Tag 2.0 and Search Results
Posted: 17 September 2007 03:57 PM   [ Ignore ]   [ # 16 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  736
Joined  2004-03-30

Sorry Evoir,

If the search capability is critical then we’re not in a good place with the software for you. I can, however, help you build a page that will show regular search results along with a separate section for tag results.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 17 September 2007 04:05 PM   [ Ignore ]   [ # 17 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  119
Joined  2005-09-13

Evoir, you owe me a beer.

Try the attached plugin. It should work for you as long as Solspace’s Tag Module stays more or less the same (database structure wise).

Mitchell, feel free to take this and distribute as needed.

Note: You’ll need to create a new custom weblog field and grab the field_id_# for one of the parameters. Otherwise it should be straightforward.

File Attachments
pi.tagsynch.php.zip  (File Size: 2KB - Downloads: 111)
Profile
 
 
Posted: 17 September 2007 04:07 PM   [ Ignore ]   [ # 18 ]
Jr. Member
RankRank
Total Posts:  46
Joined  2007-09-10

Mitchell,
Sure. I’m sure it would help others, too. Sorry, I don’t mean to be crabby. Thanks!

Profile
 
 
Posted: 17 September 2007 04:08 PM   [ Ignore ]   [ # 19 ]
Jr. Member
RankRank
Total Posts:  46
Joined  2007-09-10

Whoa. that is so cool, Wonder Monkey! I’ll give it a whirl tomorrow. Wowza. I’ll report back.

Profile
 
 
Posted: 17 September 2007 04:09 PM   [ Ignore ]   [ # 20 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  119
Joined  2005-09-13

No no, you must try it right now! I was feeling bad for you!

Profile
 
 
Posted: 17 September 2007 04:13 PM   [ Ignore ]   [ # 21 ]
Jr. Member
RankRank
Total Posts:  46
Joined  2007-09-10

ok… I have 10 minutes!  gulp

Profile
 
 
Posted: 17 September 2007 04:18 PM   [ Ignore ]   [ # 22 ]
Jr. Member
RankRank
Total Posts:  46
Joined  2007-09-10

WM: where do I put the following:

{exp:tagsynch entry_id=“some entry_id” custom_field_id=“the field_id_# that corresponds to your custom field”}

{/exp:tagsynch}

Profile
 
 
Posted: 17 September 2007 06:06 PM   [ Ignore ]   [ # 23 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  119
Joined  2005-09-13

Sorry, on whatever page it is that returns your tag list. So if you are using AJAX then put it on the return template, otherwise just put it on any entry’s page.

Profile
 
 
Posted: 18 September 2007 12:19 PM   [ Ignore ]   [ # 24 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  119
Joined  2005-09-13

Evoir, did it work for you?

I just implemented it on our site last night and it’s working great.

Beautiful EE search results cascade and abound… :D

Profile
 
 
Posted: 18 September 2007 12:32 PM   [ Ignore ]   [ # 25 ]
Jr. Member
RankRank
Total Posts:  46
Joined  2007-09-10

Shortly. I have been swamped, and I’m still a bit fuzzy on it. Can you explain how this works? Is it that any time the page gets loaded with those tags, it syncs the database with the custom field? I suppose I don’t need it to be on every page with tags on them….

Profile
 
 
Posted: 18 September 2007 12:37 PM   [ Ignore ]   [ # 26 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  119
Joined  2005-09-13

Right, it synchs them every time the page is loaded. It returns only “Updated” on a successful synch, so you might want to put that into a hidden div or something.

Here’s a scenario that, I’m imagining, might work for you. You probably have a SAEF for your clients’ blogs, so on the page returned on submit of the SAEF form, pop the tagsynch code in there somewhere. If it ends up being on every page then, well, c’est la vie. The plug-in is short, sweet and, I believe, low overhead.

Profile
 
 
Posted: 18 September 2007 01:43 PM   [ Ignore ]   [ # 27 ]
Jr. Member
RankRank
Total Posts:  46
Joined  2007-09-10

I have a few things going on….. I have a tagcloud in a sidebar. I have the ability to add tags on the fly…. when viewing an entry. (It’s for a closed community, or I’d show you the blog)

When I place it in the sidebar,  it spits out “no tags”.  So, that’s not right. 

I do use the SAEF, but not solely (some are added via the admin).  I suppose I could put it on each entries page…. 

If I put it on every entry’s page, does it just sync that entries ID upon page load? It does not seem to be working…. Does it need to be within certain tags?

Profile
 
 
Posted: 18 September 2007 01:50 PM   [ Ignore ]   [ # 28 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  119
Joined  2005-09-13

It sounds like you should put it on an entry’s page then.

As long as you feed it the entry_id and field_id_# (you know how to do that right?) it will work for you. You’ll see “Updated”

Profile
 
 
Posted: 18 September 2007 01:59 PM   [ Ignore ]   [ # 29 ]
Jr. Member
RankRank
Total Posts:  46
Joined  2007-09-10

Wonder Monkey, I appreciate your patience!  So, here’s what I have done:

I’ve opened the template for comments (that’s the entry template) and put the following:
{exp:tagsynch entry_id=“{entry_id}“ custom_field_id=“7”}{/exp:tagsynch}

And when it prints to the page, it says “no tags”.

Profile
 
 
Posted: 18 September 2007 02:04 PM   [ Ignore ]   [ # 30 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  119
Joined  2005-09-13

Okay, try

{exp:tagsynch entry_id="{entry_id}" custom_field_id="field_id_7"}{/exp:tagsynch} 

Profile
 
 
   
2 of 3
2