Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8842411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:57:06+00:00 2026-06-14T10:57:06+00:00

I am trying to use a theme for my yii application. for listing the

  • 0

I am trying to use a theme for my yii application. for listing the projects for portfolio section I’m using CListView. in the template it uses lists (<ul> and <li> tags) to show the portfolio elements, and since I didn’t want to go through all files and jquery stuff I wanted to do the same. but CListView adds some div tags by default.. I need to know if there are any configurations for CListView to use <ul> tag instead of <div> and also set the class for it?

here is what I have:

<ul class="clearfix port-det port-thumb">
     <?php
          $this->widget('zii.widgets.CListView', array(
                'dataProvider'=>$dataProvider,
                      'itemView'=>'_view',
         ));
     ?>
</ul>

and in _view.php:

<li data-id="web print" class="clearfix">
  ...
</li>

and the HTML code I get in the end is something like this:

<ul class="clearfix port-det port-thumb">
   <div id="yw0" class="list-view">
      <div class="summary">Displaying 1-8 of 9 result(s).</div>
      <div class="items">
          <li class="clearfix" data-id="web print">
            ...
          </li>
      </div>
   <div>
</ul>

Update: and I need something like this:

<ul class="clearfix port-det port-thumb"> 
          <li class="clearfix" data-id="web print">
            ...
          </li>
</ul>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T10:57:07+00:00Added an answer on June 14, 2026 at 10:57 am

    As I can see there is no need to extend CListView. You can set its itemsTagName and itemsCssClass:

    <?php
        $this->widget('zii.widgets.CListView', array(
            'dataProvider'=>$dataProvider,
            'itemView'=>'_view',
            'itemsTagName'=>'ul',
            'itemsCssClass'=>'clearfix port-det port-thumb'
        ));
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use a different theme on my primefaces (2.2.1) web application but
I'm trying to install a theme that use Gantry framework. All the regular themes
I am trying to use maps in my application and i get this error,
I'm trying to use geolocation using PhoneGap API doc, geolocation works on the index.html
I am trying to use a theme tune throughout all my activities. From other
I am trying to use jquery ui theme (tabs) in aspx. $(function () {
I'm trying to make my app use the Holo Light theme if it is
I am trying to use elysium theme I added it through Nuget also added
I am trying to use UIAppearance to get a uniform color theme in my
I am trying to use setTheme function which basically set theme based on some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.