Posts by: fly06

Posts: 263
Post: 7090
Topic: Page title and label

Below is the gpEasy code for the browser title:

$page_title = '';
        if( !empty($page->TitleInfo['browser_title']) ){
            $page_title = $page->TitleInfo['browser_title'];
            $keywords[] = $page->TitleInfo['browser_title'];
        }elseif( !empty($page->label) ){
            $page_title = strip_tags($page->label);
        }elseif( isset($page->title) ){
            $page_title = common::GetBrowserTitle($page->title);
        }
        echo $page_title;

Is that better?

 

 

 

5 years ago
Post: 7088
Topic: Page title and label

Can you try this:

<h1><?php echo common::GetLabel($page->title); ?></h1>

and let us know if it helps.

 

 

5 years ago
Post: 7071
Topic: German Transaltion

Thanks a lot Peter for this translation.

I will add a link to your post in the plugin description.

And sorry for the late reply.

;-)

5 years ago
Post: 7066
Topic: Email List - Import Form

I cannot see the images.

Could you please grant me access to your backend so that I can see by myself what is going wrong?

 

 

5 years ago
Post: 7064
Topic: Email List - Import Form

In the plugin configuration make sure the 'Email List - Hide Import Form' is unchecked.

Then go to the 'Email List' page and you should see the 'Import Existing Subscribers' button.

5 years ago
Post: 7062
Topic: Email List - Import Form

There is no 'Hide Import Form'.

You should click on the 'Import Existing Subscribers' button on the 'Email List' page.

 

5 years ago
Post: 7060
Topic: get menu-structure as raw-data (without html-tags)

Hi Dan,

$gp_menu contains the mapping: page index => page hierarchy level.

$gp_index contains the mapping: page Slug/Url => page index.

See the /data/_site/pages.php file for details.

 

 

5 years ago
Post: 7049
Topic: get menu-structure as raw-data (without html-tags)

I thing my biggest problem is that I have to merge the normal menu and the category list, because the gpOutput::Get('Menu')

You can extends the gpOutput static class in your theme.

Create a gpOutputCustom.php file at the root of your theme folder:

<?php

global $gpOutConf;

$gpOutConf['TopTwoMenu']['method']        = array('gpOutputCustom','GetTopTwoMenu');

class gpOutputCustom extends gpOutput {

    static function GetTopTwoMenu($arg=''){
        $source_menu_array = gpOutput::GetMenuArray($arg);

        $sendMenu = array();

        foreach($source_menu_array as $key => $titleInfo){
            if( $titleInfo['level'] >= 2 ){
                continue;
            }
            $sendMenu[$key] = true;
        }
        gpOutputCustom::OutputMenu($sendMenu,0,$source_menu_array);
    }

    static function OutputMenu($menu,$start_level,$source_menu=false){

    // YOUR CUSTOM CODE GOES HERE

    }

}

And use your custom method in your template.php file:

<?php

global $page;

include($page->theme_dir . '/gpOutputCustom.php');

?>

<!DOCTYPE html> 

...

                    <div id="nav">
                        <?php
                            $GP_ARRANGE = false;
                            gpOutputCustom::Get('TopTwoMenu');
                        ?>
                    </div>

...

</html>

And you are done.

 

5 years ago
Post: 6979
Topic: Expandable Text

I already had that problems some weeks ago.

To fix it, you will have to comment these lines in the Addon.ini file:

;[GetHead]
;script = HiddenContent.php
;method = HiddenContent::GetHead

Don't forget to unstall the plugin first and reinstall the fixed version manually.

Once installed, you can use it in an editable text section by wrapping the expandable text in a div tag with a toggle_hidden class:

<div class="toggle_hidden">This text will be hidden by default.</div>

Hope this helps.

Edited: 5 years ago
Post: 6969
Topic: $gp_hooks not updated during uninstall?

Problem fixed in the dev version.

Thanks.

5 years ago

News

Typesetter 5.1
8/12/2017

Typesetter 5.0.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

Over 8 Times Faster Than Wordpress
5/3/2016

We've known for a long time that Typesetter is fast. It's something we take pride ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Website * ...

Find out more about our Provider Spotlight

Log In

  Register