Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
pagenavigation plugin with preview
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
seagul  
View profile  
 More options Jul 23 2012, 5:46 pm
From: seagul <webgras...@gmail.com>
Date: Mon, 23 Jul 2012 14:46:10 -0700 (PDT)
Local: Mon, Jul 23 2012 5:46 pm
Subject: pagenavigation plugin with preview

Hi there,

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:

{"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":""}
        )

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.

Thanks for any hints.
Seagul


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Neil  
View profile  
 More options Jul 25 2012, 5:29 pm
From: Neil <swapnilsha...@gmail.com>
Date: Wed, 25 Jul 2012 14:29:05 -0700 (PDT)
Local: Wed, Jul 25 2012 5:29 pm
Subject: pagenavigation plugin with preview

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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
seagul  
View profile  
 More options Jul 26 2012, 12:36 pm
From: seagul <webgras...@gmail.com>
Date: Thu, 26 Jul 2012 09:36:26 -0700 (PDT)
Local: Thurs, Jul 26 2012 12:36 pm
Subject: Re: pagenavigation plugin with preview

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.

  article-prev-next-image.gif
20K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Swapnil Shah  
View profile  
 More options Jul 26 2012, 4:51 pm
From: Swapnil Shah <swapnilsha...@gmail.com>
Date: Thu, 26 Jul 2012 16:51:22 -0400
Local: Thurs, Jul 26 2012 4:51 pm
Subject: Re: [jgen] Re: pagenavigation plugin with preview

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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
seagul  
View profile  
 More options Jul 26 2012, 4:59 pm
From: seagul <webgras...@gmail.com>
Date: Thu, 26 Jul 2012 13:59:17 -0700 (PDT)
Local: Thurs, Jul 26 2012 4:59 pm
Subject: Re: [jgen] Re: pagenavigation plugin with preview

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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Swapnil Shah  
View profile  
 More options Jul 26 2012, 5:08 pm
From: Swapnil Shah <swapnilsha...@gmail.com>
Date: Thu, 26 Jul 2012 17:08:44 -0400
Local: Thurs, Jul 26 2012 5:08 pm
Subject: Re: [jgen] Re: pagenavigation plugin with preview

That string is json encoded. You can grab a jregistry object. Feed that string in and then ask it to get you the intro image.

Regards,

Neil
Sent from my iPhone

On Jul 26, 2012, at 4:59 PM, seagul <webgras...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
seagul  
View profile  
 More options Jul 26 2012, 5:40 pm
From: seagul <webgras...@gmail.com>
Date: Thu, 26 Jul 2012 14:40:10 -0700 (PDT)
Local: Thurs, Jul 26 2012 5:40 pm
Subject: Re: [jgen] Re: pagenavigation plugin with preview

Thanks.
I just used now:

                $registry = new JRegistry;
                $registry->loadString($row->prev->images);
                $item->images = $registry->toArray();

works fine!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Swapnil Shah  
View profile  
 More options Jul 26 2012, 5:46 pm
From: Swapnil Shah <swapnilsha...@gmail.com>
Date: Thu, 26 Jul 2012 17:46:57 -0400
Local: Thurs, Jul 26 2012 5:46 pm
Subject: Re: [jgen] Re: pagenavigation plugin with preview

You could cut that code down by one line and use

$registry->get('intro_image', null);

Regards,

Neil
Sent from my iPhone

On Jul 26, 2012, at 5:40 PM, seagul <webgras...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
seagul  
View profile  
 More options Jul 26 2012, 6:23 pm
From: seagul <webgras...@gmail.com>
Date: Thu, 26 Jul 2012 15:23:36 -0700 (PDT)
Local: Thurs, Jul 26 2012 6:23 pm
Subject: Re: [jgen] Re: pagenavigation plugin with preview

great thanks a lot!!!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Swapnil Shah  
View profile  
 More options Jul 26 2012, 6:57 pm
From: Swapnil Shah <swapnilsha...@gmail.com>
Date: Thu, 26 Jul 2012 18:57:10 -0400
Local: Thurs, Jul 26 2012 6:57 pm
Subject: Re: [jgen] Re: pagenavigation plugin with preview

No problem, glad I could help

Regards,

Neil
Sent from my iPhone

On Jul 26, 2012, at 6:23 PM, seagul <webgras...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
elin  
View profile  
 More options Jul 26 2012, 7:59 pm
From: elin <elin.war...@gmail.com>
Date: Thu, 26 Jul 2012 16:59:37 -0700 (PDT)
Local: Thurs, Jul 26 2012 7:59 pm
Subject: Re: pagenavigation plugin with preview

You're going to need to decode the JSON.

Elin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »