Render k2 article in a custom component - joomla

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.

Related

joomla add custom tab and custom fields to article

first i show image: http://www.upload.ee/image/4675395/Untitled.png , to understand my idea better
I am using joomla 2.5.14 and I want to add another menu option for Extra Fields (It would have 10 fields - ID, Picture URL, Video URL, etc).
The new menu would be saved as vod_items table. The menu would be added where are the Publishing Options, Configure Edit Screen, etc.
That option should be available in every article.
Is there a simple way to add that option to Joomla or is there any kind of a code or plugin to do that?
Kind regards,
Aimar.
You can create a custom plugin to add more custom fields on Article manager or any other core component of Joomla.
You can follow following link for creating a plugin for adding custom fields to Article manager.
Reference : Adding custom fields to core components using a plugin
Note : Don't edit the core component as all changes will be lost in future update of Joomla.

add tags to auto inserted joomla article?

I used this tutorial for adding some Joomla article.
It works and Joomla article are there, but how I can add some Joomla tags to that articles programmatically?
There is a helper (jhelpertags) that have a function for add contentTagmaps, but I don't know how I can use that.

Joomla passing parameters when calling an article

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

How to add a custom field button in Virtuemart

I hope this question has a simple answer. I am creating a product catalogue with Joomla 2.5.6 and VirtueMart version 2.0.8e. On the product details page I want to include my own pdf button which will link to the brochure of the product.
Under the suggestion of a reply on the Virtuemart form, I created an image custom field in virtuemart but encountered two major problems.
I don't know now to link the image to a pdf.
I can't seem to remove the title from the image.
http://aleksdesign.ca/joomla/component/virtuemart/software-and-solutions/streem-alert-detail?Itemid=0
Please advise.
Thanks,
Aleks
My suggestion would be to use the Virtuemart Files feature. From the admin control panel, under "Shop", choose "Media". There you can upload the file(s) that you want to have downloaded. Be sure to associate them with a product, and they'll be included on the product page for download. To make a button out of the link(s), you could investigate using CSS to style them as a button. The only alternative I can think of would be to build a custom plugin for VM, which would be a great deal of extra work.
To make Custom fields in Joomla Virtuemart 2.0 is so simple.
You need to open your administrator and then go to:
Virtuemart->Products->Custom Field
there you will find a link to create new custom fiels and you can create your custom field with your choice. It provides various Custom Field Types. After creating and saving your custom field you need to go to product whom you want to add it. like:
Products->your product name->
open your product and go to Custom Fields and there at bottom you can see your custom field. add your custom field to product, save it and check this product from front-end of your site.
I hope this makes sense.
Thanks.

Create form like "Create Article" in component (frontend part) in Joomla 2.5

Anybody know how to create a form just like in "Create Article" in com_content component.
Basically i want to make a form in my component frontend part.
Your best bet will be to download a form module and embed it in the article.
Check these 2 categories to see which extension suits your needs.
http://extensions.joomla.org/extensions/contacts-and-feedback/forms
http://extensions.joomla.org/extensions/contacts-and-feedback/contact-forms
Once you have a module, give it a custom position by typing one in instead of selecting one, then go to your article and use the following code:
{loadposition xxx}
Hope this helps.

Resources