Posts by: juergen

Posts: 1415
Post: 11526
Topic: SimpleBlog upgrade

Hi florin and mabu

if I understand the question right and you wish to make all archive gadget levels collapsible and collapsed by default, this is what I'd do.

This solution is for the original SimpleBlog (up to ver. 3.0.4) gadget markup structure, which looks like this:

<div class="simple_blog_gadget">
  <div>
    <span class="simple_blog_gadget_label">Archives</span>
    <ul>
      <li>
        <div class="simple_blog_gadget_year">2018</div>
        <ul>
          <li>
            <a class="blog_gadget_link">November (2)</a>
            <ul class="simple_blog_category_posts nodisplay">
              <li>
                <a href="/Blog/My-Post-1">My Post 1</a>
              </li>
              <li>
                <a href="/Blog/My-Post-2">My Post 2</a>
              </li>
            </ul>
          </li>
        </ul>
        </ul>
          <li>
            <a class="blog_gadget_link">December (1)</a>
            <ul class="simple_blog_category_posts nodisplay">
              <li>
                <a href="/Blog/My-Post-3">My Post 3</a>
              </li>
            </ul>
          </li>
        </ul>
      </li>
    </ul>
    <ul>
      <li>
        <div class="simple_blog_gadget_year">2019</div>
        <ul>
          <li>
            <a class="blog_gadget_link">January (1)</a>
            <ul class="simple_blog_category_posts nodisplay">
              <li>
                <a href="/Blog/My-Post-4">My Post 4</a>
              </li>
            </ul>
          </li>
        </ul>
      </li>
    </ul>
  </div>
</div>

This would be the jQuery Code:

$(function(){ // function call when DOM is ready, omit when using PHP $page->jQueryCode .= '…'; 

  $('.simple_blog_gadget ul ul').hide(); // initially hide all but the first level ULs 

  $('.simple_blog_gadget_year')
    .css('cursor', 'pointer')   // will be clickable, so let's change the cursor to pointer 
    .on('click', function(){    // click handler
      $(this).siblings('ul').slideToggle();
    })
    .find('.blog_gadget_link')
      .off('click') /* this will unbind the original click handler set by SimpleBlog, 
                     * will only work if this function is called later than SimpleBlog's
                     */
      .on('click', function(){
        $(this).siblings('ul').slideToggle();
      });

}); // closing of DOM ready function 

 

I hope it's still helpful.

Cheers,
Jürgen

4 weeks ago
Post: 11352
Topic: OnePageToolkit.gadgetconfig is undefined

I see that ver 2.0-b1 still needs some work...

Please download this patch and use the 3 included files to overwrite the ones in /addons/OnePageToolkit

Then click the 'Upgrade to version 2.0-b1.1' link on the Admin Management page.

 

Hope it will work now.

Edited: 9 months ago
Post: 11349
Topic: SEO improvement

To add a rel="nofollow noopener" attribute to all links that already have a target="_blank" attribute would be

PHP:

<?php
global $page;
$page->jQueryCode .= '$(\'a[target="_blank"]\').attr("rel", "nofollow noopener");';
?>

… or in existing JS:

$(function(){ $('a[target="_blank"]').attr("rel", "nofollow noopener"); });

But I'm uncertain if all crawlers will comply with a rule that is implemented subsequently via javascript. Googlebot most likely will.

Edited: 9 months ago
Post: 11347
Topic: SEO improvement

There is currently no way to add arbitrary attributes to menu items, but as a workaround we can add Extra Content Areas to menus (since Typesetter 5.1), so…

  1. Create an Extra Content Area via Admin Toolbar -> Content -> Extra Content. Use "Editable Text" and call it e.g. "Nofollow Menu Link"
  2. Edit the new Area using CK Editor Source view and add your link e.g.
    <a class="nav-link" href="[your link]" target="_blank" rel="nofollow noopener">[Your Link Label]</a>
    (the "nav-link" class is needed with Bootstrap 4 navs)
  3. Go to Page Manager and add a new item to the menu, choose "Extra Content" from the tabs at the top of the popup, select your "Nofollow Menu Link" Area.

This should do the trick.

Edited: 9 months ago
Post: 11343
Topic: OnePageToolkit.gadgetconfig is undefined

I'm sorry for the late reply.

I'm currently updating OPTK for Bootstrap 4 compatibility and improving some known issues.


Please get OnePageToolkit 2.0-b1

While ver 2.0 is a bit different on the programmatic side (OOP/autoloading), it looks and works almost the same as ver 1.x and should also be compatible with former installations.

Just replace everything in the /addons/OnePageToolkt directory with the contents of the new version. Then click the 'Upgrade to version 2.0-b1' link on the Admin Management page.

This version is not really tested yet. If you get any errors or have issues please post them here,
 

Edited: 9 months ago
Post: 11321
Topic: File management

Hi there,

www.kennel-kees.dk seems to be gpEasy 3.5.2.

You could try the following steps to manually update the site to the current Typesetter version (ideally to 5.1.1-b1), with the ability to roll back, in case it won't work this easy way:

  • Download the current master (Typesetter 5.1.1-b1) from GitHub
  • Extract the ZIP archive to your local computer
  • Make a copy of the extracted /inlude directory and name it /include511b1
  • Copy the whole /include511b1 directory to the webserver
  • When done, rename the old /include directory on the server to /include352
  • Rename /include511b1 to /include
  • See if it works. If not, you can just roll back to 3.5.2 by reverting the names of the /include* dirs

You may also need to replace /gpconfig.php on the webserver with the new version.
Same might apply to /.htaccess. If you replace /.htaccess, you'll need to make it writable to PHP to re-enable URL-rewriting via Configuration->Settings->Permalinks

Edited: 10 months ago
Post: 11280
Topic: Subdomain installation problem

Please avoid multiple CMS installations in nested directory structures.
.htaccess directives inherit their rules to subdirectories which most likely causes your issues.

Try to configure the hosts in a way that the main domain's (www / no subdomain) document root points to a seperate directory on the webhost, similar to the festival subdomain.
like…

/public_html
  /www/[main site Typesetter installation]
  /festival/[festival siteTypesetter installation]

I myself always organize my webspaces like that, includig directories for the main domains.

/public_html
  /domain1.com
    /www
    /subdomain1
    /subdomain2
  /domain2.net
    /www
    /subdomain1
    [etc.]

edit: once the host config is changed you can simply move the main site installation to it's new directory.

Edited: 11 months ago
Post: 11274
Topic: hide in page edit buttons on menus

It's rather tricky to hide the edit overlay for specific elements (because it's generated based on area enumeration and positioned dynamically upon JS events), but…

You could give my HideAdminUI plugin a go. When installed, you may always toggle all Admin UI elements by pressing [Ctrl] + [H] or  clicking the (-) icon at the top left of the viewport.

Edited: 11 months ago
Post: 11272
Topic: Can't edit galleries

Henry,

please try to add a class attribute to the gallery section via 'Manage Sections' (editor's 'Page' mode) -> [the respective gallery section] -> Options icon.
Then check if the gallery section is editable again. The class name itself doesn't matter (just use anything like 'gallery1234').

 

FYI: I believe it's related to this fix, but I'm not completely sure.
If so, newly created galleries should be editable (just legacy sections lacking attributes were affected)

11 months ago
Post: 11267
Topic: Fatal error — Uncaught Error

Looks like a bug. Please try to change line 273 in /include/admin/Menu/Tools.php

from

                $type = '';

to

                $type = array();
11 months 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