Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • lo30sopa6 Developer
    #153940

    I have a big problem: When nothing is published on the frontpage, the div and class styles are still visible.

    So even though there is no article published on the frontpage you can still see the top/bottom margin and padding. This results in an annoying whitespace beteween the top blocks and bottom blocks.

    I attached two screenshots to illustrate the problem:

    Frontpage with one article published:

    Frontpage with one article unpublished:

    Since I do need the frontpage from time to time to publish at least one item, creating a separate frontpage layout without the main block (body) is not an option.

    I have had this problem with the blank template as well as the purity ii template.

    My question: how can I fix this? The problem is quite urgent since I have a client that wants his website online in 2 days…

    Best,
    Steve


    1. frontpageunpublished
    2. frontpagepublished
    Saguaros Moderator
    #354212

    You open the file templatesja_purity_iilayoutsblocksmain.php and add:

    this code at line 1:
    [PHP]
    <?php if( !$this->isFrontPage() ) : ?>
    [/PHP]
    and add this at end of file:
    [PHP]
    <?php endif; ?>
    [/PHP]

    lo30sopa6 Developer
    #354305

    <em>@tienhc 192288 wrote:</em><blockquote>You open the file templatesja_purity_iilayoutsblocksmain.php and add:

    this code at line 1:
    [PHP]
    <?php if( !$this->isFrontPage() ) : ?>
    [/PHP]
    and add this at end of file:
    [PHP]
    <?php endif; ?>
    [/PHP]</blockquote>

    Dear Tienhc,

    Thanks for your suggestion, but I allready knew this solution and it doesn’t solve the problem since it hides the mainbody on the frontpage permanently. So you can’t publish anything at all on the frontpage when needed.

    Do you have another ‘solution’?

    Best,
    Steve

    Saguaros Moderator
    #354478

    other solution for this:

    you add the following code in the file: templatesja_pyrolibsja.template.helper.php
    a) find this:
    [PHP]
    function getColumnWidth ($name) {
    [/PHP]
    replace:
    [PHP]
    function isCustomShowed(){
    if( $this->isFrontPage() ) {
    $tmp = new ContentModelFrontpage();
    return $tmp->getTotal();
    }
    return true;
    }

    function getColumnWidth ($name) {
    [/PHP]

    and You open the file templatesja_purity_iilayoutsblocksmain.php and add:
    at line 1:
    [PHP]
    <?php if( !$this->isCustomShowed() ) : ?>
    [/PHP]

    and add this at end of file:
    [PHP]
    <?php endif; ?>
    [/PHP]

    lo30sopa6 Developer
    #354649

    Thanks in advance Tienhc! I will try this tomorrow and I will let you know if it works.

    Thanks again,
    Steve

    goezera Friend
    #361932

    How can I solve a similar problen on JA Portfolio

    irookie Friend
    #369735

    <em>@goezera 202378 wrote:</em><blockquote>How can I solve a similar problen on JA Portfolio[/QUOTE

    JA Portfolio frontpage section is really annoying, how can we remove it.?

    Ninja Lead Moderator
    #369830

    hi guys,

    @goezeraL portfolio uses jat3, thus you can consult above solution.
    @irookie: which part you want to remove?

Viewing 8 posts - 1 through 8 (of 8 total)

This topic contains 8 replies, has 5 voices, and was last updated by  Ninja Lead 13 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum