Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Content component
#1
Hey everybody,
I have a problem, in my hompage I have a component (sidebar), in this component have a content page, but I don't want it look all page, only part of content.
How do I do it?

Sorry for my bad English.

Thanks.Shy
Reply
#2
I am doing that with html and css. In the template:
Code:
<div class = "extract">
        <?php getPageContent('slug'); ?>
    </div>

and in the css
Code:
.extract {
    max-height: 110px;
    overflow: hidden;
}
Reply
#3
Thanks Timbow,
I also was doing with html and css but I forgot the overflow property.

Thanks
Reply




Users browsing this thread: 1 Guest(s)