Thanks so much for the reply. I made the change to the load and it
worked?? I wonder why but am glad that it worked.
Still having the pagination issue but this gets me one step closer!!
Brad
On Jan 22, 1:28 am, kryska <kryskasan...@gmail.com> wrote:
> Hello!
> Something similar happened to me...the link "next" worked, but my menu
> would disapear!
>
> I change the way to load my head image.
> Instead of: <img src.....>I wrote:
>
> <?php echo $html->image('img_cabecera_borrar.jpg'); ?>
> Solved!
>
> I still don´t know why first time image was shown right, but was gone
> alfter clicking next button.
>
> On 22 ene, 04:51, bradmaxs <b...@pezzano.com> wrote:
>
> > I am having some major glitch with pagination.
>
> > Everything is working except for the actual next, previous, number
> > LINKS??
>
> > The AJAX spinner is working, the pages (amount based on the query) are
> > correct and when I run over the NEXT link it shows the correct URL.
> > (currentprojects/page:2).
>
> > The link WILL NOT WORK. If I type it in the browser it takes me there
> > but then erases my menu (jquery mbmenu)??
>
> > I have prototype and jquery running together and I am using the
> > jQuery.noConflict();.
>
> > I have tried everything - taken out all the JavaScript and tried -
> > still no linky!!
>
> > It must be something silly but I have no idea??
>
> > Here is my CONTROLLER business:
>
> > var $helpers = array('Html', 'Form', 'Javascript', 'Ajax');
> > var $components = array('RequestHandler');
> > var $paginate = array('limit' => 9, 'page' => 1, 'order' => array
> > ('Portfolio.id' => 'asc'));
>
> > function currentprojects() {
> > $this->Portfolio->recursive = -1;
> > $this->set('Portfolios', $this->paginate(null, array
> > ('Portfolio.status' => 'current')));
>
> > }
>
> > The VIEW business:
>
> > <?php foreach($Portfolios as $Portfolio): ?>
> > <div class="boxgrid captionfull">
> > <img src="../img/<?php echo $Portfolio['Portfolio']['img']; ?>"
> > width="250" height="200" />
> > <div class="cover boxcaption">
> > <h2><a href="http://www.<?php echo $Portfolio['Portfolio']['url']; ?>"
> > target="_blank"><?php echo $Portfolio['Portfolio']['url']; ?></a></h2>
> > <p><?php echo $Portfolio['Portfolio']['description']; ?></p>
> > </div>
> > </div>
> > <?php endforeach; ?>
> > <div class="paging">
> > <?php
> > $paginator->options(array('url' => $this->passedArgs));
> > $paginator->options(array('update' => 'pagecontent', 'indicator' =>
> > 'spinner'));
> > echo $paginator->prev('<< previous', null, null, array('class' =>
> > 'disabled'));
> > echo " | ";
> > echo $paginator->numbers();
> > echo " | ";
> > echo $paginator->next('next >>', null, null, array('class' =>
> > 'disabled'));
> > echo " ";
> > echo $paginator->counter(array('format' => 'Page %page% of %pages%',
> > true));
> > ?>
> > </div>
> > <div id="spinner" style="display: none;"><?php echo $html->image
> > ('spinner.gif'); ?></div>
>
> > NOTE: I do have the div specified as 'pagecontent' as well.
>
> > And my ROUTER business:
>
> > Router::connect('/currentprojects/*', array('controller' =>
> > 'portfolios', 'action' => 'currentprojects'));
>
> > Here is the link if anyone is interested and all help is greatly
> > appreciated. I hope I have provided enough info.
>
> > Thanks
>
> > bradmaxs.com/currentprojects
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment