vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v4.0 Support > "How Do I..." Questions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-13-2010, 07:08 PM
ibaker's Avatar
ibaker ibaker is offline
Senior Member
 
Join Date: Feb 2008
Posts: 295
Default Horizontal display of dynamics entries

I am putting a vbaDynamics module on a CMPS page and want to have 4 random entries displayed horizontally (25% blocks and in the center).

Using the default module wrapper

My Dynamics template so far is:
Code:
<div class="blockrow vba_spacer" id="entry_{vb:raw entry.entryid}{vb:raw mods.divid}">

    <a href="{vb:raw entry.url}" title="{vb:raw entry.pagetext_preview}">{vb:raw entry.title}</a><br />
    <a href="{vb:raw entry.caturl}">{vb:raw entry.category}</a>

    <vb:if condition="$show['entrybit_attach'] AND $show['firstattachment']">
        <div class="vba_padding_top" id="ebit{vb:raw entry.entryid}{vb:raw mods.divid}">
            <vb:if condition="$entry['hasthumb'] AND $show['thumbs']">
                <a href="attachment.php?{vb:raw session.sessionurl}do=fullview&amp;attachmentid={vb:raw entry.attachmentid}" rel="{vb:raw entry.attachrelid}" id="attachment{vb:raw entry.attachmentid}{vb:raw mods.divid}"{vb:raw target_blank}><img src="{vb:raw entry.thumburl}" alt="{vb:raw entry.filename}" border="0" /></a>
            <vb:else />
                <a href="attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw entry.attachmentid}&amp;d={vb:raw entry.attachdateline}"{vb:raw target_blank}><img class="inlineimg" src="{vb:stylevar imgdir_attach}/{vb:raw entry.extension}.gif" alt="{vb:rawphrase file_type_x, {vb:raw entry.extension}}" width="16" height="16" border="0" title="{vb:raw entry.filename}" /></a>
            </vb:if>
        </div>
    </vb:if>
</div>
How can I do it?
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[How To] What's New Verticles on CMPS and Horizontal on Dynamics ibaker Modifications 3 09-30-2011 03:13 AM
Display link in postbit to users dynamics entries gv1.3 "How Do I..." Questions 4 10-23-2010 03:31 PM
Horizontal display for categories & attachments angeljs "How Do I..." Questions 2 05-10-2010 03:33 PM
Random entries - horizontal on instance, Vertical on CMPS ibaker "How Do I..." Questions 1 09-14-2009 12:41 PM
Adding Dynamics Entries to a CMPS page? kholtman "How Do I..." Questions 0 05-26-2008 01:01 PM


All times are GMT -4. The time now is 05:07 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.