Joomla passing parameters when calling an article - joomla

I want to know how I can modify an internal link from an article so as to pass a parameter to a scrap of PHP code in the destination article.
The PHP code embedded in the destination article will use the parameter to identify a record in a database table, then retrieve some data and display it in the article. It is all working, except for passing the parameter from the source article, and retrieving it in the destination article.
I'm using Joomla 2.5.7, with the DirectPHP plugin to embed the PHP code directly into the destination article.

You might want to look at K2 for Joomla to do this. It has K2 Items which are are like Joomla Articles but have additional fields in them and you can also add extra-fields from the back end.
http://getk2.org

Related

MySQL data records need to show in Joomla page

I am new to Joomla . So far I have accomplished the following :
i need to add own custom PHP code file and fetch data using MySQL and display in Joomla web page article
Should i do with PHP and MySQL is there any recommended plugin available
Thanks
Jockham Reports will do that.
If you want more flexibility, you could also use a plugin like Sourcerer to put PHP directly into the article, then use JDatabase. Here is a good tutorial on it: JDatabase, Using the Joomla Database

Render k2 article in a custom component

I'm beginner in joomla and I've written a custom component for joomla and I want link a K2 article to my content. In other words I want
In backend Go to in my component settings and choose the article from the k2 article's list.
In frontend when it's shows I must see My content + article
I use joomla 3.x.
Any suggestion how to do?
You can use Custom form field type to create a custom form field for K2 article list for you custom component. For more information you can refer this documentation :
Creating a custom form field type
Hope this information will be helpful for you.

php page to be included in joomla

I have written a php page that is getting data from a database and graph it via highcharts javascript.
I would like now to be able to put that in joomla and then use the username from joomla to graph the specific data from that user.
How can I do that?
Thanks for your help,
John.
You should use an iFrame Wrapper menu item whenever you want to include a page that isn't part of your Joomla website.

How to load content from another Joomla database

I have two Joomla websites of related organisations: J1 and J2.
How can I load the content and title of an article which is stored in J2 to show in J1?
I can access configuration.php of J2 and get its database connection details or type it myself.
Also this probably would have to be some kind of plug-in where one just type:
{getExternalArticle=id} within the body of any content in J1.
Any suggestions for the best approach?
See this for reference:
http://docs.joomla.org/Connecting_to_an_external_database
Creating a content plugin:
http://docs.joomla.org/J1.5:Creating_a_content_plugin
This is specific to the old Joomla 1.5 and there are a few differences in 2.5 and the above is the use of JFields instead of JParameters in xml declaration and in the name of the events.
You can see more details on this here:
http://www.inmotionhosting.com/support/edu/joomla-25/create-plugin
This might be useful too:
How to get article text by article ID in Joomla?
You might want considered writing a program (perhaps in PHP) that could run as a CRON job and with authorization credentials to access the MySQL TABLE(s) needed from the other site to pull in those Joomla articles and have it populate the website so it could be displayed properly. I am making an assumption that one website has updates and you want them display on the other website, so I would look as a method for one site to feed another.

Use Magento rest API with multi store view

I have a Magento website with 3 languages on 3 different store view. I need to retrieve product information through the rest API, accessing to this address:
http://-mysite-/api/rest/products
It works really fine, but I receive data only from the default store view. In my webapp I need to switch languages, and I need to access to the others store view. I read the documentation (http://www.magentocommerce.com/api/rest/introduction.html), but I cannot find anything about store view and multilingual sites... I tried passing language in the header or passing the store_id as "get variable"... nothing, it works only with the default store view. Any idea?
You can try this. magentomysite/api/rest/products/store/storeid . For example you can use as magentomysite/api/rest/products/store/1 for english store products.
Remember one thing. In the admin panel you have to give permissions to guest user also. Then only you can get the data through this url.
I hope this helps u.
To elaborate on Pavan's answer the following URL worked for me:
magentodomain.com/api/rest/products/:product_id/store/:store_id
You can find your store id with the following method explained in this answer:
How to find out what my store ID is?

Resources