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.
Related
I have to add the custom Post id for the custom post type. can anyone help me?
Check screen short for more details. http://prntscr.com/mo3eyu
This is a work around that works.
Background info:
We maintain a few almost identical web pages with different branding. The code repo is shared across these. The developers hard coded page IDs into the PHP in the past. I was asked to add new pages. After adding new pages on each website, I noticed the IDs were all randomly generated. This was breaking PHP code's logic. So, I needed to edit these IDs just like OP.
The work around:
In WP web admin page, there's an export / import functionality under tools menu. The new pages should be created in one site, then exported / imported onto other websites. This way, page IDs don't get created randomly. It copies the IDs from the exported page. So you can have same IDs on all pages.
PS:
Not sure why the past developers decided to hard-code page IDs in the code. This shouldn't have been the case to start with. When you don't have much time to refactor everything, stack overflow always comes to help.
IDs determine post record storage in database, changing them directly would be highly prone to breaking things. For example extensions often store IDs as a way to refer to specific post and do something with it.
The simple way to change to some ID would be to just create a new post and copy data over (through admin or with code either).
Post ID of a post also reflect in tables other than Post table, like post comments table. Changing post ID will disturb the relationship of post table with other tables, so it is not advisable.
I have a cloud search domain which is integrated and working well to generate fields.
I have three facets which are
Class
Title
Content
all the above are text fields
Now i have a need to add suggestions and get search term suggestions on the site. for this i've got two requirements
To give suggestions from the Title as the source
To provide suggestions from the Title but also only with the entries which has Class as Event
I am can easily do the first one,
how do i do the second ?
any help is highly appreciated
There was no solution for this one,
what i did was to have two indexes, and get the suggestions from one. the indexes were
Class
Title
EventTitle
Content
and for one fields i got the suggesters by Title and for the other one got them from EventTitle.
What I am trying to do is to make something similar to what I see all the time on almost any website. The button that says Share to facebook. The goal for me is to let my guests share the item they are viewing in my store (Ran on prestashop) on their blog I run (Running on Oxwall).
The goal is for the button to not only link to a blog post submission webpage but to already have the subject line filled out with the item they are sharing's name and the blog post to display the information about the item. I would like to try and do all this using PHP. I am not sure how to go about doing it but I am sure that I could pass the value. Please note that I can mod BOTH the blog site and the shop as I run both and want to connect them.
As an extra bonus I am also running a forum using phpbb3 if I could do the same thing but onto that as well I would greatly thank you. I am trying to interlink everything into one big network. I know its not an easy task but I am sure there is an easy way to pass data onto the other site so that this can be done.
Facebook a 2 tools to get items informations in the page, it parses the page looking for the most common tags and it uses OpenGraph.
You can also provide product informations in the head of your page (between head tags), then blog side, you retrieve only the contents and parse it as XML.
I advise you to cache this data to avoid useless connections between websites and awful overloads while parsing.
You can use your own specifications, Open Graph or another standard, but i advise to use a standard.
I am working on a website with a large amount of information (news articles). So I have a list of news articles that have an intro and a header. When I click on one it brings up the full article, the way I did it was with ajax so it happens dynamically, but that left me with the problem of not being able to bookmark the larger picture of the article.
I couldn't find a good tutorial on how to do this, I thought it would be good to do it the way I have seen it on other sites (the url being something like index.php?id=512435345, like auto-generated sub pages). I don't even know what that solution is called, so I couldn't find anything I could use.
If anyone can point me in the right direction that would help me out a lot
When we create an article it is stored in the db with a unique ID. Then the developer creates a single page which is pretty a much a template that shows the title, description, date, likes, shares, etc. The page uses the unique ID of the post that was stored in the Database to get it's likes, shares and all the things!
And yes, they are the auto-generated sub-ids but are generated by the Database itself.
I would recommend you creating a single page like article.php and send a ID of the article by fetching it from the database thorugh the super global ($_GET) <-- if using PHP. Then make queries or a query to get the data from the database's table and display it to the end user in a nice and clean manner.
I am new to Joomla, I am currently trying to set up a information portal for a university which will have information regarding all the faculty members. The information to be displayed would have information like Subjects they teach, total experience, phone number, email id, address, etc etc.
Normal way to deal with this to write a new article about each faculty member.
But I want this to be more dynamic. I dont like the idea to create a new article for each faculty. I am looking for a way that all the information(subjects, email, phone, etc) should be stored in database and while displaying all information should be fetched from the database itself and should be displayed in a preformated way.
Please let me know if anyone is having any idea regarding this..Many Thanks in advance
I'd use a CCK plugin like K2 and add and Extra Field Group, like this ... that way it could be added in the admin. Done what you're doing with many types of content this way.
UPDATE: Just remembered this great little component called joodatabase
You can create a module, or use one from the Joomla extension directory (You're looking for a directory module). A module in Joomla will allow you to access the data stored in the database.
http://extensions.joomla.org/search?q=directory
You can include an external PHP Script in your article and let the php script handle the data based on the query string paramerter(may be like faculty id or something). In order to do that you will need to install a module. http://extensions.joomla.org/extensions/edition/custom-code-in-content/60. Using this module you should be able to include a php script within the article.
Old thread but still a hot topic
I think Dynamic Articles with TinyButStrong would solve this problem
https://www.tinybutstrong.com/plugins/joomla/tinybutstrong_help.html
For example adding Tag or Search Parameter into content if no article exist.
Place for much more phantasy