convert lot of com_content item links into com_flexicontent

More
7 years 3 months ago #65629 by weCombine
dear flexicontent team,

on an existing joomla-website, i installed flexicontent and imported all content-items.
the menu has about 500 items which all point to a com_content article.
is there a way to convert those menu-links into flexicontent links?

i have seen following difference in the database

index.php?option=com_content&view=article&id=289
into
index.php?option=com_flexicontent&view=item&cid=22&id=289

also the component and params should be changed.

i guess through mysql it should be possible, but i m not an expert in this.

many thanks for feedback,
bart

Please Log in or Create an account to join the conversation.

More
7 years 3 months ago - 7 years 3 months ago #65631 by ggppdk
Hello

- First , you do not need the category id cid= into the URL, if it is missing the main category id is assumed
- Second you do not even need a complex regular expression

It is simple:

1. Backup your DB table #_content, also you can make a copy of the Table in phpmyadmin and test on the copy

2. Use a replacement tool like the one RegularLabs DB-Replacer Joomla extension
extensions.joomla.org/extension/db-replacer

And replace for DB columns "introtext" and "fulltext":
Code:
index.php?option=com_content&view=article&
with:
Code:
index.php?option=com_flexicontent&view=item&

and everything should be work


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 7 years 3 months ago by ggppdk.
The following user(s) said Thank You: weCombine

Please Log in or Create an account to join the conversation.

More
7 years 3 months ago - 7 years 3 months ago #65658 by weCombine
hallo ggppdk,

many thanks for your feedback.
i actually asked how to change the menu-links, but the advice with db replacer helped me out.

thanks for reminding me i also should replace the content-links :)

cheers
bart
Last edit: 7 years 3 months ago by weCombine.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.544 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline