I am developing a plugin for page navigation with a preview to the next/prev item. I get hold of the field where the images are saved but the value looks like this:
I guess there is already a function to return the value of the "image_intro" but where can I find it? I cannot find the standard function to return the image so far.
Yes, I want a page navigation *with *a small image of the next or previous article. Each article in J2.5 can have an "intro image". I want to show the prev- and next-buttons with a preview-image (=the intro image) of the previous- and next-article. I attached a graphic to see what image I mean.
So, in the code of the plugin pagenavigation I want to get the picture from the prev- and next article. With which function or method could I get the "intro image" from the database field "images"? I can show the title of the prev- and next article already but I thought there would be a function to get the picture of the "images"-field of the database.
I haven't looked at the article model in a while. But why not just query the database for the two articles you need? You can either grab the entire table or just the image fields.
How are you getting the titles?
Do you have access to the template overrides? Page navigation override might be easier?
Regards,
Neil
Sent from my iPhone
On Jul 26, 2012, at 12:36 PM, seagul <webgras...@gmail.com> wrote:
> Yes, I want a page navigation with a small image of the next or previous article.
> Each article in J2.5 can have an "intro image".
> I want to show the prev- and next-buttons with a preview-image (=the intro image) of the previous- and next-article.
> I attached a graphic to see what image I mean.
> So, in the code of the plugin pagenavigation I want to get the picture from the prev- and next article. With which function or method could I get the "intro image" from the database field "images"? I can show the title of the prev- and next article already but I thought there would be a function to get the picture of the "images"-field of the database.
> Thanks for any help.
> On Wednesday, 25 July 2012 23:29:05 UTC+2, Neil wrote:
> I am not sure what you are looking to do. The title states page navigation, but you are looking for an image? I am confused.
> -- > You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
> To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-general/-/5XI_izvl4aEJ.
> To post to this group, send an email to joomla-dev-general@googlegroups.com.
> To unsubscribe from this group, send email to joomla-dev-general+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.
> <article-prev-next-image.gif>
And I dont't know how to get the actually image value into my code. How can I extract the "intro image" from this field value. As in the field "images" is not only one image but the "intro image" and the "Full article image".
I could not find a function to extract the "intro image" from this database field. Any ideas? Thanks!!!
> Page navigation override does not work. I already tried and asked somebody else, I have to use the plugin.
> I actually get the image values with a database query but they look like this:
> {"image_intro":"images\/content\/BSP_Files\/xxxxxxxxxxxxx.jpg","float_intro ":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"images \/content\/BSP_Files\/xxxxxxxxxxxx.jpg","float_fulltext":"","image_fulltext _alt":"","image_fulltext_caption":""}
> )
> And I dont't know how to get the actually image value into my code. How can I extract the "intro image" from this field value. As in the field "images" is not only one image but the "intro image" and the "Full article image".
> I could not find a function to extract the "intro image" from this database field.
> Any ideas?
> Thanks!!!
> -- > You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
> To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-general/-/T3gXlOuMiT8J.
> To post to this group, send an email to joomla-dev-general@googlegroups.com.
> To unsubscribe from this group, send email to joomla-dev-general+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.
> works fine!
> -- > You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
> To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-general/-/xI7LQIiFEZYJ.
> To post to this group, send an email to joomla-dev-general@googlegroups.com.
> To unsubscribe from this group, send email to joomla-dev-general+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.
> -- > You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
> To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-general/-/5NcsV2Yx5tYJ.
> To post to this group, send an email to joomla-dev-general@googlegroups.com.
> To unsubscribe from this group, send email to joomla-dev-general+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.
On Thursday, July 26, 2012 12:36:26 PM UTC-4, seagul wrote:
> Thanks for asking.
> Yes, I want a page navigation *with *a small image of the next or > previous article. > Each article in J2.5 can have an "intro image". > I want to show the prev- and next-buttons with a preview-image (=the intro > image) of the previous- and next-article. > I attached a graphic to see what image I mean.
> So, in the code of the plugin pagenavigation I want to get the picture > from the prev- and next article. With which function or method could I get > the "intro image" from the database field "images"? I can show the title of > the prev- and next article already but I thought there would be a function > to get the picture of the "images"-field of the database.
> Thanks for any help.
> On Wednesday, 25 July 2012 23:29:05 UTC+2, Neil wrote:
>> I am not sure what you are looking to do. The title states page >> navigation, but you are looking for an image? I am confused.