Posts by: juergen

Posts: 1384
Post: 11118
Topic: Bootswatch Scss - onclick event

You could …

  1. Assign page2's menu entry a unique css class name: In Page Manager select page2 and click 'Menu Output - Classes' in the right panel. Use sth. like page-2-link in the  li > a  field.
  2. Open /themes/Bootswatch_Scss/template.php and add the following code to the end of the file
<?php
$page->jQueryCode .= '
  $(".page-2-link").on("click", function(e){
    e.preventDefault();
    var proceed = confirm("Page2 will take some time to load. Proceed?");
    if (proceed) {
      window.location.href = $(this).attr("href");
    }
  });
';
?>

Hope it will work.

Edited: 12 months ago
Post: 11116
Topic: Gallery Sorting Order of recent added: on top page
For changing the sort order of galleries on the 'Galleries' special page, this could be done as well, but it depends.

Would you want to move only new galleries to the first position or even (already existing) galleries when they have been edited/changed?
12 months ago
Post: 11115
Topic: Gallery Sorting Order of recent added: on top page

In the official CMS distributions, JavaScripts are sort of minified, therefore it's very hard to find the right functions and modify them.

With Typesetter 5.0.x  –  to make new images appear at the beginning of a gallery, edit /include/js/inline_edit/gallery_edit_202.js and change the following two lines.

line 111: change …

a && (a = $("<img>").attr("src", a), a = $("<a>").append(a), b = $('<div class="expand_child"><span><a data-cmd="gp_gallery_caption" class="fa fa-pencil"></a><a data-cmd="gp_gallery_rm" class="fa fa-remove"></a></span></div>').data("original", b).append(a).appendTo(l), f.hasClass("gp_to_remove") && b.addClass("gp_to_remove"));

… to …

a && (a = $("<img>").attr("src", a), a = $("<a>").append(a), b = $('<div class="expand_child"><span><a data-cmd="gp_gallery_caption" class="fa fa-pencil"></a><a data-cmd="gp_gallery_rm" class="fa fa-remove"></a></span></div>').data("original", b).append(a).prependTo(l), f.hasClass("gp_to_remove") && b.addClass("gp_to_remove"));

and

line 118: change …

f ? f.replaceWith(a) : h.append(a);

… to …

f ? f.replaceWith(a) : h.prepend(a);

 

Note: Line numbers and variable names may be different in different versions of Typesetter, even between 5.0, 5.0.2 and 5.0.3 due to the minification of the scripts. Hope you'll find them anyway.

12 months ago
Post: 11113
Topic: Page/ section cannot be edited directly

No, unfortunately this info doesn't help further. It only tells me what I already know from your former post.

The error occurs because of a <a class=".ExtraEditLink" [...]> element that lacks a href attribute – something that shouldn't occur normally. So we need to check where it comes from. Thats's what my code snippet for the JS console was about.

A CMS login will certainly shorten the process. Please send it to jk(at)grafikrausz(dot)at
 

12 months ago
Post: 11111
Topic: Persistent log in using Chrome...

I'm using default TAN HEADER DARK GREEN as my theme

Which version of Typesetter (or gpEasy) are you using? 'TAN HEADER' was a default theme 7 years ago and can't even be downloaded anymore.

12 months ago
Post: 11110
Topic: Please help for installation
Typesetter doesn't create a /conf, /inc or /bin directory but a /data directory. Only for the latter PHP needs write permissions. Maybe this link helps.
12 months ago
Post: 11106
Topic: Installtion problem

The check routine is here

/include/install/install.php, line 577-602

… certainly for some reason.

1 year ago
Post: 11104
Topic: Is this project still alive?

My point of view:

If you're going to use gmail to send your contact form data, why not just use google forms then (which would also make it clear that a 3rd party is reading along)?

Why should we obey a private company that is overdoing security to evade support costs and bind users to their apps and services?

If the contact email is not sent with the sender address, the sender's email should be attached to the mail text as information in the future.

Well, it is in the reply-to field where it belongs.

1 year ago
Post: 11102
Topic: Page/ section cannot be edited directly

Hmmm.

Would you mind to paste this jQuery code

$('.ExtraEditLink').each(function(){ console.log( '#' + $(this).attr('id') + ': title = "' + ($(this).attr('title') || 'NO TITLE') + '", href = "' + ($(this).attr('href') || 'DOES NOT EXIST!') + '"' ); });

into the JavaScript Console's command prompt and check the results?
There must be at least one line saying sth. like…

#ExtraEditLinkX : title = "Some Title", href = "DOES NOT EXIST"

 

edit: you must be logged in for it

Edited: 1 year ago
Post: 11100
Topic: Page/ section cannot be edited directly

Are you using any plugins?

Maybe "File Include Source Link"? If so, please uninstall it - it's obsolete and might be the cause.

I can't imgine any other reason at the moment but we'll certainly track it down.

1 year 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