简体   繁体   中英

can I get Joomla article link that contain a specific plugin?

I hacked ignite component to tag people to an image and send email to them, in the email body I need to insert a link to point to the article that contain this image.

I inserted the image in the article using ignite plugin.

how can I get the article link that contain ignite gallery plugin with categoryid = x

is it possible to get it ?

thanks alot

If you're using Joomla 1.5:

I'm not positive how this Ignite package works, but from looking at their website it seems that they're pushing galleries into articles on render? So from that I deduced, they're probably using something like onPrepareContent in their plugin which takes &$article by reference (so it can be modified). If you were looking to access the article ID in the plugin all you would have to do is use $article->id .

However, if you're looking to access the article ID in the component I would think you would just need to know the table that Ignite is storing the information in where it contains the article ID and the category ID. Then when you know the table you should just be able to query it and return article id where categoryid=x. If you haven't written a query before in Joomla this should help: How to use the database classes in your script .

If you have any more specific information please tell because it may help someone else who has used Ignite give you a better answer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM