Results 1 to 4 of 4

Thread: [How To] What's New Verticles on CMPS and Horizontal on Dynamics

  1. #1
    Join Date
    Feb 2008
    Posts
    296

    Default [How To] What's New Verticles on CMPS and Horizontal on Dynamics

    I have asked twice to find a way to have the What's New module (or Random Module) using the Lean Template to display Vertical on the CMPS Home Page and Horizontal across the top of my Dynamics page but have had no easy answers.

    So I spent some time working it out today and it is actually very easy to do.

    Here is an example of what I mean:

    Attachment 5664

    To do this simply open your adv_dyna_entrybit_lean template in the Style Manager

    Replace the first two lines:
    Code:
    <tr>
        <td class="$bgclass">
    With:
    Code:
    <if condition="THIS_SCRIPT != 'dyna_index'">
        <tr>
        <td class="$bgclass" align="center">
    <else />
        <td class="$bgclass" align="center" width="25%" valign="top">
    </if>
    Note: The 25% width in the above is if you are displaying 4 entries - use 33% if displaying 3, 20% if 5 etc.

    Next at the bottom of the template replace:
    Code:
    </tr>
    With
    Code:
    <if condition="THIS_SCRIPT != 'dyna_index'">
        </tr>
    </if>
    To display what I have in the attached images above I removed all the code that wasn't needed so my final adv_dyna_entrybit_lean template is:
    Code:
    <if condition="THIS_SCRIPT != 'dyna_index'">
        <tr>
        <td class="$bgclass" align="center">
    <else />
        <td class="$bgclass" align="center" width="25%" valign="top">
    </if>
    
            <div style="padding-bottom: $stylevar[cellpadding]px">
                <b>$entry[date_added]</b><br />
            </div>
            <div style="padding-bottom: $stylevar[cellpadding]px">
                <a href="$entry[caturl]"><font color="#FF0000"><b>$entry[category]</b></font></a><br />
            </div>
            <div class="smallfont">
                $entry[title]
            </div>
        </td>
    
    <if condition="THIS_SCRIPT != 'dyna_index'">
        </tr>
    </if>
    Hope this helps someone and saves you pulling your hair out if you need to do something like this
    Last edited by ibaker; 02-09-2010 at 07:54 PM.

  2. #2
    Join Date
    Aug 2005
    Location
    Durham, UK
    Posts
    177

    Default

    Thank you, thank you, thank you!!!
    Sim Fans UK - Sims downloads and discussion

  3. #3
    Join Date
    Aug 2005
    Location
    Durham, UK
    Posts
    177

    Default

    Do you know of any way to incorporate this into vBadvanced 2 for vB4?
    Sim Fans UK - Sims downloads and discussion

  4. #4
    Join Date
    Aug 2005
    Location
    Durham, UK
    Posts
    177

    Default

    For some reason, even though the module for vBa CMPS uses the exact same templates and files as vBa Dynamics, the featured module for CMPS still shows vertically. Is there any way to show these horizontally on the front page of CMPS? I've tried editing the 'adv_portal_module_wrapper' template, but don't really know what I'm doing!
    Last edited by angeljs; 09-30-2011 at 04:41 AM.
    Sim Fans UK - Sims downloads and discussion

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Random entries - horizontal on instance, Vertical on CMPS
    By ibaker in forum "How Do I..." Questions
    Replies: 1
    Last Post: 09-14-2009, 01:41 PM
  2. CMPS tyo Dynamics
    By Wormy! in forum "How Do I..." Questions
    Replies: 4
    Last Post: 05-16-2009, 10:03 PM
  3. Make Site Navigation in horizontal form
    By jazperson in forum "How Do I..." Questions
    Replies: 2
    Last Post: 04-30-2008, 12:30 PM
  4. From Cmps to Dynamics
    By tintin74 in forum Pre-Sale Questions
    Replies: 1
    Last Post: 11-30-2007, 01:21 PM
  5. Making the blocks lineup with the navbar (Horizontal size)
    By wynode in forum "How Do I..." Questions
    Replies: 2
    Last Post: 08-06-2006, 03:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •