Jump to content

Recommended Posts

Posted

My staff has created in the past (before the upgrade) a large number of tags and regularly several ways of writing the same thing.Β 

Example here with the tag "arsenal" and "arsenal fc" both designating the same thing, namely the name of the English football club Arsenal.

My question is the following : Can I, directly in phpMyAdmin, edit the tags that are not well written in order to unify everything ?

Concretely, I want to execute this query in this case:

UPDATE `ibf_core_tags` SET `tag_text` = 'arsenal fc' WHERE `ibf_core_tags`.`tag_text` = 'arsenal';

Β 

Could contain: Page, Text, Chart, Plot

Β 

I know that it is not advisable to play with the database like that, but beyond any classic warnings, basically can I do that without upsetting the IC5 application?

Posted

Its not so much that nobody knows, but that its not something intended to do. We cant say "Yes that will work" without testing the concequences of an action really

Posted

I can certainly say it's not enough!

There's also the core_tags_cache and core_search_index_tagsΒ db table! And your action could also result in having the same tag more than once in the tag_cache_text column, e.g. when you have "Invision, IC5, IPS4, IC4" cached, and you replace Invision with IC4

Posted

Thanks for your feedback ^^

19 minutes ago, Daniel F said:

There's also the core_tags_cache and core_search_index_tagsΒ db table! And your action could also result in having the same tag more than once in the tag_cache_text column, e.g. when you have "Invision, IC5, IPS4, IC4" cached, and you replace Invision with IC4

The cache by definition can be emptied, right? Let's suppose that I empty this table (core_tags_cache) after executing the query? We won't be too bad? πŸ˜„

Posted

I have so many different tags for the same thing. Currently the only technique I have is to open the tag page, click on all the contents, delete the wrong tag, add the correct tag. Repeat. Repeat. Repeat ....

The temptation to run 2-3 queries to do everything is so strong.

Posted
1 hour ago, SoloInter said:

Repeat. Repeat. Repeat ....

I feel you. With the plugin above you can put all threads with the wrong tag easy to your best tag.

In your example you can type "arsenal" in plugin site in ACP and you see all other tags, "arsenal fc", "fc arsenal" and so on. One click, one typing of "arsenal" and all threads with "fc arsenal" are not more tagged with "fc arsenal" but with "arsenal".

Posted
9 hours ago, Daniel F said:

I can certainly say it's not enough!

There's also the core_tags_cache and core_search_index_tagsΒ db table! And your action could also result in having the same tag more than once in the tag_cache_text column, e.g. when you have "Invision, IC5, IPS4, IC4" cached, and you replace Invision with IC4

core_tags_cache :

There is only 3 cols.

  • CACHE KEY
  • CACHE TEXTΒ 
  • CACHE DATE

So I just have update the tag in CACHE TEXT

Β 

core_search_index_tags :

There is only 3 cols.Β 

  • ID of content who is linked
  • TAG
  • IS PREFIX

So I just have to do the same kind of query I did to core_tags table for TAG

Β 

But I find also :

core_tags_data where I will have to update by delete wrong tags and merge total tags in cms_records6 (because my database ID is 6)

Β 

With that I suppose it will works.Β 

I will have a try soon on the dev web site

Posted
On 11/14/2024 at 11:15 AM, SoloInter said:

Thanks for your feedback ^^

The cache by definition can be emptied, right? Let's suppose that I empty this table (core_tags_cache) after executing the query? We won't be too bad? πŸ˜„

iirc; we had to build custom functionality for this; the caches will not be automatically rebuilt, but are necessary.

Posted

Thanks. I don’t plan to empty anything.

when I will take time to test I will just update. Hope in the meantime something official will be implemented. But I know how long it can take and I know me πŸ«£πŸ˜‚

  • Recently Browsing   0 members

    • No registered users viewing this page.
Γ—
Γ—
  • Create New...