Joomla 3 - how are translations linked in db - joomla

I'm creating a custom migration script and I'm trying to figure out where is the link between articles in multiple languages stored in DB in Joomla 3
Anyone knows?

For anyone needing this, I found the answer myself. The relationship is saved in the _asociations table, with id being article ID, 'the 'context' = 'com_content.item' and key the link between translations...

Related

Displaying user avatar foreach post in Laravel 5.5

I'm actually working in a little forum project, everything is fine till I was stuck in a problem.
I want to display the user Image in front of every post he creates.
I have a table called discussion and another called users and each one of them contains the "user_id" column, but I couldn't figure out how to link them.
firstly you need to know about relation ship between the database table. then you need to learn about eloquent relationship on laravel docs.
https://laravel.com/docs/5.6/eloquent-relationships

Joomla - create articles from a query on database

I am quite new at Joomla. I am trying to create articles dynamically from a table in the database. For instance, let's imagine I have a table that will point to text,image,..., I would like the content to display all (actually, with a modifiable query) articles to feed the display.
Do you know if there is an extension that would allow me similar things, or is there already something built-in?
Thanks for the help !

Joomla 'sobipro' - extracting data

I have taken over a Joomla project that needs rebuilding.
I need to get out the user data and some other data linked to users, I have found most of it in the jos_user table and also a table named jos_comprofiler.
There is data inside of jos_sobipro_field_data that I also need, but I do not know how this table related to anything else can someone please explain? I am able to write SQL and the JOIN statements to get it out once I understand how it all fits together.
Finally the table jos_comprofiler references an avatar which is an image name like '100_4f97c0b3c2c31.jpg' where can I find these images?
Thanks, Jake
I can tell you where those tables are coming from:
- jos_users is the user table used by Joomla core, together with jos_user_profiles for additional profile information.
- jos_comprofiler is a table created by the Community Builder extension from http://www.joomlapolis.com/.
- jos_sobipro_field_data is a table created by SobiPro from http://sobipro.sigsiu.net/
Maybe that helps you find the next steps. Maybe someone else knows more details.

Retrieving articles based on custom URL parameters

I'm a beginner using Joomla 1.5. I have a page which shows articles in a blog format. My objective is to show/filter the articles per year (which isn't that many) based on user input. I'm planning to create a module on the right side, showing a dropdown box of the years, and retrieve the results by passing the year parameter as part of the URL
Ex.
http://sample.com/index.php?option=com_content&view=category&layout=blog&id=39&Itemid=24&year=2011
What is the best, simplest way of passing and processing additional parameters to com_content via URL? Can I do so using extensions such as K2 and flexicontent? If not, can someone advise me what code to add and where, in com_content? If I have to extend com_content itself, can someone guide me how to or point some useful articles?
Appreciate the help. Thanks
I don't know if K2 or flexicontent offer this option, but com_content appears NOT to have this feature.
I would just build a module, create a query and use the table jos_content, select only the fields that you need (like title) and check the field created to be in the year you need.

Create A Product Review In Magento

I am trying to import product reviews from an older site to our new Magento site.
I am having troubles trying to create the actual product review in a script. Has anyone tried doing this before and know how to accomplish this?
It looks like reviews use the entity models and I can't seem to get the review object to do what I want it to do. Here is what I have tried doing so far and its throwing back some an error about foreign keys not being respected. Not sure how to make this work. Any help would be appreciated.
$review = Mage::getModel('review/review');
$review->setEntityPkValue(141292);
$review->setStatusId(1);
$review->setTitle("This is an inserted title");
$review->setDetail("This is an inserted detail");
$review->setNickname("First Last");
$review->save();
My guess would be that it's asking for a product and store to link the review with. Reading the install sql (under app/code/core/Mage/Review/sql/, it looks like there are constraints between review and each of:
core_store
catalog_product_entity
review_status
review_entity
Hope this helps,
JD

Resources