Jump to content


Photo

Adding Keywords


  • Please log in to reply
4 replies to this topic

#1 bergstenmusic

bergstenmusic

    Etomite Forum Newbie

  • Member
  • 46 posts

Posted 01 February 2008 - 09:20 PM

Is there an easier way to add multiple keywords to pages? :Praying:

#2 Dean

Dean

    Loves Etomite Forums!

  • Admin
  • 4,787 posts

Posted 01 February 2008 - 09:29 PM

you have to choose them from the list?

#3 Cris D.

Cris D.

    Loves Etomite Forums!

  • Developers
  • PipPipPipPip
  • 1,104 posts

Posted 02 February 2008 - 12:11 PM

If you are OK with phpMyAdmin, you can write a query that will take the keyword id(s) (from your [prefix]_site_keywords table) and add them to the [prefix]_keyword_xref table against the documents that you want them to appear in.
INSERT INTO `etomite_keyword_xref` (`content_id`, `keyword_id`) VALUES ('1', '1'), ('1', '2');
Which would insert the document id #1 with keywords id 1 and id 2.

If you are proficient with phpMyAdmin, you could write a query that inserts keywords depending on a variety of criteria. See http://www.w3schools...l/sql_intro.asp for more on writing custom queries.

#4 Ralph

Ralph

    Loves Etomite Forums!

  • Admin
  • 6,539 posts

Posted 02 February 2008 - 02:44 PM

You could also just use a hard coded keywords meta tag in your page template... I use this method for smaller sites which only require a few generalized keywords rather than page specific ones... When I use this method I either edit any meta tag snippet I may be using to not generate the keyword tag or simply use and entirely generic meta tag block in the template... I'm looking to replace the multi-select box for checkboxes in the next major release...

#5 bergstenmusic

bergstenmusic

    Etomite Forum Newbie

  • Member
  • 46 posts

Posted 04 February 2008 - 05:28 PM

awesome, thanks. That'll save me a bunch of time :D




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users