Remove news from home page

Questions and answers about change of functions, design, hosting etc.

Moderators: Koduc, Xpycm

Forum rules
Pay attention! Forum is not a means for guaranteed support of clients and users. An answer as well as a quick answer is not supposed on the forum. We post messages as soon as possible.

The message limit on the forum is 3 messages per day.
If you want to say "thank you" then use the function "Give good reputation point", which is a green icon "plus" under the nickname of the person, who answered the message.

Remove news from home page

Postby samar » 07 Jul 2014, 22:18

Hi,I wanna remove News item from home page. how to remove from home?
samar
Passer
 
Posts: 25
Joined: 03 Jul 2014, 10:25
Reputation point: 0

Re: Remove news from home page

Postby Xpycm » 08 Jul 2014, 09:39

Hi,

protected\views\site\index.php file

Remove:
Code: Select all
<?php if (isset($newsIndex) && $newsIndex) : ?>
    <div class="clear"></div>
    <div class="last-news-index">
        <p class="title"><?php echo tt('News''news');?></p>
        <?php foreach($newsIndex as $news) : ?>
            <div class="last-news-item">
                <div class="last-news-date">
                    <p class="ns-label">
                        <?php echo $news->dateCreatedLong;?>
                    </p>
                </div>
                <div class="last-news-title">
                    <?php echo CHtml::link(truncateText($news->getStrByLang('title'), 8), $news->getUrl());?>
                </div>
            </div>
        <?php endforeach;?>
    </div>
    <div class="clear"></div>
<?php endif;?>
Dropbox
Open Real Estate CMS: FAQ | FAQ 2 | FAQ 3
Image
Xpycm
Web Developer
Web Developer
 
Posts: 281
Joined: 30 Dec 2011, 11:06
Reputation point: 2

Re: Remove news from home page

Postby samar » 08 Jul 2014, 10:03

Its work...Thank you very much
samar
Passer
 
Posts: 25
Joined: 03 Jul 2014, 10:25
Reputation point: 0


Return to Questions and help for changes

Who is online

Users browsing this forum: No registered users and 25 guests

cron