Need create Tabs on web listing

Discussion in 'Subrion CMS Packages Discussions' started by owdir, Sep 25, 2015.

  1. owdir

    owdir New Member

    Hi, plz need move site url, category and page rank to tab.... i found in other post this solution,,

    Code (Text):
    {capture append='tabs_content' name='first'}
        <p>This is the first tab.</p>
    {/capture}

    {capture append='tabs_content' name='second'}
        <p>This is the second tab.</p>
    {/capture}
    So, i try in my view.tpl, but do not work, i get white page..

    Code (Text):
    <div class="media ia-item ia-item-view">
        {capture append='tabs_content' name='first'}
            <div class="ia-wrap clearfix">
                {if $item.featured}<span class="ia-badge ia-badge-featured" title="{lang key='featured'}"><i class="icon-star"></i></span>{/if}
                {if $item.sponsored}<span class="ia-badge ia-badge-sponsored" title="{lang key='sponsored'}"><i class="icon-dollar"></i></span>{/if}

                {if $config.directory_enable_thumbshots}
                    <div class="pull-right text-center">
                        <img src="http://free.pagepeeker.com/v2/thumbs.php?size=m&url={$item.url|escape:url}" class="media-object thumbnail js-thumbnail" data-url="{$item.url|escape:url}">
                        {if $item.rank}
                            {section name=star loop=$item.rank}<i class="icon-star icon-orange"></i> {/section}
                        {/if}
                    </div>
                {/if}

                <div class="media-body">
    <div class="ia-item-body">{$item.description}</div>
            </div>
    {/capture}

    {capture append='tabs_content' name='second'}

    {include file='item-view-tabs.tpl' isView=true exceptions=array('title', 'url', 'reciprocal', 'description')}


                    <ul class="ia-list-items ia-list-items--left-margin">
                        <li><i class="icon-link"></i> <a href="{$item.url}" target="_blank">{$item.url|strip_tags|truncate:50:'...'}</a></li>
                        <li><i class="icon-folder-open"></i> <a href="{ia_url item='categs' data=$item type='url'}">{$item.category_title}</a></li>
                        {if $config.directory_enable_pagerank && $item.pagerank}
                            <li><i class="icon-signal"></i> {lang key='pagerank'} {$item.pagerank}</li>
                        {/if}
                        {if $config.directory_enable_alexarank && $item.alexa_rank}
                            <li>
                                <i class="icon-globe"></i> {lang key='alexa_rank'}
                                <a href="http://www.alexa.com/siteinfo/{$item.domain}#">{$item.alexa_rank}</a>
                            </li>
                        {/if}
                    </ul>
                </div>

    {/capture}  
       
    Can you help me to do do it right plz.
  2. Dayir_A.

    Dayir_A. Staff Member

    Hello,

    White page means that some errors occurred while executing the script. To see those errors, please edit the file /includes/config.inc.php line:
    PHP:
    define('INTELLI_DEBUG', 0);
    //change the line above to
    define('INTELLI_DEBUG', 1);
    then you'll be able to solve issues.

    Thanks.

Share This Page