Help with some code

6 posts by 2 authors in: Forums > CMS Builder
Last Post: November 21, 2011   (RSS)

Re: [kcmedia] Help with some code

By Jason - November 15, 2011

Hi Craig,

Could you give some more details about the types of problems you're having?

Thanks
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Help with some code

By KCMedia - November 19, 2011

Hi Jason

i got most of it working but need some help with this part of the code with the page links

here is the cmsb code

<!-- STEP3: Display Page Links (Paste anywhere below "Load Record List") -->
<?php if ($galleryMetaData['prevPage']): ?>
<a href="<?php echo $galleryMetaData['prevPageLink'] ?>">&lt;&lt; prev</a>
<?php else: ?>
&lt;&lt; prev
<?php endif ?>

- page <?php echo $galleryMetaData['page'] ?> of <?php echo $galleryMetaData['totalPages'] ?> -

<?php if ($galleryMetaData['nextPage']): ?>
<a href="<?php echo $galleryMetaData['nextPageLink'] ?>">next &gt;&gt;</a>
<?php else: ?>
next &gt;&gt;
<?php endif ?>
<!-- /STEP3: Display Page Links -->

and this is the code from the site i cant get it to work like this

<div class="pagination">
<ul>
<li><a class="previous-1" href="#"><span class="circle-arrow-left"></span>Previous</a></li>
<li><a class="current" href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li><a class="next-1" href="#">Next<span class="circle-arrow"></span></a></li>
</ul>
</div>
Thanks



Craig

KC Media Solutions

www.kcmedia.biz

Re: [kcmedia] Help with some code

By Jason - November 21, 2011

Hi Craig,

Take a look at this post:

http://www.interactivetools.com/forum/gforum.cgi?post=77535#77535

Is this what you're looking for?

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Help with some code

By KCMedia - November 21, 2011

Hi Jason

sort of i am trying to get the cmsb code into the same style but i put all the styling there ut still shows up the standard way.
Thanks



Craig

KC Media Solutions

www.kcmedia.biz

Re: [kcmedia] Help with some code

By Jason - November 21, 2011

Hi Craig,

The CMSB code generator doesn't create code to show pages in the same way as in the previous post. To do that does require some custom programming.

Can you use that example to create your pagination list without the styling, and then add the styling in later?
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/