How to show pager using CCK and node?
kit22aa - June 29, 2009 - 16:29
| Project: | Dynamic display block |
| Version: | 6.x-1.0-rc6 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed |
Jump to:
Description
Hi there,
I would like to use one node to represent all the slides. If I use the following HTML code in the body of a node, I can show all the slides in a slideshow using number pager without any problems. However, I would like to show this slideshow with text pager at the bottom of the slideshow which is similar to what the slideshow looks like using upright30 template. Would anyone please give me some instructions, HTML and php code to show me how I can put a text pager at the bottom of the slideshow? Thank you very much in advance.
Kit
<div class="slides">
<div class="slide">
<table cellspacing="1" cellpadding="10" border="0" style="width: 100%; height: 176px;">
<tbody>
<tr>
<td valign="top"><img height="260" width="347" alt="" src="/sites/test.com/files/images/slide_1.JPG" /></td>
<td width="80%" valign="top"><strong>Slide 1</strong><br />
<ul>
<li>Point 1</li>
<li>Point 2</li>
<li>Point 3</li>
<li>Point 4</li>
<li>Point 5</li>
</ul>
</td>
</tr>
</tbody>
</table>
</div>
<div class="slide">
<table cellspacing="1" cellpadding="10" border="0" style="width: 100%; height: 176px;">
<tbody>
<tr>
<td valign="top"><img height="260" width="347" alt="" src="/sites/test.com/files/images/slide_2.JPG" /></td>
<td width="80%" valign="top"><strong>Slide 2</strong><br />
<ul>
<li>Point 1</li>
<li>Point 2</li>
<li>Point 3</li>
<li>Point 4</li>
<li>Point 5</li>
</ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
#1
The basic slideshow options of the dynamic display block module supports number and image pagers.
If you want to use custom pagers you can use the advanced options of the dynamic display block module. In e.g. the tutorial: How to create an Advanced slideshow with multiple imagefield images in a node is explained how to make a slideshow for one node with multiple images in one imagefield in a node. You can use image field title, alt an description for title, pager item and slide text per image.
When you have configured this option, it is a lot more easier too maintain then to make the slideshow with the basic options of the dynamic display block module and you can use the free, customized and commercial themes for the slideshow.
Hope this helps you further, please let me know.
#2
Thank you for replying.
When I use the basic slideshow, I can only chooose "Number Pager" or "Prev next pager". But, you said, "The basic slideshow options of the dynamic display block module supports number and image pagers.". Is "Prev next pager" the same as image pager?
Kit
#3
Ok, I was not detailed enough in my previous reply.
When using the basic options with content from an image folder you have number pager, prev-next pager and image pager.
When using the basic options with content from a node you only have number pager and prev-next pager.
Hope this clarifies it, please let me know.
P.S. Just try to use the advanced options.
When it is set up, it's easier to maintain. You have just to upload images and fields to fill in, instead of changing html code like in the basic options.
#4
Thank you for replying.
The reason I like to use the basic options with content from a node is that my users of the website are not familiar with views and php. So, I have to stick with the basic options with content from a node. It would be nice if you add a feature to allow us to specify pager title so that people without any views and php knowledge can create pager titles just by entering some HTML codes. Do you think you can add this feature for us? Thank you very much.
Kit
#5
With the advanced option you even don't have to change HTML code. Just create or edit an existing node.
Only while setting up the advanced options of the ddblock slideshow module you use views and have to make some changes in the preprocess functions. After that it's just creating nodes.
Setting up the slideshow is only done once, creating content can be done easy after that.
Adding this to the basic options of the module will have low priority. It's in my opinion to difficult for users to change HTML without breaking anything.
The node option is also not really intended for users of the site, but more for maintainers of the site which know what they are doing.
You don't have to use the ddblock module for this. You could just use the jQuery cycle plugin with some custom code. Have a look at the cycle plugin
#6
Set status to postponed, maybe will add it in a future version. Don't know yet.
#7
Thank you again for your reply.
I have never used jQuery cycle plugin. Would you please give me step by step instructions or tutorial links from other sites to accomplish what I need? Thank you very much and I appreciate your help.
Kit
#8
Have a look at the comparison of slideshow/rotator modules for a comparison of available slideshow module.
Hope this helps you further, please let me know.