Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Buchnavigation und interne Weiterleitung #5074

Closed
bruc13 opened this issue Nov 28, 2012 · 11 comments
Closed

Buchnavigation und interne Weiterleitung #5074

bruc13 opened this issue Nov 28, 2012 · 11 comments
Labels
Milestone

Comments

@bruc13
Copy link

bruc13 commented Nov 28, 2012

Hi,
ich stehe vor dem Problem, dass der prev Link nicht mehr geht, wenn ich Ein Level habe, wo keine
Reguläre Seite vorhanden ist.
Man bleibt dann einfach in dieser Weiterleitung hängen. Meine Vorschlag:

    // Previous page
        if ($intCurrent > 0)
        {
            $intKey = $arrLookup[($intCurrent - 1)];
            //neu
            if ($this->arrPages[$intKey]['type']=='forward') {
            $Wroot = $this->getPageDetails($this->arrPages[$intKey]['pid']);
            if($Wroot->type!='root') {$intKey = $this->arrPages[$intKey]['pid'];}
            }
     //end
            $this->Template->prevHref = $this->generateFrontendUrl($this->arrPages[$intKey]);
            $this->Template->prevTitle = specialchars($this->arrPages[$intKey]['title'], true);
            $this->Template->prevPageTitle = specialchars($this->arrPages[$intKey]['pageTitle'], true);
            $this->Template->prevLink = $this->arrPages[$intKey]['title'];

        }

Also einfach nochmal nach oben springen, das mit dem Root ist wahrscheinlich noch nicht optimal.

@leofeyer
Copy link
Member

Wie genau lässt sich das reproduzieren?

@bruc13
Copy link
Author

bruc13 commented Nov 30, 2012

Seitentstrucktur:

  • Regulär 1 Level
    • Interne Weiterleitung 2 Level - Nichts ausgewählt (1. Unterseite)
      • Regulär 3 Level
      • Regulär 3 Level
Jetzt habe ich keine Möglichkeit zur Regulär 1. Level zu gelangen wenn ich zurück gehe.

@leofeyer
Copy link
Member

Siehe auch #2366 und #4145.

@leofeyer
Copy link
Member

Behoben in e08dfb3.

@Marco-Both
Copy link

Hallo,

leider habe ich immer noch das Problem das interne Verlinkungen nicht funktionieren. Der link steht richtig in der URL. Allerdings verlinkt diese ja wieder auf die Unterseite. Lässt sich das beheben?

LG
Marco

@leofeyer
Copy link
Member

leofeyer commented Mar 8, 2016

Wie genau lässt sich das Problem reproduzieren?

@Marco-Both
Copy link

Hallo,

ja. Unter bsh.marcoboth.de habe ich eine Testinstallation. Hier sind die Menüpunkte "Fokus" und "weltweit vor Ort" seiteninterne Verlinkungen auf die jeweilige erste Unterseite. Nach rechts geht es. Von "Unterseite 1" müsste ich eigentlich in Editorial gelangen.

LG

@leofeyer
Copy link
Member

leofeyer commented Mar 9, 2016

Das bringt mir leider nichts. Ich muss wissen, wie ich das Problem in meiner Entwicklungsumgebung (läuft mit der Contao Official Demo) reproduzieren kann.

@Marco-Both
Copy link

Ich habe es in der online-Demo nachgestellt.

  1. Aus der Seite Modules eine interne Weiterleitung auf Navigation gelegt
  2. Buchnavigation Modul (ID53) umbenannt und als Referenzseite die Rootseite ausgewählt
  3. Dieses Modul in den Header der Seitenvorlage eingesetzt

Jetzt komme ich von der Seite "Modules -> Navigation" nicht mehr nach links.

LG

@Marco-Both
Copy link

Hallo,

konnten Sie das Problem schon nachstellen?

LG

@leofeyer
Copy link
Member

Ich habe einen Pull-Request erstellt, der das Problem behebt: #8308

jsonn pushed a commit to jsonn/pkgsrc that referenced this issue Apr 23, 2016
### 4.1.3 (2016-04-22)

 * Use data URIs for the image preview in the back end.
 * Use DIRECTORY_SEPARATOR to convert kernel.cache_dir into a relative path (see #464).
 * Always trigger the "isVisibleElement" hook (see contao/core#8312).
 * Do not change all sessions when switching users (see contao/core#8158).
 * Do not allow to close fieldsets with empty required fields (see contao/core#8300).
 * Make the path related properties of the File class binary-safe (see contao/core#8295).
 * Correctly validate and decode IDNA e-mail addresses (see contao/core#8306).
 * Skip forward pages entirely in the book navigation module (see contao/core#5074).
 * Do not add the X-Priority header in the Email class (see contao/core#8298).
 * Determine the search index checksum in a more reliable way (see contao/core#7652).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants